openbsd-ports/x11/p5-Tk/patches/patch-PNG_Makefile_PL
sthen fc9b92255c fix with new xproto, from http://bugs.gentoo.org/show_bug.cgi?id=225999
via Giovanni Bechis. regen patches and make use of SUBST_CMD while there.
bump package.
2008-11-04 10:08:03 +00:00

24 lines
972 B
Plaintext

$OpenBSD: patch-PNG_Makefile_PL,v 1.3 2008/11/04 10:08:03 sthen 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