1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/graphics/p5-GD1/files/patch-aa

26 lines
1.0 KiB
Plaintext
Raw Normal View History

2000-02-27 07:28:56 +00:00
--- Makefile.PL.orig Tue Feb 22 03:52:27 2000
+++ Makefile.PL Sun Feb 27 15:11:28 2000
@@ -4,18 +4,13 @@
1999-12-24 19:17:37 +00:00
my $CAPI = defined $ExtUtils::MakeMaker::CAPI_support ? 'TRUE' : 'FALSE';
# CHECK AND ADJUST
-my @extrasearch = qw( -L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/lib );
2000-02-27 07:28:56 +00:00
-my @extrainc = ('-I/usr/local/include', '-I/usr/local/include/gd');
1999-12-24 19:17:37 +00:00
+my @extrasearch = qw( -L/usr/X11R6/lib -L/usr/local/lib );
2000-02-27 07:28:56 +00:00
+my @extrainc = ('-I/usr/local/include', '-I/usr/local/include/gd -I/usr/local/include/freetype -I/usr/X11R6/include -I/usr/X11R6/include/X11');
1999-12-24 19:17:37 +00:00
my @extralibs;
2000-02-27 07:28:56 +00:00
-push @extralibs, '-lgd','-lpng','-lttf','-lz';
+push @extralibs, @extrasearch, '-lgd','-lpng','-lttf','-lz';
1999-12-24 19:17:37 +00:00
push @extralibs, "-lm" unless $^O eq 'MSWin32';
2000-02-27 07:28:56 +00:00
-push @extralibs,'-lX11' unless $^O eq 'MSWin32';
1999-12-24 19:17:37 +00:00
-
-# FreeBSD 3.3 with libgd built from ports croaks if -lXpm is specified
-if ($^O ne 'freebsd') {
2000-02-27 07:28:56 +00:00
- push @extralibs,'-lXpm';
1999-12-24 19:17:37 +00:00
-}
2000-02-27 07:28:56 +00:00
+push @extralibs,'-lXpm -lX11' unless $^O eq 'MSWin32';
1999-12-24 19:17:37 +00:00
WriteMakefile(
'NAME' => 'GD',