summaryrefslogtreecommitdiff
path: root/development/SoQt/SoQt.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-04-21 18:22:32 -0500
committerErik Hanson <erik@slackbuilds.org>2010-05-15 10:38:37 +0200
commit88b96868135d9d7be112d359892ea2d0c0887e07 (patch)
treed0cde710bc7474ee62b27c5441e0ac0e65615332 /development/SoQt/SoQt.SlackBuild
parent1e631247fbb05e5190653410136dcbd61ac45afc (diff)
downloadslackbuilds-88b96868135d9d7be112d359892ea2d0c0887e07.tar.gz
development/SoQt: Added.
SoQt is Qt GUI bindings for Coin library. Thanks to new maintainer Niels Horn.
Diffstat (limited to 'development/SoQt/SoQt.SlackBuild')
-rwxr-xr-xdevelopment/SoQt/SoQt.SlackBuild78
1 files changed, 78 insertions, 0 deletions
diff --git a/development/SoQt/SoQt.SlackBuild b/development/SoQt/SoQt.SlackBuild
new file mode 100755
index 0000000000..ec42f4c03d
--- /dev/null
+++ b/development/SoQt/SoQt.SlackBuild
@@ -0,0 +1,78 @@
+#!/bin/sh
+
+# Slackware build script for SoQt
+
+# Originally written by Aleksandar B. Samardzic (<asamardzic@matf.bg.ac.yu>)
+# Maintained as of version 1.5.0 by Niels Horn <niels.horn@gmail.com>
+# Revision data 2010/04/13
+
+set -e
+
+PRGNAM=SoQt
+VERSION=1.5.0
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+ ARCHQUADLET=""
+elif [ "$ARCH" = "arm" ]; then
+ SLKCFLAGS="-O2 -march=armv4t"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET="-gnueabi"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root . || true
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux$GUEABI
+
+make
+make install DESTDIR=$PKG
+
+( 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 || true
+)
+
+( 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
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS BUGS.txt COPYING ChangeLog FAQ INSTALL* LICENSE.GPL \
+ NEWS README* $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.${PKGTYPE:-tgz}