diff options
author | Mauro Giachero <mauro_dot_giachero_at_gmail_dot_com> | 2010-05-13 00:20:20 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:20:20 +0200 |
commit | 5307ca63df81e5323f6a0f861c69b3c408c6cf8b (patch) | |
tree | 3a6e78576edbedaddb20a271d8e6f13e04d352cb /academic/qtoctave/qtoctave.SlackBuild | |
parent | 8021496c3030a3b984008b322defbd472bc7d7c6 (diff) | |
download | slackbuilds-5307ca63df81e5323f6a0f861c69b3c408c6cf8b.tar.gz |
academic/qtoctave: Updated for version 0.8.1
Diffstat (limited to 'academic/qtoctave/qtoctave.SlackBuild')
-rw-r--r-- | academic/qtoctave/qtoctave.SlackBuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/academic/qtoctave/qtoctave.SlackBuild b/academic/qtoctave/qtoctave.SlackBuild index fc0c8a2326..9c8f16d38a 100644 --- a/academic/qtoctave/qtoctave.SlackBuild +++ b/academic/qtoctave/qtoctave.SlackBuild @@ -18,10 +18,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686 -DNDEBUG" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686 -DNDEBUG" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC -DNDEBUG" + SLKCFLAGS="-O2 -fPIC -DNDEBUG" + LIBDIRSUFFIX="64" fi set -e # Exit on most errors @@ -43,7 +46,8 @@ cmake \ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ - . + -DLIB_SUFFIX:STRING=${LIBDIRSUFFIX} . + make # The install target doesn't have a DESTDIR or INSTALL_ROOT or equivalent, @@ -73,8 +77,10 @@ find $PKG/usr/share -type f -exec chmod 0644 {} \; find $PKG/usr/share -type d -exec chmod 0755 {} \; ( 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 + 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 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -91,4 +97,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |