libraries/openbabel: Updated for version 2.2.1

This commit is contained in:
Robby Workman 2010-05-13 00:32:33 +02:00 committed by David Somero
parent e9ac552938
commit a6dbaecefc
3 changed files with 24 additions and 17 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for openbabel # Slackware build script for openbabel
# Copyright 2006-2008 Robby Workman Northport, Alabama, USA # Copyright 2006-2009 Robby Workman Northport, Alabama, USA
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openbabel PRGNAM=openbabel
VERSION=2.2.0 VERSION=2.2.1
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e set -e
@ -56,6 +59,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/man \
@ -66,18 +70,19 @@ CXXFLAGS="$SLKCFLAGS" \
make make
make install-strip DESTDIR=$PKG make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
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
( cd $PKG/usr/man ( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \; find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
) )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
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
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG 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}

View file

@ -1,8 +1,10 @@
PRGNAM="openbabel" PRGNAM="openbabel"
VERSION="2.2.0" VERSION="2.2.1"
HOMEPAGE="http://openbabel.sourceforge.net" HOMEPAGE="http://openbabel.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/openbabel/openbabel-2.2.0.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/openbabel/openbabel-2.2.1.tar.gz"
MD5SUM="643a18c7ba09254d36e93afd6277346f" DOWNLOAD_x86_64=""
MD5SUM="1c9cc42bb212aef3b6e50c00460b2fe6"
MD5SUM_x86_64=""
MAINTAINER="Robby Workman" MAINTAINER="Robby Workman"
EMAIL="rw@rlworkman.net" EMAIL="rw@rlworkman.net"
APPROVED="David Somero" APPROVED="dsomero"

View file

@ -7,13 +7,13 @@
|-----handy-ruler---------------------------------------------------| |-----handy-ruler---------------------------------------------------|
openbabel: openbabel (Open Babel 3D Library) openbabel: openbabel (Open Babel 3D Library)
openbabel: openbabel:
openbabel: Open Babel is a project designed to pick up where Babel left off, openbabel: Open Babel is a project designed to pick up where Babel left off,
openbabel: as a cross-platform program and library designed to interconvert openbabel: as a cross-platform program and library designed to interconvert
openbabel: between many file formats used in molecular modeling, computational openbabel: between many file formats used in molecular modeling, computational
openbabel: chemistry, and many related areas. openbabel: chemistry, and many related areas.
openbabel: openbabel:
openbabel: Homepage: http://openbabel.sourceforge.net/wiki/Main_Page openbabel: Homepage: http://openbabel.sourceforge.net/wiki/Main_Page
openbabel: openbabel:
openbabel: openbabel:
openbabel: openbabel: