summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/eaccelerator/eaccelerator.SlackBuild15
-rw-r--r--libraries/eaccelerator/eaccelerator.info2
2 files changed, 12 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}
diff --git a/libraries/eaccelerator/eaccelerator.info b/libraries/eaccelerator/eaccelerator.info
index e41cfce98e..6804d7fb41 100644
--- a/libraries/eaccelerator/eaccelerator.info
+++ b/libraries/eaccelerator/eaccelerator.info
@@ -2,7 +2,9 @@ PRGNAM="eaccelerator"
VERSION="0.9.5.3"
HOMEPAGE="http://eaccelerator.net/"
DOWNLOAD="http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2"
+DOWNLOAD_x86_64=""
MD5SUM="caf797223739516882f870342f74b935"
+MD5SUM_x86_64=""
MAINTAINER="javivf"
EMAIL="javivf@gmail.com"
APPROVED="David Somero" \ No newline at end of file