openbsd-ports/x11/p5-Tk/patches/patch-JPEG_Makefile_PL
sthen 9a2838466f Update to p5-Tk 804.033, fixing segfaults with the majority of programs using
it (broken since the perl update). All dependent ports build OK, and fixes
crashes in the sample of dep ports that I tested at runtime.

Explicitly list -L${LOCALBASE}/lib so it can find libjpeg, presumably fallout
from the change to avoid /usr/local during perl builds (2014/12/24).

ok afresh1@, naddy@
2015-02-22 15:27:43 +00:00

13 lines
499 B
Plaintext

$OpenBSD: patch-JPEG_Makefile_PL,v 1.1 2015/02/22 15:27:44 sthen Exp $
--- JPEG/Makefile.PL.orig Sat Feb 21 22:18:15 2015
+++ JPEG/Makefile.PL Sat Feb 21 22:18:16 2015
@@ -8,7 +8,7 @@ use Tk::MMtry;
if ($Tk::MMtry::VERSION ge '4.007' && try_run("config/has_jpeg.c",['-I/usr/local/include'],['-ljpeg']))
{
- push(@args, LIBS => ['-ljpeg'],
+ push(@args, LIBS => ['-L/usr/local/lib -ljpeg'],
INC => '-I/usr/local/include',
DEFINE => '-DHAVE_JPEGLIB_H',
);