diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-23 03:54:02 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-23 23:21:46 -0500 |
commit | 80132f8ea9f2542fac42ccc2d0afa831ca98d9fc (patch) | |
tree | 5f0badcf11ebc7b65694bd6ec927232b13aa5797 /libraries | |
parent | 1e0351b4ecd87a51bbf9f5b69e3cafd3a50beafc (diff) | |
download | slackbuilds-80132f8ea9f2542fac42ccc2d0afa831ca98d9fc.tar.gz |
libraries/openbabel: Updated for version 2.2.3.
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/openbabel/openbabel.SlackBuild | 23 | ||||
-rw-r--r-- | libraries/openbabel/openbabel.info | 6 |
2 files changed, 19 insertions, 10 deletions
diff --git a/libraries/openbabel/openbabel.SlackBuild b/libraries/openbabel/openbabel.SlackBuild index 1901eda10c..9cff2cce50 100644 --- a/libraries/openbabel/openbabel.SlackBuild +++ b/libraries/openbabel/openbabel.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for openbabel -# Copyright 2006-2009 Robby Workman Northport, Alabama, USA +# Copyright 2006,2007,2008,2009,2010 Robby Workman Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,11 +23,20 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=openbabel -VERSION=2.2.1 -ARCH=${ARCH:-i486} +VERSION=2.2.3 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e @@ -70,10 +82,7 @@ CXXFLAGS="$SLKCFLAGS" \ make make install-strip DESTDIR=$PKG -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ diff --git a/libraries/openbabel/openbabel.info b/libraries/openbabel/openbabel.info index b45cebda36..be1fed8a99 100644 --- a/libraries/openbabel/openbabel.info +++ b/libraries/openbabel/openbabel.info @@ -1,8 +1,8 @@ PRGNAM="openbabel" -VERSION="2.2.1" +VERSION="2.2.3" HOMEPAGE="http://openbabel.sourceforge.net" -DOWNLOAD="http://downloads.sourceforge.net/openbabel/openbabel-2.2.1.tar.gz" -MD5SUM="1c9cc42bb212aef3b6e50c00460b2fe6" +DOWNLOAD="http://downloads.sourceforge.net/openbabel/openbabel-2.2.3.tar.gz" +MD5SUM="7ea8845c54d6d3a9be378c78088af804" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Robby Workman" |