Changeset 133577


Ignore:
Timestamp:
Mar 5, 2015, 8:34:45 PM (5 years ago)
Author:
larryv@…
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/HandBrake/Portfile

    r132828 r133577  
    5555
    5656# TODO: Build correctly for a non-native arch.
    57 if {${os.arch} ne "i386"} {
     57if {${os.arch} ne "i386"
     58        || [catch {sysctl hw.cpu64bit_capable} isNative64Bit]} {
    5859    supported_archs i386 x86_64
    59 } elseif {[sysctl hw.cpu64bit_capable]} {
     60} elseif {$isNative64Bit} {
    6061    supported_archs x86_64
    6162} else {
Note: See TracChangeset for help on using the changeset viewer.