aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-07-11 02:50:46 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-07-11 02:50:46 -0500
commit196971b1221937c40547550e68960957beda02d1 (patch)
tree33ce601f2f4bb6beaa8ff912ad468006e5a5220d
parentcd49f5b46ffc14864c33cb81e3746f4470756cff (diff)
development/Coin: Miscellaneous cleanups
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--development/Coin/Coin.SlackBuild27
-rw-r--r--development/Coin/Coin.info2
-rw-r--r--development/Coin/slack-desc2
3 files changed, 21 insertions, 10 deletions
diff --git a/development/Coin/Coin.SlackBuild b/development/Coin/Coin.SlackBuild
index 37d865b28cab..dbfdf4e79123 100644
--- a/development/Coin/Coin.SlackBuild
+++ b/development/Coin/Coin.SlackBuild
@@ -4,14 +4,21 @@
# Originally written by Aleksandar Samardzic <asamardzic@gmail.com>
# Versions >= 3.1.3 maintained by Niels Horn <niels.horn@gmail.com>
-# Revision date: 2010/04/13
+# Revision date: 2010/07/10
PRGNAM=Coin
VERSION=${VERSION:-3.1.3}
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+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
@@ -33,6 +40,10 @@ elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4t"
LIBDIRSUFFIX=""
ARCHQUADLET="-gnueabi"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET=""
fi
set -e
@@ -64,13 +75,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 COPYING ChangeLog FAQ* INSTALL* LICENSE.GPL NEWS README* RELNOTES THANKS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog FAQ* INSTALL* LICENSE.GPL NEWS RE* THANKS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/development/Coin/Coin.info b/development/Coin/Coin.info
index 6cb08c0fd017..a084da757a30 100644
--- a/development/Coin/Coin.info
+++ b/development/Coin/Coin.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Niels Horn"
EMAIL="niels.horn@gmail.com"
-APPROVED="Erik Hanson"
+APPROVED="rworkman"
diff --git a/development/Coin/slack-desc b/development/Coin/slack-desc
index 802d03beb0cb..40ae13f800fe 100644
--- a/development/Coin/slack-desc
+++ b/development/Coin/slack-desc
@@ -11,7 +11,7 @@ Coin:
Coin: Coin is a high-level, retained-mode toolkit for effective 3D
Coin: graphics development. Cross-platform, full access to source code,
Coin: no royalties or run-time fees.
-Coin:
+Coin:
Coin: Homepage: http://www.coin3d.org/lib/coin/
Coin:
Coin: