ports/50499: graphics/p5-GD upgrade to 2.06
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Mar 31 20:40:07 UTC 2003
>Number: 50499
>Category: ports
>Synopsis: graphics/p5-GD upgrade to 2.06
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 31 12:40:03 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Matthew Seaman
>Release: FreeBSD 4.8-RC i386
>Organization:
Infracaninophile
>Environment:
System: FreeBSD happy-idiot-talk.infracaninophile.co.uk 4.8-RC FreeBSD 4.8-RC #1: Sat Mar 29 23:09:01 GMT 2003 root at happy-idiot-talk.infracaninophile.co.uk:/usr/obj/usr/src/sys/HAPPY-IDIOT-TALK i386
>Description:
Update graphics/p5-GD to latest version 2.06
This version requires gd-2.01 or higher, so dependency change from
graphics/gd to graphics/gd2
Tested with perl versions 5.8.0 and 5.6.1
>How-To-Repeat:
>Fix:
--- p5-GD.diff begins here ---
diff -ruN graphics/p5-GD.orig/Makefile graphics/p5-GD/Makefile
--- graphics/p5-GD.orig/Makefile Fri Feb 21 23:38:55 2003
+++ graphics/p5-GD/Makefile Mon Mar 31 20:21:15 2003
@@ -6,7 +6,7 @@
#
PORTNAME= GD
-PORTVERSION= 1.41
+PORTVERSION= 2.06
CATEGORIES= graphics perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= GD
@@ -15,7 +15,7 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= A perl5 interface to Gd Graphics Library
-LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
+LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd2
PERL_CONFIGURE= yes
diff -ruN graphics/p5-GD.orig/distinfo graphics/p5-GD/distinfo
--- graphics/p5-GD.orig/distinfo Fri Sep 13 18:39:10 2002
+++ graphics/p5-GD/distinfo Mon Mar 31 20:22:44 2003
@@ -1 +1 @@
-MD5 (GD-1.41.tar.gz) = 9f11b3f6bb73f04d2bc3f02df0662bdd
+MD5 (GD-2.06.tar.gz) = 90025c06e22c91e22588cee1567d3c7c
diff -ruN graphics/p5-GD.orig/files/patch-aa graphics/p5-GD/files/patch-aa
--- graphics/p5-GD.orig/files/patch-aa Tue Jun 25 18:13:29 2002
+++ graphics/p5-GD/files/patch-aa Mon Mar 31 20:40:13 2003
@@ -1,49 +1,65 @@
---- Makefile.PL.orig Wed Jun 19 14:02:59 2002
-+++ Makefile.PL Sat Jun 22 21:25:18 2002
-@@ -3,40 +3,17 @@
- warn "NOTICE: This module requires libgd 1.8.4 or higher (shared library version 4.X).\n";
+--- Makefile.PL.orig Mon Mar 31 20:30:26 2003
++++ Makefile.PL Mon Mar 31 20:39:19 2003
+@@ -6,9 +6,9 @@
+
# =====> PATHS: CHECK AND ADJUST <=====
--my @INC = qw(-I/usr/local/include -I/usr/local/include/gd);
--my @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/lib );
+-my @INC = qw(-I/usr/local/include -I/usr/local/include/gd);
+-my @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/lib);
-my @LIBS = qw(-lgd -lpng -lz);
++my @INC = qw(-I/usr/local/include -I/usr/local/include/gd -I/usr/local/include/freetype -I/usr/X11R6/include -I/usr/X11R6/include/X11);
++my @LIBPATH = qw(-L/usr/local/lib -L/usr/X11R6/lib);
++my @LIBS = qw(-lfreetype -ljpeg -lgd -lpng -lz);
+
+ if ($^O eq 'VMS'){
+ warn "This is a build on OpenVMS. In case of problems with the build\n";
+@@ -31,22 +31,6 @@
+ @LIBS = qw(-llibgd.olb -llibpng.olb -llibz.olb);
+ }
+
+-# path to libgd
+-warn "\n";
+-my $PREFIX = lc prompt('Where is libgd installed?','/usr/lib');
+-unless ($PREFIX eq '/usr/lib') {
+- $PREFIX =~ s!/lib$!!;
+- unshift @INC,"-I$PREFIX/include";
+- unshift @LIBPATH,"-L$PREFIX/lib";
+-}
-
-# FEATURE FLAGS
-warn "\nPlease choose the features that match how libgd was built:\n";
-
-my $JPEG = lc prompt('Build JPEG support?','y') eq 'y';
--my $TTF = lc prompt('Build FreeType support?','y') eq 'y';
+-my $FT = lc prompt('Build FreeType support?','y') eq 'y';
-my $XPM = $^O !~ /^freebsd|MSWin32$/ && lc prompt('Build XPM support?','y') eq 'y';
--my $GIF = lc prompt('Build GIF support (for patched versions of gd)?','n') eq 'y';
-+my @INC = qw(-I/usr/local/include -I/usr/local/include/gd -I/usr/local/include/freetype -I/usr/X11R6/include -I/usr/X11R6/include/X11);
-+my @LIBPATH = qw(-L/usr/local/lib -L/usr/X11R6/lib);
-+my @LIBS = qw(-lfreetype -ljpeg -lgd -lpng -lz);
-
+-
my $FCGI = 0; # set to 1 to build compatability with fastCGI
--warn "\nIf you experience compile problems, please check the \@INC, \@LIBPATH and \@LIBS\n",
-- "arrays defined in Makefile.PL and manually adjust, if necessary.\n\n";
--
--#### no user-serviceable parts below #####
--
--push @LIBS,'-lfreetype' if $TTF;
+ warn "\nIf you experience compile problems, please check the \@INC, \@LIBPATH and \@LIBS\n",
+@@ -54,23 +38,9 @@
+
+ #### no user-serviceable parts below #####
+
+-push @LIBS,'-lfreetype' if $FT;
-push @LIBS,'-ljpeg' if $JPEG;
-push @LIBS, '-lm' unless $^O eq 'MSWin32';
+-push @INC, '-I/lib_root/libjpeg' if ($JPEG && $^O eq 'VMS');
+-push @INC, '-I/lib_root/ft2/include/freetype' if ($FT && $^O eq 'VMS');
+-push @INC, '-I/X11' if ($XPM && $^O eq 'VMS');
-
-# FreeBSD 3.3 with libgd built from ports croaks if -lXpm is specified
-if ($^O ne 'freebsd' && $^O ne 'MSWin32') {
- push @LIBS,'-lX11','-lXpm' if $XPM;
-}
-+push @LIBS,'-lX11','-lXpm' unless $^O eq 'MSWin32';
-
- my $CAPI = defined $ExtUtils::MakeMaker::CAPI_support ? 'TRUE' : 'FALSE';
+-
+-my $CAPI = defined $ExtUtils::MakeMaker::CAPI_support ? 'TRUE' : 'FALSE';
-my $DEFINES = '';
-$DEFINES .= ' -DHAVE_JPEG' if $JPEG;
--$DEFINES .= ' -DHAVE_TTF' if $TTF;
+-$DEFINES .= ' -DHAVE_FT' if $FT;
-$DEFINES .= ' -DHAVE_XPM' if $XPM;
--$DEFINES .= ' -DHAVE_GIF' if $GIF;
++
+my $DEFINES = '-DHAVE_JPEG -DHAVE_TTF';
-+$DEFINES .= ' -DHAVE_XPM' unless $^O eq 'MSWin32';
++$DEFINES .= ' -DHAVE_XPM' unless $^O eq 'MSWin32';
$DEFINES .= ' -DFCGI' if $FCGI;
WriteMakefile(
diff -ruN graphics/p5-GD.orig/pkg-descr graphics/p5-GD/pkg-descr
--- graphics/p5-GD.orig/pkg-descr Tue Jul 1 18:52:19 1997
+++ graphics/p5-GD/pkg-descr Mon Mar 31 20:57:53 2003
@@ -1,4 +1,6 @@
- GD.pm is a port of Thomas Boutell's gd graphics library
- (see below). GD allows you to create color drawings using
- a large number of graphics primitives, and emit the
- drawings as GIF files.
+GD.pm is a Perl interface to Thomas Boutell's gd graphics library
+(version 2.01 or higher). GD allows you to create color drawings using
+a large number of graphics primitives, and emit the drawings as PNG
+files.
+
+WWW: http://stein.cshl.org/WWW/software/GD/
diff -ruN graphics/p5-GD.orig/pkg-plist graphics/p5-GD/pkg-plist
--- graphics/p5-GD.orig/pkg-plist Sun Nov 12 02:37:38 2000
+++ graphics/p5-GD/pkg-plist Mon Mar 31 21:10:52 2003
@@ -1,5 +1,4 @@
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/GD.pm
-lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/patch_gd.pl
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/qd.pl
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/GD/.packlist
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/GD/GD.bs
--- p5-GD.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list