openbsd-ports/devel/p5-Locale-gettext/patches/patch-Makefile_PL
ajacoutot 25be132fdc - update to 1.05 (adds several functions provided by the GNU gettext
library ; some bug fixes)
- enable regression tests
- take over maintainership

ok jasper@
2006-11-29 09:40:56 +00:00

22 lines
732 B
Plaintext

$OpenBSD: patch-Makefile_PL,v 1.2 2006/11/29 09:40:56 ajacoutot Exp $
--- Makefile.PL.orig Mon Jan 31 00:30:22 2005
+++ Makefile.PL Tue Nov 28 16:41:24 2006
@@ -11,7 +11,7 @@ my $libs = '';
unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
# try with -lintl
- $libs = "-lintl";
+ $libs = "-L%%LOCALBASE%%/lib -lintl -liconv -I%%LOCALBASE%%/include";
unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
unlink("conftest.c");
unlink("conftest");
@@ -33,7 +33,7 @@ unlink("conftest");
WriteMakefile(
NAME => "Locale::gettext",
- LIBS => ($libs eq '') ? [] : [$libs],
+ LIBS => ($libs eq '') ? [] : ["-L%%LOCALBASE%%/lib -lintl -liconv"],
VERSION_FROM => 'gettext.pm',
);