summaryrefslogtreecommitdiffstats
path: root/development/SDL2_image/SDL2_image.SlackBuild
diff options
context:
space:
mode:
author Dugan Chen <thedoogster@gmail.com>2014-01-14 23:07:54 +0700
committer Erik Hanson <erik@slackbuilds.org>2014-01-29 23:21:01 -0600
commitad722f51d0dc2d2b4bc7f3142ad4acbb90499a72 (patch)
treefbb71ec56a417e74d8e982a9866e381cb5e5895d /development/SDL2_image/SDL2_image.SlackBuild
parentf7b3f20275c30754cf048fcbf727cdc61e66f715 (diff)
downloadslackbuilds-ad722f51d0dc2d2b4bc7f3142ad4acbb90499a72.tar.gz
slackbuilds-ad722f51d0dc2d2b4bc7f3142ad4acbb90499a72.tar.xz
development/SDL2_image: Added PNG Support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/SDL2_image/SDL2_image.SlackBuild')
-rw-r--r--development/SDL2_image/SDL2_image.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/development/SDL2_image/SDL2_image.SlackBuild b/development/SDL2_image/SDL2_image.SlackBuild
index 2295afe22a..49e211e65d 100644
--- a/development/SDL2_image/SDL2_image.SlackBuild
+++ b/development/SDL2_image/SDL2_image.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=SDL2_image
VERSION=${VERSION:-2.0.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -64,10 +64,13 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
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 {} \;
+
+# To allow for compiling with png support.
+patch -p1 --verbose < $CWD/pngfix.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -78,8 +81,7 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux \
- --disable-png # Building with PNG support on Slackware 14 doesn't work.
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG