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

ryandesign at macports.org ryandesign at macports.org
Sun Sep 19 23:31:23 PDT 2010


Revision: 71687
          http://trac.macports.org/changeset/71687
Author:   ryandesign at macports.org
Date:     2010-09-19 23:31:21 -0700 (Sun, 19 Sep 2010)
Log Message:
-----------
p5-locale-gettext: once and for all, build correctly for universal and for single-architecture builds; see #19381

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-09-20 06:05:47 UTC (rev 71686)
+++ trunk/dports/perl/p5-locale-gettext/Portfile	2010-09-20 06:31:21 UTC (rev 71687)
@@ -2,9 +2,9 @@
 
 PortSystem      1.0
 PortGroup       perl5 1.0
-revision        2
 
 perl5.setup     Locale-gettext 1.05
+revision        3
 set my_name		gettext
 distname        ${my_name}-${version}
 
@@ -22,17 +22,15 @@
 depends_lib-append     port:gettext port:libiconv
 
 if {[variant_isset universal]} {
-    set CFLAGS "-I${prefix}/include ${configure.universal_cflags}"
+    set archflags ${configure.universal_cflags}
 } else {
-    set CFLAGS "-I${prefix}/include ${configure.cc_archflags}"
+    set archflags ${configure.cc_archflags}
 }
-set LDFLAGS    "-L${prefix}/lib"
 
 patchfiles      patch-Makefile.PL
-post-patch {
-    reinplace "s|-lintl|${CFLAGS} ${LDFLAGS} -lintl|g" ${worksrcpath}/Makefile.PL
-}
 
+configure.cc    ${configure.cc} ${configure.cflags} ${configure.ldflags} ${archflags}
+
 livecheck.type  regex
 livecheck.url   ${homepage}
 livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100919/727cf90c/attachment.html>


More information about the macports-changes mailing list