Ticket #47438: patch-buildsystem.diff
File patch-buildsystem.diff, 3.7 KB (added by gallafent, 10 years ago) |
---|
-
build.sh
old new 12 12 # Beware: GNU libtool cannot handle directory names containing whitespace. 13 13 # Therefore, do not set M_CONF_TMPDIR to such a directory. 14 14 # 15 readonly M_CONF_TMPDIR= /tmp15 readonly M_CONF_TMPDIR=@@TMP@@ 16 16 readonly M_PLISTSIGNER_TEST_KEY="`dirname $0`/prefpane/autoinstaller/TestKeys/private_key.der" 17 17 18 18 # Other constants … … 105 105 declare M_XCODE62="" 106 106 declare M_XCODE62_VERSION=6.2 107 107 readonly M_XCODE62_COMPILER="com.apple.compilers.llvm.clang.1_0" 108 declare M_XCODE63="" 109 declare M_XCODE63_VERSION=6.3 110 readonly M_XCODE63_COMPILER="com.apple.compilers.llvm.clang.1_0" 108 111 109 112 declare M_ACTUAL_PLATFORM="" 110 113 declare M_PLATFORMS="" … … 104 104 declare M_XCODE_VERSION_REQUIRED="" 105 105 106 106 # SDK 10.5 107 readonly M_SDK_105_ARCHS=" ppc ppc64 i386 x86_64"107 readonly M_SDK_105_ARCHS="@@ARCHS@@" 108 108 declare M_SDK_105="" 109 109 declare M_SDK_105_XCODE="" 110 110 declare M_SDK_105_COMPILER="" 111 111 112 112 # SDK 10.6 113 readonly M_SDK_106_ARCHS=" i386 x86_64"113 readonly M_SDK_106_ARCHS="@@ARCHS@@" 114 114 declare M_SDK_106="" 115 115 declare M_SDK_106_XCODE="" 116 116 declare M_SDK_106_COMPILER="" 117 117 118 118 # SDK 10.7 119 readonly M_SDK_107_ARCHS=" i386 x86_64"119 readonly M_SDK_107_ARCHS="@@ARCHS@@" 120 120 declare M_SDK_107="" 121 121 declare M_SDK_107_XCODE="" 122 122 declare M_SDK_107_COMPILER="" 123 123 124 124 # SDK 10.8 125 readonly M_SDK_108_ARCHS=" i386 x86_64"125 readonly M_SDK_108_ARCHS="@@ARCHS@@" 126 126 declare M_SDK_108="" 127 127 declare M_SDK_108_XCODE="" 128 128 declare M_SDK_108_COMPILER="" 129 129 130 130 # SDK 10.9 131 readonly M_SDK_109_ARCHS=" i386 x86_64"131 readonly M_SDK_109_ARCHS="@@ARCHS@@" 132 132 declare M_SDK_109="" 133 133 declare M_SDK_109_XCODE="" 134 134 declare M_SDK_109_COMPILER="" 135 135 136 136 # SDK 10.10 137 readonly M_SDK_1010_ARCHS=" i386 x86_64"137 readonly M_SDK_1010_ARCHS="@@ARCHS@@" 138 138 declare M_SDK_1010="" 139 139 declare M_SDK_1010_XCODE="" 140 140 declare M_SDK_1010_COMPILER="" … … 1880 1880 1881 1881 local ms_osxfuse_out="$M_CONF_TMPDIR/osxfuse-homebrew-$ms_os_version-$ms_osxfuse_version" 1882 1882 local ms_osxfuse_build="$ms_osxfuse_out/build/" 1883 local ms_osxfuse_root=" $m_prefix"1883 local ms_osxfuse_root="@@DESTROOT@@$m_prefix" 1884 1884 1885 1885 if [ -e "$ms_osxfuse_out" ] 1886 1886 then … … 1984 1984 xcrun make -j4 >$m_stdout 2>$m_stderr 1985 1985 m_exit_on_error "make failed while compiling the OSXFUSE library." 1986 1986 1987 xcrun make install >$m_stdout 2>$m_stderr1987 xcrun make install DESTDIR="@@DESTROOT@@" >$m_stdout 2>$m_stderr 1988 1988 m_exit_on_error "cannot prepare library build for installation." 1989 1989 1990 1990 for f in "$ms_osxfuse_root"/lib/libosxfuse_i64*.dylib; do … … 2569 2572 M_XCODE62_VERSION=$m_xcode_version 2570 2573 fi 2571 2574 ;; 2575 6.3*) 2576 m_version_compare $M_XCODE63_VERSION $m_xcode_version 2577 if [[ $? != 2 ]] 2578 then 2579 M_XCODE63="$m_xcode_root" 2580 M_XCODE63_VERSION=$m_xcode_version 2581 fi 2582 ;; 2572 2583 *) 2573 2584 m_log "skip unsupported Xcode version in '$m_xcode_root'." 2574 2585 ;; … … 2786 2797 M_SDK_1010_COMPILER="$M_XCODE62_COMPILER" 2787 2798 m_platform_realistic_add "10.10" 2788 2799 fi 2800 if [[ -n "$M_XCODE63" ]] 2801 then 2802 m_xcode_latest="$M_XCODE63" 2803 2804 M_SDK_109="$M_XCODE63/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk" 2805 M_SDK_109_XCODE="$M_XCODE63" 2806 M_SDK_109_COMPILER="$M_XCODE63_COMPILER" 2807 m_platform_realistic_add "10.9" 2808 m_platform_add "10.10" 2809 2810 M_SDK_1010="$M_XCODE63/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk" 2811 M_SDK_1010_XCODE="$M_XCODE63" 2812 M_SDK_1010_COMPILER="$M_XCODE63_COMPILER" 2813 m_platform_realistic_add "10.10" 2814 fi 2789 2815 2790 2816 m_read_input "$@" 2791 2817