Subject: | Makefile.PL fails on FreeBSD (witch patch) |
On FreeBSD 6.1, running Makefile.PL produces the error:
Sorry, I can't find headers or libraries for a supported GUI
Two things need to be fixed:
- in header_search_path, /usr/X11R6 should be changed to /usr/X11R6/include
- INC needs to be extended by the path where Xlib.h was found. In the
attached patch I was lazy and added all paths found in
header_search_path to INC.
Regards,
Slaven
Subject: | Imager-Screenshot.patch |
#
#
# To apply this patch:
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'applypatch' program with this patch file as input.
#
# If you do not have 'applypatch', it is part of the 'makepatch' package
# that you can fetch from the Comprehensive Perl Archive Network:
# http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
# In the above URL, 'x' should be 2 or higher.
#
# To apply this patch without the use of 'applypatch':
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'patch' program with this file as input.
#
#### End of Preamble ####
#### Patch data follows ####
diff -up '../build/Imager-Screenshot-0.002-kEyJkL/Makefile.PL' 'Imager-Screenshot-0.002/Makefile.PL'
Index: ./Makefile.PL
--- ./Makefile.PL Tue Jan 2 11:32:29 2007
+++ ./Makefile.PL Sat Jan 6 13:49:33 2007
@@ -36,7 +36,7 @@ my %opts =
PREREQ_PM => {
'Imager' => 0.54,
},
- INC => Imager::ExtUtils->includes,
+ INC => Imager::ExtUtils->includes . " " . join(" ", map { "-I$_" } header_search_path()),
TYPEMAPS => [ Imager::ExtUtils->typemap ],
);
@@ -58,7 +58,7 @@ my @incs;
sub header_search_path {
@incs and return @incs;
- push @incs, '/usr/include', '/usr/X11R6'
+ push @incs, '/usr/include', '/usr/X11R6/include'
unless $^O eq 'MSWin32' && $Config{cc} =~ /\bcl\b/;
push @incs, split /\Q$Config{path_sep}/, $ENV{INCLUDE}
if $^O eq 'MSWin32' && $Config{cc} =~ /\bcl\b/ and $ENV{INCLUDE};
#### End of Patch data ####
#### ApplyPatch data follows ####
# Data version : 1.0
# Date generated : Sat Jan 6 13:51:49 2007
# Generated by : makepatch 2.03
# Recurse directories : Yes
# Excluded files : (\A|/).*\~\Z
# (\A|/).*\.a\Z
# (\A|/).*\.bak\Z
# (\A|/).*\.BAK\Z
# (\A|/).*\.elc\Z
# (\A|/).*\.exe\Z
# (\A|/).*\.gz\Z
# (\A|/).*\.ln\Z
# (\A|/).*\.o\Z
# (\A|/).*\.obj\Z
# (\A|/).*\.olb\Z
# (\A|/).*\.old\Z
# (\A|/).*\.orig\Z
# (\A|/).*\.rej\Z
# (\A|/).*\.so\Z
# (\A|/).*\.Z\Z
# (\A|/)\.del\-.*\Z
# (\A|/)\.make\.state\Z
# (\A|/)\.nse_depinfo\Z
# (\A|/)core\Z
# (\A|/)tags\Z
# (\A|/)TAGS\Z
# p 'Makefile.PL' 2861 1168087773 0100640
#### End of ApplyPatch data ####
#### End of Patch kit [created: Sat Jan 6 13:51:49 2007] ####
#### Patch checksum: 56 2090 65241 ####
#### Checksum: 74 2714 51229 ####