openbsd-ports/x11/p5-Tk/patches/patch-PNG_Makefile_PL
ajacoutot cccc0d2ce6 - make rgb.txt reachable by ColorEditor.pm
from Giovanni Bechis
- update patches while here
2007-06-02 14:54:53 +00:00

24 lines
980 B
Plaintext

$OpenBSD: patch-PNG_Makefile_PL,v 1.2 2007/06/02 14:54:53 ajacoutot Exp $
--- PNG/Makefile.PL.orig Tue Dec 30 11:45:03 2003
+++ PNG/Makefile.PL Sat Jun 2 16:10:46 2007
@@ -15,7 +15,7 @@ foreach my $file (qw(zlib/Makefile.PL libpng/Makefile.
}
if ($Tk::MMtry::VERSION ge '4.007' &&
- try_run("config/has_png.c",['-I/usr/local/include'],['-lpng -lz -lm']))
+ try_run("config/has_png.c",['-I%%LOCALBASE%%/include/libpng'],['-L%%LOCALBASE%%/lib -lpng -lz -lm']))
{
Tk::MMutil::TkExtMakefile(
NAME => 'Tk::PNG',
@@ -23,8 +23,8 @@ if ($Tk::MMtry::VERSION ge '4.007' &&
XS_VERSION => $Tk::Config::VERSION,
dist => { COMPRESS => 'gzip -f9', SUFFIX => '.gz' },
OBJECT => '$(O_FILES)',
- INC => '-I/usr/local/include',
- LIBS => ['-lpng -lz -lm'],
+ INC => '-I%%LOCALBASE%%/include/libpng',
+ LIBS => ['-L%%LOCALBASE%%/lib -lpng -lz -lm'],
);
}
else