aboutsummaryrefslogtreecommitdiff
path: root/development/glm/glm.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2016-01-28 10:37:13 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-29 07:16:33 +0700
commit474853acdf8bf2a3ce6a6dfc666daddcec1bf9e0 (patch)
tree6a0aae9570d9b2b51c7783aef4a51152cf49337d /development/glm/glm.SlackBuild
parent25359453930f3f464aa3a89d689747c96e1c409f (diff)
development/glm: Updated for version 0.9.7.2.
Fixes building on i486 Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/glm/glm.SlackBuild')
-rw-r--r--development/glm/glm.SlackBuild21
1 files changed, 10 insertions, 11 deletions
diff --git a/development/glm/glm.SlackBuild b/development/glm/glm.SlackBuild
index 4fad43c16467e..ef0262c02f23d 100644
--- a/development/glm/glm.SlackBuild
+++ b/development/glm/glm.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for glm
-# Copyright 2012-2015 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# Copyright 2012-2016 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=glm
-VERSION=${VERSION:-0.9.6.3}
+VERSION=${VERSION:-0.9.7.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -45,28 +45,27 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-mkdir -p $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
cd $PRGNAM-$VERSION
-unzip $CWD/$PRGNAM-$VERSION.zip
chown -R root.root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cd glm
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DGLM_TEST_ENABLE:STRING="ON" ..
+ -DGLM_TEST_ENABLE=ON \
+ -DGLM_TEST_ENABLE_CXX_11=ON ..
make
make install DESTDIR=$PKG
cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a readme.txt copying.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a readme.md copying.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install