summaryrefslogtreecommitdiff
path: root/libraries/eaccelerator/eaccelerator.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/eaccelerator/eaccelerator.SlackBuild')
-rw-r--r--libraries/eaccelerator/eaccelerator.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/libraries/eaccelerator/eaccelerator.SlackBuild b/libraries/eaccelerator/eaccelerator.SlackBuild
index deaacaaafe..eda898d904 100644
--- a/libraries/eaccelerator/eaccelerator.SlackBuild
+++ b/libraries/eaccelerator/eaccelerator.SlackBuild
@@ -17,11 +17,14 @@ OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS COPYING NEWS README"
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
rm -rf $PKG
@@ -36,14 +39,16 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
+ --build=$ARCH-slackware-linux \
|| exit 1
make || exit 1
make install DESTDIR=$PKG || exit 1
-install -D -m 755 modules/eaccelerator.so $PKG/usr/lib/php/extensions/eaccelerator.so || exit 1
+install -D -m 755 modules/eaccelerator.so $PKG/usr/lib$LIBDIRSUFFIX/php/extensions/eaccelerator.so || exit 1
mkdir -p $PKG/usr/doc/$APP-$VERSION
cp -a $DOCS $PKG/usr/doc/$APP-$VERSION
@@ -61,4 +66,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
)
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$APP-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$APP-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}