aboutsummaryrefslogtreecommitdiff
path: root/libraries/DevIL/DevIL.SlackBuild
diff options
context:
space:
mode:
authorDugan Chen <thedoogster@gmail.com>2014-04-22 07:45:30 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-04-23 07:51:57 +0700
commitddbac19ffcfaba1d88ab77bf6165a147a72c63d6 (patch)
tree43648dd7532878d4da77ff8c103d91277cdd8182 /libraries/DevIL/DevIL.SlackBuild
parent6de96aac5fe7da68f7b806c840848a40ab951b4b (diff)
libraries/DevIL: Updated for version 1.7.8 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/DevIL/DevIL.SlackBuild')
-rw-r--r--libraries/DevIL/DevIL.SlackBuild54
1 files changed, 26 insertions, 28 deletions
diff --git a/libraries/DevIL/DevIL.SlackBuild b/libraries/DevIL/DevIL.SlackBuild
index 265647dc22fa..6ae4a0586925 100644
--- a/libraries/DevIL/DevIL.SlackBuild
+++ b/libraries/DevIL/DevIL.SlackBuild
@@ -3,11 +3,12 @@
# Slackware build script for DevIL
# Written by Phil Warner <pc_warner@yahoo.com>
# Modified by Robby Workman <rworkman@slackbuilds.org>
+# Currently maintained by Dugan Chen
PRGNAM=DevIL
-VERSION=${VERSION:-1.6.8}
-PKG_VERSION=${VERSION}_rc2
-BUILD=${BUILD:-3}
+SRCNAM=devil
+VERSION=${VERSION:-1.7.8}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -42,51 +43,48 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$(echo $PKG_VERSION | tr _ -).tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $SRCNAM-$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 {} \;
-# Fixes a libpng 1.4 problem.
-patch -p1 < $CWD/patches/devil-1.6.8-libpng14.patch
+# Build against libpng14, not libpng12.
+sed -i 's/png12/png14/g' configure
-# Fix the typo that prevents building with Allegro
-# Also patch files to change (ILvoid) to (void) in order to
-# fix issues with gcc 4.2.
-# Thanks to David Somero for the heads up on this.
-patch -p1 < $CWD/patches/ILvoid_fix_1.diff
-patch -p1 < $CWD/patches/ILvoid_fix_2.diff
-# There is a space in the filename's path, so we have to cd into
-# the offending directory before patching.
-( cd cpp\ wrapper
- patch < $CWD/patches/ILvoid_fix_3.diff
-)
+# Fix further linking issues with libpng. This patch is taken
+# from Ubuntu. Without this patch, DevIL will compile, but attempts
+# to link against it will break.
+patch -p1 < $CWD/04_png_set_expand_gray.diff
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --datarootdir=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
+ --enable-static=no \
--build=$ARCH-slackware-linux
-
-force_arch="$ARCH" make
+make
make install DESTDIR=$PKG
-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
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING CREDITS ChangeLog INSTALL Libraries.txt \
- NEWS README README.unix TODO $PKG/usr/doc/$PRGNAM-$VERSION
+ NEWS README README.unix TODO examples/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}