|
Removed
Link Here
|
| 1 |
--- Makefile.PL.orig Wed Nov 27 16:29:57 2002 |
| 2 |
+++ Makefile.PL Sun Apr 13 02:25:57 2003 |
| 3 |
@@ -6,46 +6,23 @@ |
| 4 |
|
| 5 |
|
| 6 |
# =====> PATHS: CHECK AND ADJUST <===== |
| 7 |
-my @INC = qw(-I/usr/local/include -I/usr/local/include/gd); |
| 8 |
-my @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/lib); |
| 9 |
-my @LIBS = qw(-lgd -lpng -lz); |
| 10 |
- |
| 11 |
-if ($^O eq 'VMS'){ |
| 12 |
- warn "This is a build on OpenVMS. In case of problems with the build\n"; |
| 13 |
- warn "do not bother Lincoln Stein but get in touch with\n"; |
| 14 |
- warn "Martin P.J. Zinser (zinser\@decus.de)\n\n"; |
| 15 |
- |
| 16 |
- if ($ENV{"LIB_ROOT"} eq "") { |
| 17 |
- warn "Define lib_root as a concealed logical pointing to the\n"; |
| 18 |
- warn "Top directory where you have your libraries installed\n"; |
| 19 |
- warn "E.g. define/job/trans=conc lib_root public$device:[public.util.libs.]\n"; |
| 20 |
- warn "Also define the logical pubbin to point to the location\n"; |
| 21 |
- warn "of the object libraries\n"; |
| 22 |
- warn "Then re-invoke Makefile.PL\n"; |
| 23 |
- warn "Exiting now...\n"; |
| 24 |
- exit; |
| 25 |
- } |
| 26 |
- |
| 27 |
- @INC = qw(-I/lib_root/gd -I/lib_root/libpng -I/lib_root/zlib); |
| 28 |
- @LIBPATH = qw(-Lpubbin); |
| 29 |
- @LIBS = qw(-llibgd.olb -llibpng.olb -llibz.olb); |
| 30 |
-} |
| 31 |
+my @INC = qw(-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 -I${X11BASE}/include -I${X11BASE}/include/X11); |
| 32 |
+my @LIBPATH = qw(-L${LOCALBASE}/lib -L${X11BASE}/lib); |
| 33 |
+my @LIBS = qw(-lfreetype -ljpeg -lgd -lpng -lz); |
| 34 |
|
| 35 |
# path to libgd |
| 36 |
warn "\n"; |
| 37 |
-my $PREFIX = lc prompt('Where is libgd installed?','/usr/lib'); |
| 38 |
+my $PREFIX = "$ENV{LOCALBASE}/lib"; |
| 39 |
+ |
| 40 |
unless ($PREFIX eq '/usr/lib') { |
| 41 |
$PREFIX =~ s!/lib$!!; |
| 42 |
unshift @INC,"-I$PREFIX/include"; |
| 43 |
unshift @LIBPATH,"-L$PREFIX/lib"; |
| 44 |
} |
| 45 |
|
| 46 |
-# FEATURE FLAGS |
| 47 |
-warn "\nPlease choose the features that match how libgd was built:\n"; |
| 48 |
- |
| 49 |
-my $JPEG = lc prompt('Build JPEG support?','y') eq 'y'; |
| 50 |
-my $FT = lc prompt('Build FreeType support?','y') eq 'y'; |
| 51 |
-my $XPM = $^O !~ /^freebsd|MSWin32$/ && lc prompt('Build XPM support?','y') eq 'y'; |
| 52 |
+$JPEG=1; |
| 53 |
+$FT=1; |
| 54 |
+$XPM=1; |
| 55 |
|
| 56 |
my $FCGI = 0; # set to 1 to build compatability with fastCGI |
| 57 |
|
| 58 |
@@ -61,16 +38,14 @@ |
| 59 |
push @INC, '-I/lib_root/ft2/include/freetype' if ($FT && $^O eq 'VMS'); |
| 60 |
push @INC, '-I/X11' if ($XPM && $^O eq 'VMS'); |
| 61 |
|
| 62 |
-# FreeBSD 3.3 with libgd built from ports croaks if -lXpm is specified |
| 63 |
-if ($^O ne 'freebsd' && $^O ne 'MSWin32') { |
| 64 |
+if ($^O ne 'MSWin32') { |
| 65 |
push @LIBS,'-lX11','-lXpm' if $XPM; |
| 66 |
} |
| 67 |
|
| 68 |
my $CAPI = defined $ExtUtils::MakeMaker::CAPI_support ? 'TRUE' : 'FALSE'; |
| 69 |
-my $DEFINES = ''; |
| 70 |
-$DEFINES .= ' -DHAVE_JPEG' if $JPEG; |
| 71 |
-$DEFINES .= ' -DHAVE_FT' if $FT; |
| 72 |
-$DEFINES .= ' -DHAVE_XPM' if $XPM; |
| 73 |
+my $DEFINES = '-DHAVE_JPEG -DHAVE_TTF'; |
| 74 |
+$DEFINES .= ' -DHAVE_FT' if $FT; |
| 75 |
+$DEFINES .= ' -DHAVE_XPM' unless $^O eq 'MSWin32'; |
| 76 |
$DEFINES .= ' -DFCGI' if $FCGI; |
| 77 |
|
| 78 |
WriteMakefile( |