libraries/ode: Updated for version 0.11.1

This commit is contained in:
Alex Word 2010-05-12 17:41:57 +02:00 committed by David Somero
parent fe66a872a6
commit 43135d6643
3 changed files with 49 additions and 34 deletions

View file

@ -8,53 +8,68 @@
## did not write. Thanks.
# Modified by the SlackBuilds.org project
# Updated by Alex Word <alex_word86@yahoo.com>
set -e
NAME=ode
VERSION=0.8
PRGNAM=ode
VERSION=0.11.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=${PKG:-$TMP/package-$NAME}
PKG=${PKG:-$TMP/package-$PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
rm -rf $PKG $TMP/$NAME-$VERSION
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
unzip $CWD/$NAME-src-$VERSION.zip
cd $NAME-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
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
set -e
rm -rf $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
cd ode/doc
doxygen Doxyfile
cd -
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--exec-prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-shared \
--disable-debug
--enable-static=no \
--disable-asserts \
--enable-gprof \
--with-x \
--with-drawstuff=X11 \
--disable-demos \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$NAME-$VERSION/html
cp -a CHANGELOG* INSTALL* LICENSE* README* $PKG/usr/doc/$NAME-$VERSION
cp -a docs/* $PKG/usr/doc/$NAME-$VERSION/html
cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION/html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n -p $OUTPUT/$NAME-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

View file

@ -1,8 +1,8 @@
PRGNAM="ode"
VERSION="0.8"
HOMEPAGE="http://www.ode.org"
DOWNLOAD="http://dl.sourceforge.net/opende/ode-src-0.8.zip"
MD5SUM="fb7462ba0af2fbc230cb1b3f79e0acbb"
MAINTAINER="hollywoodb"
EMAIL="hollywoodb@fastmail.fm"
APPROVED="BP{k}"
VERSION="0.11.1"
HOMEPAGE="http://www.ode.org/"
DOWNLOAD="http://downloads.sourceforge.net/opende/ode-0.11.1.tar.bz2"
MD5SUM="c5d51e4c73bff379e5ae18ac218ebba3"
MAINTAINER="Alex Word"
EMAIL="alex_word86@yahoo.com"
APPROVED="dsomero"

View file

@ -5,7 +5,7 @@
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
|-----handy-ruler-------------------------------------------------------|
ode: ode (library for simulating articulated rigid body dynamics)
ode:
ode: The Open Dynamics Engine (ODE) is a free, industrial quality library
@ -13,7 +13,7 @@ ode: for simulating articulated rigid body dynamics. Proven applications
ode: include simulating ground vehicles, legged creatures, and moving
ode: objects in VR environments. It is fast, flexible and robust, and has
ode: built-in collision detection.
ode:
ode:
ode:
ode:
ode:
ode:
ode:
ode: