[57319] trunk/dports/devel/GitX/Portfile
mnick at macports.org
mnick at macports.org
Wed Sep 9 08:04:32 PDT 2009
Revision: 57319
http://trac.macports.org/changeset/57319
Author: mnick at macports.org
Date: 2009-09-09 08:04:29 -0700 (Wed, 09 Sep 2009)
Log Message:
-----------
correctly set universal_archs or build_arch
Modified Paths:
--------------
trunk/dports/devel/GitX/Portfile
Modified: trunk/dports/devel/GitX/Portfile
===================================================================
--- trunk/dports/devel/GitX/Portfile 2009-09-09 14:28:08 UTC (rev 57318)
+++ trunk/dports/devel/GitX/Portfile 2009-09-09 15:04:29 UTC (rev 57319)
@@ -26,6 +26,7 @@
depends_lib-append port:git-core
xcode.target GitX
+xcode.configuration Release
pre-fetch {
if {${os.major} < 9} {
@@ -33,6 +34,20 @@
}
}
+configure {
+ set arch_flags {}
+ if {[variant_isset universal]} {
+ foreach arch ${universal_archs} {
+ lappend arch_flags -arch ${arch}
+ }
+ } else {
+ lappend arch_flags -arch ${build_arch}
+ }
+
+ reinplace "s|make CFLAGS=\\\\\"-arch .*\\\\\"|make CFLAGS=\\\\\"${arch_flags}\\\\\"|g" \
+ ${worksrcpath}/GitX.xcodeproj/project.pbxproj
+}
+
post-destroot {
file mkdir ${destroot}/${prefix}/bin
file rename ${destroot}/${applications_dir}/gitx ${destroot}/${prefix}/bin/gitx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090909/f735dd43/attachment.html>
More information about the macports-changes
mailing list