Commits

Anonymous committed 2ed402d

gdata-sharp 64-bit symlink hack

Comments (0)

Files changed (1)

var/vabs/gdata-sharp/src/gdata-sharp.SlackBuild

 elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O2 -fpic"
   CONFIGURE_TRIPLET="x86_64-vlocity-linux"
-  LIBDIRSUFFIX="64"
+  LIBDIRSUFFIX="" # no suffix
 elif [ "$ARCH" = "powerpc" ]; then
   SLKCFLAGS="-O2"
   CONFIGURE_TRIPLET="powerpc-vlocity-linux"
 
 echo "Configuring source..."
 sed -i '25d' Makefile || exit 1
-sed -i '/PREFIX=/ s|/usr/local|/usr|' Makefile || exit 1
+#Fixing install prefix
+sed -i 's/PREFIX=\/usr\/local/PREFIX=\/usr/' Makefile || exit 1
+
 make $NUMJOBS || exit 1
 
 make install DESTDIR=$PKG || exit 1
 
 #######################################################################
 #Miscellenious tweaks and things outside a normal ./configure go here #
+
+
+if [ "$ARCH" = "x86_64" ]; then
+        (
+        cd $PKG
+        mkdir -p usr/lib64/pkgconfig
+        for file in usr/lib/pkgconfig/*.pc; do
+                ln -sf /$file usr/lib64/pkgconfig/$(basename $file)
+        done
+        )
+fi
+
 #######################################################################