diff options
author | javivf <javivf@gmail.com> | 2010-05-13 00:29:10 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:29:10 +0200 |
commit | e9374706a102bc727813e41e37e1a7cb0c2721f0 (patch) | |
tree | dfd5adf6d59377062ab3b109fa1ea917ede2229f /libraries/eaccelerator/eaccelerator.SlackBuild | |
parent | 86915430cd119189b44e536296d72a3bcb210c66 (diff) | |
download | slackbuilds-e9374706a102bc727813e41e37e1a7cb0c2721f0.tar.gz |
libraries/eaccelerator: Updated for version 0.9.5.3
Diffstat (limited to 'libraries/eaccelerator/eaccelerator.SlackBuild')
-rw-r--r-- | libraries/eaccelerator/eaccelerator.SlackBuild | 15 |
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} |