source: trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff @ 123208

Last change on this file since 123208 was 123208, checked in by dports@…, 5 years ago

osxfuse: build for active kernel architecture even if it's different
from build_arch (#43415)

File size: 2.9 KB
  • build.sh

    old new  
    1212# Beware: GNU libtool cannot handle directory names containing whitespace.
    1313#         Therefore, do not set M_CONF_TMPDIR to such a directory.
    1414#
    15 readonly M_CONF_TMPDIR=/tmp
     15readonly M_CONF_TMPDIR=@@TMP@@
    1616readonly M_PLISTSIGNER_TEST_KEY="`dirname $0`/prefpane/autoinstaller/TestKeys/private_key.der"
    1717
    1818# Other constants
     
    9898declare M_XCODE_VERSION_REQUIRED=""
    9999
    100100# SDK 10.5
    101 readonly M_SDK_105_ARCHS="ppc ppc64 i386 x86_64"
     101readonly M_SDK_105_ARCHS="@@ARCHS@@"
    102102declare M_SDK_105=""
    103103declare M_SDK_105_XCODE=""
    104104declare M_SDK_105_COMPILER=""
    105105
    106106# SDK 10.6
    107 readonly M_SDK_106_ARCHS="i386 x86_64"
     107readonly M_SDK_106_ARCHS="@@ARCHS@@"
    108108declare M_SDK_106=""
    109109declare M_SDK_106_XCODE=""
    110110declare M_SDK_106_COMPILER=""
    111111
    112112# SDK 10.7
    113 readonly M_SDK_107_ARCHS="i386 x86_64"
     113readonly M_SDK_107_ARCHS="@@ARCHS@@"
    114114declare M_SDK_107=""
    115115declare M_SDK_107_XCODE=""
    116116declare M_SDK_107_COMPILER=""
    117117
    118118# SDK 10.8
    119 readonly M_SDK_108_ARCHS="i386 x86_64"
     119readonly M_SDK_108_ARCHS="@@ARCHS@@"
    120120declare M_SDK_108=""
    121121declare M_SDK_108_XCODE=""
    122122declare M_SDK_108_COMPILER=""
    123123
    124124# SDK 10.9
    125 readonly M_SDK_109_ARCHS="i386 x86_64"
     125readonly M_SDK_109_ARCHS="@@ARCHS@@"
    126126declare M_SDK_109=""
    127127declare M_SDK_109_XCODE=""
    128128declare M_SDK_109_COMPILER=""
     
    18411841
    18421842    local ms_osxfuse_out="$M_CONF_TMPDIR/osxfuse-homebrew-$ms_os_version-$ms_osxfuse_version"
    18431843    local ms_osxfuse_build="$ms_osxfuse_out/build/"
    1844     local ms_osxfuse_root="$m_prefix"
     1844    local ms_osxfuse_root="@@DESTROOT@@$m_prefix"
    18451845
    18461846    if [ -e "$ms_osxfuse_out" ]
    18471847    then
     
    18701870
    18711871    m_log "building OSXFUSE kernel extension and tools"
    18721872
    1873     xcodebuild -configuration "$m_configuration" -target All GCC_VERSION="$m_compiler" ARCHS="$m_archs" SDKROOT="$m_usdk_dir" MACOSX_DEPLOYMENT_TARGET="$m_platform" >$m_stdout 2>$m_stderr
     1873    xcodebuild -configuration "$m_configuration" -target All GCC_VERSION="$m_compiler" ARCHS="@@KERNELARCHS@@" SDKROOT="$m_usdk_dir" MACOSX_DEPLOYMENT_TARGET="$m_platform" >$m_stdout 2>$m_stderr
    18741874
    18751875    m_exit_on_error "xcodebuild cannot build configuration $m_configuration."
    18761876
     
    19451945    xcrun make -j4 >$m_stdout 2>$m_stderr
    19461946    m_exit_on_error "make failed while compiling the OSXFUSE library."
    19471947
    1948     xcrun make install >$m_stdout 2>$m_stderr
     1948    xcrun make install DESTDIR="@@DESTROOT@@" >$m_stdout 2>$m_stderr
    19491949    m_exit_on_error "cannot prepare library build for installation."
    19501950
    19511951    for f in "$ms_osxfuse_root"/lib/libosxfuse_i64*.dylib; do
    function m_handler() 
    23432343                    M_XCODE50_VERSION=$m_xcode_version
    23442344                fi
    23452345                ;;
    2346             5.1*)
     2346            5.1*|[6789]*)
    23472347                m_version_compare $M_XCODE51_VERSION $m_xcode_version
    23482348                if [[ $? != 2 ]]
    23492349                then
Note: See TracBrowser for help on using the repository browser.