aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-05-19 12:35:17 +0800
committeredwin <edwin@FreeBSD.org>2003-05-19 12:35:17 +0800
commitc22687ac227f4b450ce4cf3dc8dc2d55bd6cc4da (patch)
tree548a4549ede66a72ec4bc8fc2568f8010412585b
parentf6303f0bcf98c46677a7dbe871e71a6a8c7cd7d4 (diff)
downloadfreebsd-ports-gnome-c22687ac227f4b450ce4cf3dc8dc2d55bd6cc4da.tar.gz
freebsd-ports-gnome-c22687ac227f4b450ce4cf3dc8dc2d55bd6cc4da.tar.zst
freebsd-ports-gnome-c22687ac227f4b450ce4cf3dc8dc2d55bd6cc4da.zip
Make LOCALBASE/X11BASE clean
-rw-r--r--graphics/p5-GD/Makefile7
-rw-r--r--graphics/p5-GD/files/patch-aa4
-rw-r--r--graphics/p5-GD1/Makefile7
-rw-r--r--graphics/p5-GD1/files/patch-aa4
4 files changed, 18 insertions, 4 deletions
diff --git a/graphics/p5-GD/Makefile b/graphics/p5-GD/Makefile
index 248621afd431..27a84df1227b 100644
--- a/graphics/p5-GD/Makefile
+++ b/graphics/p5-GD/Makefile
@@ -18,8 +18,15 @@ COMMENT= A perl5 interface to Gd Graphics Library
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
PERL_CONFIGURE= yes
+USE_REINPLACE= yes
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= GD.3
+post-patch:
+ ${REINPLACE_CMD} \
+ -e 's,@@LOCALBASE@@,${LOCALBASE},g' \
+ -e 's,@@LOCALBASE@@,${LOCALBASE},g' \
+ ${WRKSRC}/Makefile.PL
+
.include <bsd.port.mk>
diff --git a/graphics/p5-GD/files/patch-aa b/graphics/p5-GD/files/patch-aa
index 4f58f84665b0..927c439e4f5e 100644
--- a/graphics/p5-GD/files/patch-aa
+++ b/graphics/p5-GD/files/patch-aa
@@ -15,8 +15,8 @@
-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/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 @INC = qw(-I@@LOCALBASE@@/include -I@@LOCALBASE@@/include/gd -I@@LOCALBASE@@/include/freetype -I@@X11BASE@@/include -I@@X11BASE@@/include/X11);
++my @LIBPATH = qw(-L@@LOCALBASE@@/lib -L@@X11BASE@@/lib);
+my @LIBS = qw(-lfreetype -ljpeg -lgd -lpng -lz);
my $FCGI = 0; # set to 1 to build compatability with fastCGI
diff --git a/graphics/p5-GD1/Makefile b/graphics/p5-GD1/Makefile
index 248621afd431..27a84df1227b 100644
--- a/graphics/p5-GD1/Makefile
+++ b/graphics/p5-GD1/Makefile
@@ -18,8 +18,15 @@ COMMENT= A perl5 interface to Gd Graphics Library
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
PERL_CONFIGURE= yes
+USE_REINPLACE= yes
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= GD.3
+post-patch:
+ ${REINPLACE_CMD} \
+ -e 's,@@LOCALBASE@@,${LOCALBASE},g' \
+ -e 's,@@LOCALBASE@@,${LOCALBASE},g' \
+ ${WRKSRC}/Makefile.PL
+
.include <bsd.port.mk>
diff --git a/graphics/p5-GD1/files/patch-aa b/graphics/p5-GD1/files/patch-aa
index 4f58f84665b0..927c439e4f5e 100644
--- a/graphics/p5-GD1/files/patch-aa
+++ b/graphics/p5-GD1/files/patch-aa
@@ -15,8 +15,8 @@
-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/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 @INC = qw(-I@@LOCALBASE@@/include -I@@LOCALBASE@@/include/gd -I@@LOCALBASE@@/include/freetype -I@@X11BASE@@/include -I@@X11BASE@@/include/X11);
++my @LIBPATH = qw(-L@@LOCALBASE@@/lib -L@@X11BASE@@/lib);
+my @LIBS = qw(-lfreetype -ljpeg -lgd -lpng -lz);
my $FCGI = 0; # set to 1 to build compatability with fastCGI