mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
development/SoQt: Miscellaneous cleanups
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
196971b122
commit
1299023b5a
4 changed files with 30 additions and 20 deletions
|
@ -14,4 +14,4 @@ includes a class-hierarchy of viewer components of varying functionality
|
|||
and complexity, with various modes for the end-user to control the
|
||||
3D-scene camera interaction.
|
||||
|
||||
SoQt requires the Coin library, which is also available at SlackBuilds.org.
|
||||
This requires Coin.
|
||||
|
|
|
@ -4,16 +4,21 @@
|
|||
|
||||
# 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
|
||||
# Revision data 2010/07/10
|
||||
|
||||
PRGNAM=SoQt
|
||||
VERSION=1.5.0
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
VERSION=${VERSION:-1.5.0}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -35,15 +40,21 @@ elif [ "$ARCH" = "arm" ]; then
|
|||
SLKCFLAGS="-O2 -march=armv4t"
|
||||
LIBDIRSUFFIX=""
|
||||
ARCHQUADLET="-gnueabi"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
ARCHQUADLET=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
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
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
|
@ -52,7 +63,7 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--mandir=/usr/man \
|
||||
--build=$ARCH-slackware-linux$GUEABI
|
||||
--build=$ARCH-slackware-linux$ARCHQUADLET
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
@ -60,14 +71,13 @@ make install DESTDIR=$PKG
|
|||
find $PKG | xargs file | grep -e "executable" -e "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
|
||||
)
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -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
|
||||
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
|
||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
|||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Niels Horn"
|
||||
EMAIL="niels.horn@gmail.com"
|
||||
APPROVED="Erik Hanson"
|
||||
APPROVED="rworkman"
|
||||
|
|
|
@ -11,9 +11,9 @@ SoQt:
|
|||
SoQt: SoQt is a library which provides the glue between Coin
|
||||
SoQt: high-level 3D visualization library and Troll Tech's Qt
|
||||
SoQt: 2D user interface library.
|
||||
SoQt:
|
||||
SoQt:
|
||||
SoQt: Homepage: http://www.coin3d.org/lib/soqt/
|
||||
SoQt:
|
||||
SoQt:
|
||||
SoQt:
|
||||
SoQt:
|
||||
SoQt:
|
||||
SoQt:
|
||||
SoQt:
|
||||
|
|
Loading…
Reference in a new issue