graphics/tuxpaint: Fixed build - explicitly linked libpng.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2012-09-15 22:53:22 -05:00 committed by dsomero
parent 38dea0e2dc
commit ca5269f389

View file

@ -3,11 +3,11 @@
# Slackware build script for tuxpaint
# Written by Pablo Santamaria (pablosantamaria@gmail.com)
# Modified by Willy Sudiarto Raharjo <willysr@slackware-id.org>
PRGNAM=tuxpaint
VERSION=${VERSION:-0.9.21}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@ -57,6 +57,9 @@ find . \
# Create a more util Makefile
patch -p1 < $CWD/patch.diff
# Explicitly link libpng
sed -i 's/$(ARCH_LINKS)/$(ARCH_LINKS) -lpng/' Makefile
make PREFIX=/usr LIBDIRSUFFIX=$LIBDIRSUFFIX OPTFLAGS="$SLKCFLAGS"
make PREFIX=/usr LIBDIRSUFFIX=$LIBDIRSUFFIX DESTDIR=$PKG install
mv $PKG/etc/tuxpaint/tuxpaint.conf $PKG/etc/tuxpaint/tuxpaint.conf.new