From 99a390f50bab457f60aec3050c18c4b5c5fb7023 Mon Sep 17 00:00:00 2001 From: Norikatsu Shigemura Date: Fri, 11 Jul 2003 18:16:14 +0000 Subject: o Change library name from libgd to libgd1. o Do not install everything except headers and libraries (to avoid conflicting with graphics/gd2) o Fix dependency on new libgd1(for many ports). PR: ports/54100 Submitted by: Ports Fury --- graphics/p5-GD1/Makefile | 5 +++-- graphics/p5-GD1/files/patch-aa | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'graphics/p5-GD1') diff --git a/graphics/p5-GD1/Makefile b/graphics/p5-GD1/Makefile index 27a84df1227b..6f501f95d60e 100644 --- a/graphics/p5-GD1/Makefile +++ b/graphics/p5-GD1/Makefile @@ -7,6 +7,7 @@ PORTNAME= GD PORTVERSION= 1.41 +PORTREVISION= 1 CATEGORIES= graphics perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= GD @@ -15,7 +16,7 @@ PKGNAMEPREFIX= p5- MAINTAINER= ports@FreeBSD.org COMMENT= A perl5 interface to Gd Graphics Library -LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd +LIB_DEPENDS= gd1.2:${PORTSDIR}/graphics/gd PERL_CONFIGURE= yes USE_REINPLACE= yes @@ -26,7 +27,7 @@ MAN3= GD.3 post-patch: ${REINPLACE_CMD} \ -e 's,@@LOCALBASE@@,${LOCALBASE},g' \ - -e 's,@@LOCALBASE@@,${LOCALBASE},g' \ + -e 's,@@X11BASE@@,${X11BASE},g' \ ${WRKSRC}/Makefile.PL .include diff --git a/graphics/p5-GD1/files/patch-aa b/graphics/p5-GD1/files/patch-aa index 927c439e4f5e..b0d25fd004db 100644 --- a/graphics/p5-GD1/files/patch-aa +++ b/graphics/p5-GD1/files/patch-aa @@ -15,9 +15,9 @@ -my $TTF = 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@@LOCALBASE@@/include -I@@LOCALBASE@@/include/gd -I@@LOCALBASE@@/include/freetype -I@@X11BASE@@/include -I@@X11BASE@@/include/X11); ++my @INC = qw(-I@@LOCALBASE@@/include/gd -I@@LOCALBASE@@/include/freetype -I@@LOCALBASE@@/include -I@@X11BASE@@/include/X11 -I@@X11BASE@@/include); +my @LIBPATH = qw(-L@@LOCALBASE@@/lib -L@@X11BASE@@/lib); -+my @LIBS = qw(-lfreetype -ljpeg -lgd -lpng -lz); ++my @LIBS = qw(-lfreetype -ljpeg -lgd1 -lpng -lz); my $FCGI = 0; # set to 1 to build compatability with fastCGI -- cgit v1.2.3