pkgsrc/x11/p5-Tk/patches/patch-ac
markd b0a9a349c0 Update to 804.028
Various bugfixes including fix building with perl 5.10.
2008-10-22 10:35:30 +00:00

34 lines
923 B
Text

$NetBSD: patch-ac,v 1.2 2008/10/22 10:35:30 markd Exp $
--- JPEG/Makefile.PL.orig 2007-05-06 06:38:15.000000000 +1200
+++ JPEG/Makefile.PL
@@ -5,29 +5,11 @@ my $l = $Config::Config{'lib_ext'};
# use ExtUtils::MakeMaker '6.05';
-my @local_jpeg = (
- 'INC' => '-Ijpeg',
- 'MYEXTLIB' => "jpeg/libjpeg$l",
-);
-
-use Tk::MMtry;
-
-if ($Tk::MMtry::VERSION ge '4.007' && try_run("jpeg/has_jpeg.c",['-I/usr/local/include'],['-ljpeg']))
- {
push(@args, LIBS => ['-ljpeg'],
- INC => '-I/usr/local/include',
DEFINE => '-DHAVE_JPEGLIB_H',
);
warn "Using system's -ljpeg\n";
unlink("jpeg/Makefile.PL");
- }
-else
- {
- push(@args, MYEXTLIB => "jpeg/libjpeg$l",
- 'INC' => '-Ijpeg');
- copy("Makefile.jpeg.maybe","jpeg/Makefile.PL");
- warn "Building jpeg/libjpeg$l\n";
- }
Tk::MMutil::TkExtMakefile(@args,
'NAME' => 'Tk::JPEG',