e838acb0b5
clusterssh after updating his snapshot. Thanks Daniel for testing.
24 lines
972 B
Plaintext
24 lines
972 B
Plaintext
$OpenBSD: patch-PNG_Makefile_PL,v 1.4 2010/09/02 11:53:32 sthen Exp $
|
|
--- PNG/Makefile.PL.orig Sun Nov 23 08:57:09 2008
|
|
+++ PNG/Makefile.PL Thu Sep 2 12:10:16 2010
|
|
@@ -16,7 +16,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',
|
|
@@ -24,8 +24,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
|