summaryrefslogtreecommitdiff
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
parent25359453930f3f464aa3a89d689747c96e1c409f (diff)
downloadslackbuilds-474853acdf8bf2a3ce6a6dfc666daddcec1bf9e0.tar.gz
development/glm: Updated for version 0.9.7.2.
Fixes building on i486 Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--development/glm/glm.SlackBuild21
-rw-r--r--development/glm/glm.info6
2 files changed, 13 insertions, 14 deletions
diff --git a/development/glm/glm.SlackBuild b/development/glm/glm.SlackBuild
index 4fad43c164..ef0262c02f 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
diff --git a/development/glm/glm.info b/development/glm/glm.info
index 9dddb63f91..1654760824 100644
--- a/development/glm/glm.info
+++ b/development/glm/glm.info
@@ -1,8 +1,8 @@
PRGNAM="glm"
-VERSION="0.9.6.3"
+VERSION="0.9.7.2"
HOMEPAGE="http://glm.g-truc.net/"
-DOWNLOAD="http://downloads.sourceforge.net/ogl-math/glm-0.9.6.3.zip"
-MD5SUM="acd0b517c37ed25c3f11ee155ee8257e"
+DOWNLOAD="https://github.com/g-truc/glm/archive/0.9.7.2.tar.gz"
+MD5SUM="e1aa3fdbbbe0edc924165cc5f0bc24f6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""