Revision
133577
Author
larryv@macports.org
Date
2015-03-05 12:34:45 -0800 (Thu, 05 Mar 2015)

Log Message

HandBrake: Fix parsing when `sysctl` is unavailable

This should restore `HandBrake` and `HandBrakeCLI` to the pre-generated
port indices. Thanks to ionic for pointing this out.

Modified Paths

Diff

Modified: trunk/dports/multimedia/HandBrake/Portfile (133576 => 133577)


--- trunk/dports/multimedia/HandBrake/Portfile	2015-03-05 20:30:46 UTC (rev 133576)
+++ trunk/dports/multimedia/HandBrake/Portfile	2015-03-05 20:34:45 UTC (rev 133577)
@@ -54,9 +54,10 @@
 
 
 # TODO: Build correctly for a non-native arch.
-if {${os.arch} ne "i386"} {
+if {${os.arch} ne "i386"
+        || [catch {sysctl hw.cpu64bit_capable} isNative64Bit]} {
     supported_archs i386 x86_64
-} elseif {[sysctl hw.cpu64bit_capable]} {
+} elseif {$isNative64Bit} {
     supported_archs x86_64
 } else {
     supported_archs i386