diff options
Diffstat (limited to 'development/ming/ming.SlackBuild')
-rw-r--r-- | development/ming/ming.SlackBuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/development/ming/ming.SlackBuild b/development/ming/ming.SlackBuild index 0b28ee6d6cccc..b87f0f264c43b 100644 --- a/development/ming/ming.SlackBuild +++ b/development/ming/ming.SlackBuild @@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -53,13 +56,14 @@ chown -R root:root . chmod -R u+w,go+r-w,a-s . # Fix a misplaced \" in the php_ext Makefile.in that prevents installation -patch -p1 < $CWD/php_ext-Makefile.in.patch +patch -p1 < $CWD/php_ext-Makefile.in.patch # static library is activated because the perl extension needs it CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ @@ -95,7 +99,7 @@ rm -rf $PKG/usr/share find $PKG -name "$i" -exec rm -rf {} \; done # Remove empty directory - rmdir --parents $PKG/usr/lib/perl5/5.10.0/i486-linux-thread-multi 2>/dev/null || true + rmdir --parents $PKG/usr/lib$LIBDIRSUFFIX/perl5/5.10.0/i486-linux-thread-multi 2>/dev/null || true ) ( cd $PKG/usr/man || exit 1 @@ -112,4 +116,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |