aboutsummaryrefslogtreecommitdiff
path: root/libraries/ode/ode.SlackBuild
diff options
context:
space:
mode:
authorAlex Word <alex_word86@yahoo.com>2010-05-12 17:41:57 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:41:57 +0200
commit43135d6643e010c571a64361efa80c382fdf10e4 (patch)
treec679418d3d668ed9fe6eeb78ef01ae5dc958aeec /libraries/ode/ode.SlackBuild
parentfe66a872a6c59b1f227ae18e623cdbab2bb94873 (diff)
libraries/ode: Updated for version 0.11.1
Diffstat (limited to 'libraries/ode/ode.SlackBuild')
-rw-r--r--libraries/ode/ode.SlackBuild59
1 files changed, 37 insertions, 22 deletions
diff --git a/libraries/ode/ode.SlackBuild b/libraries/ode/ode.SlackBuild
index 314f7b3b27a0e..4c9c4dfa216c6 100644
--- a/libraries/ode/ode.SlackBuild
+++ b/libraries/ode/ode.SlackBuild
@@ -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