summaryrefslogtreecommitdiff
path: root/academic/qtoctave/qtoctave.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/qtoctave/qtoctave.SlackBuild')
-rw-r--r--academic/qtoctave/qtoctave.SlackBuild16
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}