diff options
Diffstat (limited to 'network/d4x/d4x.SlackBuild')
-rw-r--r-- | network/d4x/d4x.SlackBuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/network/d4x/d4x.SlackBuild b/network/d4x/d4x.SlackBuild index 4da7974158..0b120b308e 100644 --- a/network/d4x/d4x.SlackBuild +++ b/network/d4x/d4x.SlackBuild @@ -17,10 +17,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 @@ -47,15 +50,16 @@ sed -i "s:path\=d4x:\/\/path\=d4x:" main/addr.cc # Option to include libao library; default=no if [ ${D4X_LIBAO:-no} == no ]; then - D4X_AO=dis + D4X_AO=dis else - D4X_AO=en + D4X_AO=en fi CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --${D4X_AO}able-libao \ --with-x=yes \ --disable-openssl \ @@ -92,4 +96,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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} |