diff options
Diffstat (limited to 'development/glm/glm.SlackBuild')
-rw-r--r-- | development/glm/glm.SlackBuild | 21 |
1 files changed, 10 insertions, 11 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 |