[62646] trunk/dports/perl/p5-locale-gettext/Portfile

sharky at macports.org sharky at macports.org
Wed Jan 13 05:14:18 PST 2010


Revision: 62646
          http://trac.macports.org/changeset/62646
Author:   sharky at macports.org
Date:     2010-01-13 05:14:16 -0800 (Wed, 13 Jan 2010)
Log Message:
-----------
p5-locale-gettext: fix build errors when using arch flags

Modified Paths:
--------------
    trunk/dports/perl/p5-locale-gettext/Portfile

Modified: trunk/dports/perl/p5-locale-gettext/Portfile
===================================================================
--- trunk/dports/perl/p5-locale-gettext/Portfile	2010-01-13 13:10:57 UTC (rev 62645)
+++ trunk/dports/perl/p5-locale-gettext/Portfile	2010-01-13 13:14:16 UTC (rev 62646)
@@ -2,6 +2,7 @@
 
 PortSystem      1.0
 PortGroup       perl5 1.0
+revision        1
 
 perl5.setup     Locale-gettext 1.05
 set my_name		gettext
@@ -20,9 +21,12 @@
 
 depends_lib-append     port:gettext port:libiconv
 
+set CFLAGS     "-I${prefix}/include ${configure.cc_archflags}"
+set LDFLAGS    "-L${prefix}/lib ${configure.ld_archflags}"
+
 patchfiles      patch-Makefile.PL
 post-patch {
-    reinplace s|-lintl|-I${prefix}/include\ -L${prefix}/lib\ -lintl|g ${worksrcpath}/Makefile.PL
+    reinplace "s|-lintl|${CFLAGS} ${LDFLAGS} -lintl|g" ${worksrcpath}/Makefile.PL
 }
 
 livecheck.type  regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100113/b61c91ea/attachment.html>


More information about the macports-changes mailing list