[98792] trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL

jmr at macports.org jmr at macports.org
Tue Oct 16 02:58:38 PDT 2012


Revision: 98792
          http://trac.macports.org//changeset/98792
Author:   jmr at macports.org
Date:     2012-10-16 02:58:38 -0700 (Tue, 16 Oct 2012)
Log Message:
-----------
p5-locale-gettext: re-fix handling of archflags broken by r94981 (#28789, #19381)

Revision Links:
--------------
    http://trac.macports.org//changeset/94981

Modified Paths:
--------------
    trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL

Modified: trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL
===================================================================
--- trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL	2012-10-16 08:37:42 UTC (rev 98791)
+++ trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL	2012-10-16 09:58:38 UTC (rev 98792)
@@ -1,6 +1,17 @@
---- gettext-1.05/Makefile.PL.orig	2008-12-12 11:20:06.000000000 -0800
-+++ gettext-1.05/Makefile.PL	2008-12-12 11:20:25.000000000 -0800
-@@ -35,6 +35,8 @@
+--- gettext-1.05/Makefile.PL.orig	2005-01-31 10:30:22.000000000 +1100
++++ gettext-1.05/Makefile.PL	2012-10-03 15:45:12.000000000 +1000
+@@ -7,6 +7,10 @@
+ } else {
+ 	$cc = $Config{'cc'};
+ }
++my $cflags = '';
++if (defined($ENV{'CFLAGS'})) {
++	$cflags = $ENV{'CFLAGS'};
++}
+ my $libs = '';
+ 
+ unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
+@@ -35,6 +39,8 @@
      NAME => "Locale::gettext",
      LIBS => ($libs eq '') ? [] : [$libs],
      VERSION_FROM => 'gettext.pm', 
@@ -9,3 +20,12 @@
  );
  
  sub conftest {
+@@ -50,7 +56,7 @@
+ 	close TEST;
+ 	open(SAVE, ">&STDERR");
+ 	open(STDERR, ">/dev/null");
+-	system($cc . " -o conftest " . $libs . " conftest.c");
++	system($cc . " " . $cflags  . " -o conftest " . $libs . " conftest.c");
+ 	my $exitstatus = $?;
+ 	open(STDERR, ">&SAVE");
+ 	if ($exitstatus != 0) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121016/078d8455/attachment.html>


More information about the macports-changes mailing list