perl/perl-GD: Updated for v2.68, fix 32-bit build, add FastCGI.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2018-02-28 14:37:14 -05:00 committed by David Spencer
parent eaace30612
commit f374e71f3a
4 changed files with 38 additions and 15 deletions

View file

@ -1,6 +1,12 @@
perl-GD (perl bindings for GD image library)
GD.pm is a Perl interface to Thomas Boutell's gd graphics library
(version 2.01 or higher; see below). GD allows you to create color
drawings using a large number of graphics primitives, and emit the
drawings as PNG files.
GD.pm is a Perl interface to Thomas Boutell's gd graphics library.
GD allows you to create color drawings using a large number of graphics
primitives, and emit the drawings as PNG files.
The package includes the bdf2gdfont.pl utility, which converts X11 BDF
fonts to the format used by GD.
perl-GD can optionally be built with support for FastCGI. To do this,
first install libraries/fcgi, then run perl-GD.SlackBuild with FASTCGI=yes
set in the environment.

View file

@ -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}

View file

@ -1,8 +1,8 @@
PRGNAM="perl-GD"
VERSION="2.67"
VERSION="2.68"
HOMEPAGE="https://metacpan.org/pod/GD"
DOWNLOAD="https://cpan.metacpan.org/authors/id/R/RU/RURBAN/GD-2.67.tar.gz"
MD5SUM="b9cfc5a677b5e9fa607be1379f789855"
DOWNLOAD="https://cpan.metacpan.org/authors/id/R/RU/RURBAN/GD-2.68.tar.gz"
MD5SUM="b18bf9698608699309dfb3d09e260c63"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
perl-GD: perl-GD (perl bindings for GD image library)
perl-GD:
perl-GD: GD.pm is a Perl interface to Thomas Boutell's gd graphics library
perl-GD: (version 2.01 or higher; see below). GD allows you to create color
perl-GD: drawings using a large number of graphics primitives, and emit the
perl-GD: drawings as PNG files.
perl-GD:
perl-GD:
perl-GD: GD.pm is a Perl interface to Thomas Boutell's gd graphics
perl-GD: library. GD allows you to create color drawings using a
perl-GD: large number of graphics primitives, and emit the drawings as
perl-GD: PNG files.
perl-GD:
perl-GD: This package was built @WITH@ FastCGI support.
perl-GD:
perl-GD:
perl-GD: