[28953] trunk/dports/aqua/launch/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 12 11:59:14 PDT 2007


Revision: 28953
          http://trac.macosforge.org/projects/macports/changeset/28953
Author:   nox at macports.org
Date:     2007-09-12 11:59:13 -0700 (Wed, 12 Sep 2007)

Log Message:
-----------
launch:
 * Now uses {{{xcode.destroot.path}}} instead of installing the binary manually.
 * Added universal support.
 * Removed {{{cd}}}.

Modified Paths:
--------------
    trunk/dports/aqua/launch/Portfile

Modified: trunk/dports/aqua/launch/Portfile
===================================================================
--- trunk/dports/aqua/launch/Portfile	2007-09-12 18:52:37 UTC (rev 28952)
+++ trunk/dports/aqua/launch/Portfile	2007-09-12 18:59:13 UTC (rev 28953)
@@ -28,22 +28,25 @@
         ${worksrcpath}/${name}.pbproj/project.pbxproj
 }
 
-xcode.destroot.settings-append  SKIP_INSTALL=yes
+xcode.destroot.path ${prefix}/bin
 
 post-destroot {
-    cd ${worksrcpath}
-
-    xinstall build/UninstalledProducts/${name} \
-        ${destroot}${prefix}/bin
-    xinstall -m 0444 ${name}.1 \
+    xinstall -m 0444 ${worksrcpath}/${name}.1 \
         ${destroot}${prefix}/share/man/man1
 
     set docdir ${prefix}/share/doc/${name}-${version}
     xinstall -d ${destroot}${docdir}
-    xinstall -m 0644 README ${destroot}${docdir}
+    xinstall -m 0644 ${worksrcpath}/README ${destroot}${docdir}
 }
 
-universal_variant   no
+variant universal {
+    post-patch {
+        reinplace -E "/OTHER_CFLAGS =/s|\"\"|\"${configure.universal_cflags}\"|" \
+            ${worksrcpath}/${name}.pbproj/project.pbxproj
+        reinplace -E "/OTHER_LDFLAGS =/s|\"\"|\"${configure.universal_ldflags}\"|" \
+            ${worksrcpath}/${name}.pbproj/project.pbxproj
+    }
+}
 
 livecheck.check none
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070912/eafcbc9a/attachment.html


More information about the macports-changes mailing list