Revision: 70986 http://trac.macports.org/changeset/70986 Author: ryandesign@macports.org Date: 2010-08-28 19:06:30 -0700 (Sat, 28 Aug 2010) Log Message: ----------- pth: support build_arch Modified Paths: -------------- trunk/dports/devel/pth/Portfile Modified: trunk/dports/devel/pth/Portfile =================================================================== --- trunk/dports/devel/pth/Portfile 2010-08-29 01:56:12 UTC (rev 70985) +++ trunk/dports/devel/pth/Portfile 2010-08-29 02:06:30 UTC (rev 70986) @@ -28,21 +28,19 @@ post-configure { if {[variant_isset universal]} { - reinplace "s|CC -dynamiclib|CC -dynamiclib ${configure.universal_ldflags}|g" ${worksrcpath}/libtool + set archflags ${configure.universal_ldflags} + } else { + set archflags ${configure.ld_archflags} } + reinplace "s|CC -dynamiclib|CC -dynamiclib ${archflags}|g" ${worksrcpath}/libtool } use_parallel_build no post-destroot { - if {[variant_isset universal]} { - if {${configure.universal_cppflags} != ""} { - reinplace "s|${configure.universal_cppflags}||g" \ - ${destroot}${prefix}/bin/pth-config - } - reinplace "s|${configure.universal_ldflags}||g" \ - ${destroot}${prefix}/bin/pth-config - } + reinplace -E {s|-arch [a-z0-9_]+||g} \ + ${destroot}${prefix}/bin/pth-config + xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} ANNOUNCE AUTHORS ChangeLog COPYING \ HACKING HISTORY INSTALL NEWS PORTING README SUPPORT TESTS THANKS \
participants (1)
-
ryandesign@macports.org