[70991] trunk/dports/sysutils/isightcapture/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Aug 29 00:09:36 PDT 2010


Revision: 70991
          http://trac.macports.org/changeset/70991
Author:   ryandesign at macports.org
Date:     2010-08-29 00:09:33 -0700 (Sun, 29 Aug 2010)
Log Message:
-----------
isightcapture: record universal_archs correctly in the registry, and support non-universal installs

Modified Paths:
--------------
    trunk/dports/sysutils/isightcapture/Portfile

Modified: trunk/dports/sysutils/isightcapture/Portfile
===================================================================
--- trunk/dports/sysutils/isightcapture/Portfile	2010-08-29 06:55:26 UTC (rev 70990)
+++ trunk/dports/sysutils/isightcapture/Portfile	2010-08-29 07:09:33 UTC (rev 70991)
@@ -4,7 +4,7 @@
 
 name                    isightcapture
 version                 1.1
-revision                1
+revision                2
 set version2            [strsed ${version} {g/[.]/_/}]
 categories              sysutils graphics
 platforms               macosx
@@ -12,6 +12,7 @@
 maintainers             ryandesign
 license                 freeware
 supported_archs         i386 ppc
+configure.universal_archs i386 ppc
 
 homepage                http://www.intergalactic.de/pages/iSight.html
 master_sites            http://www.intergalactic.de/pages/iSight_files/
@@ -34,7 +35,11 @@
 
 use_configure           no
 
-build {}
+build {
+    if {![variant_isset universal]} {
+        system "cd ${worksrcpath} && lipo -extract ${configure.build_arch} ${name} -output ${name}"
+    }
+}
 
 destroot {
     xinstall -W ${worksrcpath} ${name} ${destroot}${prefix}/bin
@@ -42,13 +47,7 @@
     xinstall -m 644 -W ${worksrcpath} ${name}.rtf ${destroot}${prefix}/share/doc/${name}
 }
 
-default_variants +universal
 variant universal {}
-pre-fetch {
-    if {![variant_isset universal]} {
-        return -code error "${name} is only available in a universal version"
-    }
-}
 
 livecheck.type          regex
 livecheck.version       ${version2}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100829/6c719018/attachment.html>


More information about the macports-changes mailing list