libraries/irrlicht: Updated for version 1.8.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Larry Hajali 2015-03-02 22:25:48 +07:00 committed by Willy Sudiarto Raharjo
parent f28d9a818c
commit e4b2e9c8e8
2 changed files with 21 additions and 13 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for irrlicht # 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 # Copyright 2011-2013 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved. # All rights reserved.
# #
@ -26,7 +26,7 @@
# Revision date 2013/03/28 # Revision date 2013/03/28
PRGNAM=irrlicht PRGNAM=irrlicht
VERSION=${VERSION:-1.8} VERSION=${VERSION:-1.8.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -67,21 +67,21 @@ unzip $CWD/$PRGNAM-$VERSION.zip
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-exec chmod 755 {} \; -o \ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
NDEBUG=1 \ NDEBUG=1 \
make -C source/Irrlicht \ make -C source/Irrlicht \
sharedlib staticlib sharedlib
make -C source/Irrlicht install \ make -C source/Irrlicht install \
DESTDIR=$PKG \ DESTDIR=$PKG \
INSTALL_DIR=$PKG/usr/lib${LIBDIRSUFFIX} 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@ -90,6 +90,14 @@ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild 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 mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,10 +1,10 @@
PRGNAM="irrlicht" PRGNAM="irrlicht"
VERSION="1.8" VERSION="1.8.1"
HOMEPAGE="http://irrlicht.sourceforge.net/" HOMEPAGE="http://irrlicht.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.zip" DOWNLOAD="http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.1.zip"
MD5SUM="d06329d8f466658caaf4838ba349e393" MD5SUM="f4f7fa33bd1060eb0dd51dcd66b0f6e3"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""
MAINTAINER="Niels Horn" MAINTAINER="Larry Hajali"
EMAIL="niels.horn@gmail.com" EMAIL="larryhaja[at]gmail[dot]com"