diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2015-03-02 22:25:48 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-03-03 07:26:17 +0700 |
commit | e4b2e9c8e84beefbf3fd7a0e91c65d405129211c (patch) | |
tree | b9c01598d7e56d7cec4f42abbf904c74831bf241 /libraries/irrlicht/irrlicht.SlackBuild | |
parent | f28d9a818c641f31294676b01fcdc53ad8f5afbb (diff) |
libraries/irrlicht: Updated for version 1.8.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/irrlicht/irrlicht.SlackBuild')
-rw-r--r-- | libraries/irrlicht/irrlicht.SlackBuild | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/libraries/irrlicht/irrlicht.SlackBuild b/libraries/irrlicht/irrlicht.SlackBuild index a6d4b52a299b6..c40a3de712f4d 100644 --- a/libraries/irrlicht/irrlicht.SlackBuild +++ b/libraries/irrlicht/irrlicht.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for irrlicht -# Copyright 2010 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2010,2015 Larry Hajali <larryhaja[at]gmail[dot]com> # Copyright 2011-2013 Niels Horn, Rio de Janeiro, RJ, Brazil # All rights reserved. # @@ -26,7 +26,7 @@ # Revision date 2013/03/28 PRGNAM=irrlicht -VERSION=${VERSION:-1.8} +VERSION=${VERSION:-1.8.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -67,21 +67,21 @@ unzip $CWD/$PRGNAM-$VERSION.zip cd $PRGNAM-$VERSION 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 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ NDEBUG=1 \ make -C source/Irrlicht \ - sharedlib staticlib + sharedlib make -C source/Irrlicht install \ DESTDIR=$PKG \ INSTALL_DIR=$PKG/usr/lib${LIBDIRSUFFIX} -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -90,6 +90,14 @@ cp -a \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# Fix end-of-line encoding. +for i in $PKG/usr/include/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION/*; do + cp $i ${i}.new + sed -i 's/\r//' ${i}.new + touch -r $i ${i}.new + mv ${i}.new $i +done + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |