summaryrefslogtreecommitdiff
path: root/perl/perl-GD/perl-GD.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-GD/perl-GD.SlackBuild')
-rw-r--r--perl/perl-GD/perl-GD.SlackBuild21
1 files changed, 19 insertions, 2 deletions
diff --git a/perl/perl-GD/perl-GD.SlackBuild b/perl/perl-GD/perl-GD.SlackBuild
index d5b04848d7..4f1fe69a28 100644
--- a/perl/perl-GD/perl-GD.SlackBuild
+++ b/perl/perl-GD/perl-GD.SlackBuild
@@ -6,8 +6,15 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20180611 bkw:
+# - update for v2.68
+
+# 20180228 bkw:
+# - fix build on 32-bit. Thanks to idlemoor for the bug report.
+# - add FASTCGI option
+
PRGNAM=perl-GD
-VERSION=${VERSION:-2.67}
+VERSION=${VERSION:-2.68}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,7 +67,17 @@ find -L . \
# This isn't a real issue, since on Slackware /usr/X11R6/include
# is just a symlink to /usr/include.
+if [ "${FASTCGI:-no}" = "yes" ]; then
+ FCGIOPT="--fcgi"
+ WITH="with"
+else
+ FCGIOPT=""
+ WITH="without"
+fi
+
perl Makefile.PL \
+ --lib_gd_path /usr \
+ $FCGIOPT \
PREFIX=/usr \
INSTALLDIRS=vendor \
INSTALLVENDORMAN3DIR=/usr/man/man3 \
@@ -85,7 +102,7 @@ cp -a README* ChangeLog LICENSE $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
+sed "s,@WITH@,$WITH," $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}