aboutsummaryrefslogtreecommitdiff
path: root/development/hugs98/hugs98.SlackBuild
diff options
context:
space:
mode:
authorDaniel <whitehate{at}gmail{dot}com>2010-05-13 00:24:46 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:24:46 +0200
commit72ee118648770dcd6e6238ee749d26df07f99646 (patch)
treeeaa49fea8a0e6fd89a60a44b6cda84659dbd8257 /development/hugs98/hugs98.SlackBuild
parentb72553ad991c2923c547a90c0588def60e2f08f5 (diff)
development/hugs98: Updated for version Sep2006
Diffstat (limited to 'development/hugs98/hugs98.SlackBuild')
-rw-r--r--development/hugs98/hugs98.SlackBuild23
1 files changed, 10 insertions, 13 deletions
diff --git a/development/hugs98/hugs98.SlackBuild b/development/hugs98/hugs98.SlackBuild
index 10e121b0e788..ba894fb08636 100644
--- a/development/hugs98/hugs98.SlackBuild
+++ b/development/hugs98/hugs98.SlackBuild
@@ -24,20 +24,22 @@ PRGNAM=hugs98
VERSION=Sep2006
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
+TAG=${TAG:-_SBo}
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-JOBS=${JOBS:-3}
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
@@ -52,7 +54,6 @@ cd $PRGNAM-plus-$VERSION
chown -R root:root .
chmod -R a-s,u+rw,go-w+r .
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
# most --enable's are autodetected by configure (like opengl, ffi and io encoding)
@@ -61,22 +62,18 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
-# Compile the application and install it into the $PKG directory
-make -j $JOBS
+make
make install DESTDIR=$PKG
-# Strip binaries and libraries - this can be done with 'make install-strip'
-# in many source trees, and that's usually acceptable if so, but if not,
-# use this:
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
-# Compress man pages
( 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
@@ -85,13 +82,13 @@ make install DESTDIR=$PKG
( cd $PKG/usr/man/man1 ; ln -sf hugs.1.gz ffihugs.1.gz )
( cd $PKG/usr/man/man1 ; ln -sf hugs.1.gz runhugs.1.gz )
-# Copy program documentation into the package
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a Credits License Readme docs/ffi-notes.txt docs/libraries-notes.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a Credits License Readme docs/ffi-notes.txt docs/libraries-notes.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
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 $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}