diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-13 00:24:59 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:24:59 +0200 |
commit | 90bb679d73bfe6bac939c7a66e56b3d6ef60ac0c (patch) | |
tree | 6b4a392366713f783234707c19f307ee41e8b612 /development/ming/ming.SlackBuild | |
parent | 6c856f5259e8792837174b4c265650ba304b0d21 (diff) |
development/ming: Updated for version 0.4.2
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} |