Revision: 68403 http://trac.macports.org/changeset/68403 Author: ryandesign@macports.org Date: 2010-06-02 17:46:30 -0700 (Wed, 02 Jun 2010) Log Message: ----------- getopt: support changing build_arch; see #24623 Modified Paths: -------------- trunk/dports/sysutils/getopt/Portfile Modified: trunk/dports/sysutils/getopt/Portfile =================================================================== --- trunk/dports/sysutils/getopt/Portfile 2010-06-02 22:47:59 UTC (rev 68402) +++ trunk/dports/sysutils/getopt/Portfile 2010-06-03 00:46:30 UTC (rev 68403) @@ -57,6 +57,12 @@ reinplace -E "/^LDFLAGS/s|\$| ${configure.universal_ldflags}|" ${worksrcpath}/Makefile } } +if {![variant_isset universal]} { + post-patch { + reinplace -E "/^CFLAGS/s|\$| ${configure.cc_archflags}|" ${worksrcpath}/Makefile + reinplace -E "/^LDFLAGS/s|\$| ${configure.cc_archflags}|" ${worksrcpath}/Makefile + } +} livecheck.type regex livecheck.url ${homepage}download.php
participants (1)
-
ryandesign@macports.org