Ticket #48120: patch-buildsystem.diff

File patch-buildsystem.diff, 2.9 KB (added by ahkdiep@…, 9 years ago)
  • 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
     
    113113declare M_XCODE_VERSION_REQUIRED=""
    114114
    115115# SDK 10.5
    116 readonly M_SDK_105_ARCHS="ppc ppc64 i386 x86_64"
     116readonly M_SDK_105_ARCHS="@@ARCHS@@"
    117117declare M_SDK_105=""
    118118declare M_SDK_105_XCODE=""
    119119declare M_SDK_105_COMPILER=""
    120120
    121121# SDK 10.6
    122 readonly M_SDK_106_ARCHS="i386 x86_64"
     122readonly M_SDK_106_ARCHS="@@ARCHS@@"
    123123declare M_SDK_106=""
    124124declare M_SDK_106_XCODE=""
    125125declare M_SDK_106_COMPILER=""
    126126
    127127# SDK 10.7
    128 readonly M_SDK_107_ARCHS="i386 x86_64"
     128readonly M_SDK_107_ARCHS="@@ARCHS@@"
    129129declare M_SDK_107=""
    130130declare M_SDK_107_XCODE=""
    131131declare M_SDK_107_COMPILER=""
    132132
    133133# SDK 10.8
    134 readonly M_SDK_108_ARCHS="i386 x86_64"
     134readonly M_SDK_108_ARCHS="@@ARCHS@@"
    135135declare M_SDK_108=""
    136136declare M_SDK_108_XCODE=""
    137137declare M_SDK_108_COMPILER=""
    138138
    139139# SDK 10.9
    140 readonly M_SDK_109_ARCHS="i386 x86_64"
     140readonly M_SDK_109_ARCHS="@@ARCHS@@"
    141141declare M_SDK_109=""
    142142declare M_SDK_109_XCODE=""
    143143declare M_SDK_109_COMPILER=""
    144144
    145145# SDK 10.10
    146 readonly M_SDK_1010_ARCHS="i386 x86_64"
     146readonly M_SDK_1010_ARCHS="@@ARCHS@@"
    147147declare M_SDK_1010=""
    148148declare M_SDK_1010_XCODE=""
    149149declare M_SDK_1010_COMPILER=""
    150150
     151# SDK 10.11
     152readonly M_SDK_1011_ARCHS="@@ARCHS@@"
     153declare M_SDK_1011=""
     154declare M_SDK_1011_XCODE=""
     155declare M_SDK_1011_COMPILER=""
     156
    151157readonly M_FSBUNDLE_NAME="osxfusefs.fs"
    152158readonly M_INSTALL_RESOURCES_DIR="Install_resources"
    153159readonly M_KEXT_ID="com.github.osxfuse.filesystems.osxfusefs"
     
    358364        m_compiler="$M_SDK_1010_COMPILER"
    359365        m_archs="$M_SDK_1010_ARCHS"
    360366    ;;
     367    10.11*)
     368        m_osname="El Capitan"
     369        m_xcode_dir="$M_SDK_1011_XCODE"
     370        m_usdk_dir="$M_SDK_1011"
     371        m_compiler="$M_SDK_1011_COMPILER"
     372        m_archs="$M_SDK_1011_ARCHS"
     373    ;;
    361374    *)
    362375        m_osname="Unknown"
    363376        m_xcode_dir=""
     
    20302043
    20312044    local ms_osxfuse_out="$M_CONF_TMPDIR/osxfuse-homebrew-$ms_os_version-$ms_osxfuse_version"
    20322045    local ms_osxfuse_build="$ms_osxfuse_out/build/"
    2033     local ms_osxfuse_root="$m_prefix"
     2046    local ms_osxfuse_root="@@DESTROOT@@$m_prefix"
    20342047
    20352048    if [ -e "$ms_osxfuse_out" ]
    20362049    then
     
    21342147    xcrun make -j4 >$m_stdout 2>$m_stderr
    21352148    m_exit_on_error "make failed while compiling the OSXFUSE library."
    21362149
    2137     xcrun make install >$m_stdout 2>$m_stderr
     2150    xcrun make install DESTDIR="@@DESTROOT@@" >$m_stdout 2>$m_stderr
    21382151    m_exit_on_error "cannot prepare library build for installation."
    21392152
    21402153    for f in "$ms_osxfuse_root"/lib/libosxfuse_i64*.dylib; do