diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2010-05-13 00:30:13 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:30:13 +0200 |
commit | 1a22813353773a1fad9e0f346c66b37d0fa509de (patch) | |
tree | 955665bbda604f45caaece0108f464fb226473de /libraries/libdbi-drivers/libdbi-drivers.SlackBuild | |
parent | c895a4be840f366b77908997887cbfb3ed005985 (diff) |
libraries/libdbi-drivers: Updated for version 0.8.3_1
Diffstat (limited to 'libraries/libdbi-drivers/libdbi-drivers.SlackBuild')
-rw-r--r-- | libraries/libdbi-drivers/libdbi-drivers.SlackBuild | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/libraries/libdbi-drivers/libdbi-drivers.SlackBuild b/libraries/libdbi-drivers/libdbi-drivers.SlackBuild index 5e8e645549992..eeca6725d4768 100644 --- a/libraries/libdbi-drivers/libdbi-drivers.SlackBuild +++ b/libraries/libdbi-drivers/libdbi-drivers.SlackBuild @@ -2,11 +2,12 @@ # Slackware build script for libdbi-drivers # Written by Michal Bialozor <bialyy@o2.pl> +# Modified by Vincent Batts, vbatts@hashbangbash.com, http://hashbangbash.com/ PRGNAM=libdbi-drivers VERSION=0.8.3_1 ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} SRCVERSION=$(echo $VERSION | tr _ -) @@ -16,36 +17,54 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +PGSQL=${PGSQL:-false} +OPT_ARGS="" + 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 + +if [ "$PGSQL" = "true" ] ; then + OPT_ARGS=" --with-pgsql --with-pgsql-dir=/usr/lib${LIBDIRSUFFIX}/pgsql " fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$SRCVERSION -tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz || exit 1 -cd $PRGNAM-$SRCVERSION || exit 1 +tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz +cd $PRGNAM-$SRCVERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --with-dbi-libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-static=no \ --enable-shared=yes \ - --build=$ARCH-slackware-linux \ --with-mysql \ - || exit 1 + --with-mysql-incdir=/usr/include/mysql \ + --with-mysql-libdir=/usr/lib${LIBDIRSUFFIX}/mysql \ + --with-sqlite3 \ + --with-sqlite3-dir=/usr/lib${LIBDIRSUFFIX} \ + --build=$ARCH-slackware-linux \ + $OPT_ARGS -make docdir=/usr/doc/$PRGNAM-$VERSION || exit 1 -make docdir=/usr/doc/$PRGNAM-$VERSION install-strip DESTDIR=$PKG || exit 1 +make docdir=/usr/doc/$PRGNAM-$VERSION +make docdir=/usr/doc/$PRGNAM-$VERSION install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ @@ -57,4 +76,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} |