summaryrefslogtreecommitdiff
path: root/graphics/p5-GD1/files/patch-aa
blob: 4f58f84665b0bd7aeaff68ea462dc00f12677973 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- 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";
 
 # =====> 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 @LIBS    = qw(-lgd -lpng -lz);
-
-# 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 $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;
-push @LIBS,'-ljpeg' if $JPEG;
-push @LIBS, '-lm' unless $^O eq 'MSWin32';
-
-# 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 $DEFINES = '';
-$DEFINES    .= ' -DHAVE_JPEG' if $JPEG;
-$DEFINES    .= ' -DHAVE_TTF'  if $TTF;
-$DEFINES    .= ' -DHAVE_XPM'  if $XPM;
-$DEFINES    .= ' -DHAVE_GIF'  if $GIF;
+my $DEFINES = '-DHAVE_JPEG -DHAVE_TTF';
+$DEFINES    .= ' -DHAVE_XPM' unless $^O eq 'MSWin32';
 $DEFINES    .= ' -DFCGI'      if $FCGI;
 
 WriteMakefile(