Ticket #43415: osxfuse-ryandesign.diff
File osxfuse-ryandesign.diff, 2.3 KB (added by ryandesign (Ryan Carsten Schmidt), 10 years ago) |
---|
-
Portfile
5 5 6 6 name osxfuse 7 7 version 2.6.4 8 revision 1 8 9 categories fuse devel 9 10 platforms macosx 10 11 license BSD APSL … … 21 22 22 23 homepage http://osxfuse.github.io/ 23 24 24 # We want to match the supported arch 25 # We will build user-space components for the specified arch, and 26 # kernel modules for the kernel arch. 25 27 set kernel_arch [exec uname -m] 26 switch ${kernel_arch} { 27 i386 - 28 x86_64 { 29 supported_archs ${kernel_arch} 30 } 31 default { 32 supported_archs i386 x86_64 33 } 28 # If building for different kernel arch than our buildslaves use, force a build 29 # from source. The binary package IDs don't encode the kernel arch. 30 if {${kernel_arch} ne "x86_64"} { 31 archive_sites 34 32 } 35 33 36 34 distfiles … … 81 79 82 80 # Only build the archs we want, not the hardcoded universal archs 83 81 reinplace -E "s,@@ARCHS@@,[get_canonical_archs],g" ${worksrcpath}/build.sh 82 reinplace -E "s,@@KERNELARCHS@@,${kernel_arch},g" ${worksrcpath}/build.sh 84 83 85 84 # Inject the destroot path as the buildsystem tries to write to the prefix directly 86 85 reinplace -E "s,@@DESTROOT@@,${destroot},g" ${worksrcpath}/build.sh -
files/patch-buildsystem.diff
55 55 56 56 if [ -e "$ms_osxfuse_out" ] 57 57 then 58 @@ -1870,7 +1870,7 @@ 59 60 m_log "building OSXFUSE kernel extension and tools" 61 62 - 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 63 + 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 64 65 m_exit_on_error "xcodebuild cannot build configuration $m_configuration." 66 58 67 @@ -1945,7 +1945,7 @@ 59 68 xcrun make -j4 >$m_stdout 2>$m_stderr 60 69 m_exit_on_error "make failed while compiling the OSXFUSE library."