aboutsummaryrefslogtreecommitdiff
path: root/libraries/openbabel/openbabel.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-11 22:24:14 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:24:14 +0200
commitaaadf410ebe9010b8d53bf596b62707e146b1188 (patch)
tree66f88d9b9a21d4a2991c26e68040ec20521694a1 /libraries/openbabel/openbabel.SlackBuild
parent9532849d4ca98e9228a5af70c7b68f141a732dd4 (diff)
libraries/openbabel: Updated for version 2.2.0
Diffstat (limited to 'libraries/openbabel/openbabel.SlackBuild')
-rw-r--r--libraries/openbabel/openbabel.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/libraries/openbabel/openbabel.SlackBuild b/libraries/openbabel/openbabel.SlackBuild
index cbe7d7d7df84b..185321c0b9a62 100644
--- a/libraries/openbabel/openbabel.SlackBuild
+++ b/libraries/openbabel/openbabel.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openbabel
-VERSION=2.0.2
+VERSION=2.2.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -56,13 +58,16 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --disable-static
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-static \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog AUTHORS COPYING NEWS README THANKS doc/* \
+cp -a ChangeLog AUTHORS COPYING NEWS README THANKS doc/*.html \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild