Ticket #39635: botan-python-universal.patch
File botan-python-universal.patch, 2.8 KB (added by macports@…, 11 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 114473 2013-12-09 14:06:05Z mww@macports.org $ 2 2 3 3 PortSystem 1.0 4 PortGroup muniversal 1.0 4 5 5 6 name botan 6 7 version 1.10.6 8 revision 1 7 9 categories security devel 8 10 platforms darwin 9 11 maintainers mww … … 22 24 sha256 72a9be97350523ee1b06c8722032faa566fcb98456b0b7ac06b45a1dc4446fa7 23 25 use_bzip2 yes 24 26 27 depends_build port:python27 25 28 depends_lib port:openssl port:zlib port:bzip2 26 29 27 30 worksrcdir Botan-${version} 28 31 29 configure.cmd ./configure.py32 configure.cmd ${prefix}/bin/python2.7 ./configure.py 30 33 configure.args --docdir=share/doc --cc=${configure.compiler} --with-openssl --with-zlib --with-bzip2 31 34 32 35 destroot.destdir DESTDIR=${destroot}${prefix} 33 36 34 37 platform darwin { configure.args-append --os=darwin } 35 38 36 if {[info exists build_arch] && ${os.platform} eq "darwin"} { 37 if {(${build_arch} eq "i386")} { 38 configure.args-append --cpu=ia32 39 build.args CXX="${configure.cxx} -m32" 40 } elseif {(${build_arch} eq "x86_64")} { 41 configure.args-append --cpu=amd64 42 build.args CXX="${configure.cxx} -m64" 43 } elseif {(${build_arch} eq "ppc")} { 44 configure.args-append --cpu=ppc 45 build.args CXX="${configure.cxx} -m32" 46 } elseif {(${build_arch} eq "ppc64")} { 47 configure.args-append --cpu=ppc64 48 build.args CXX="${configure.cxx} -m64" 39 # botan way of setting cpu type in build phase 40 array set merger_configure_args { 41 ppc --cpu=ppc 42 i386 --cpu=ia32 43 ppc64 --cpu=ppc64 44 x86_64 --cpu=amd64 45 } 46 47 if {![variant_isset universal]} { 48 if {[info exists build_arch] && ${os.platform} eq "darwin"} { 49 switch ${build_arch} { 50 ppc - 51 i386 { 52 build.args CXX="${configure.cxx} -m32" 53 } 54 ppc64 - 55 x86_64 { 56 build.args CXX="${configure.cxx} -m64" 57 } 58 } 59 configure.args-append $merger_configure_args(${build_arch}) 60 } else { 61 build.args CXX="${configure.cxx}" 49 62 } 50 63 } else { 51 build.args CXX="${configure.cxx}" 64 # the arch flag is lost in the build phase, so put it back 65 foreach arch ${configure.universal_archs} { 66 lappend merger_build_args(${arch}) CXX='${configure.cxx} -arch ${arch}' 67 } 52 68 } 53 69 54 universal_variant no 70 # configure.py rejects this argument 71 configure.universal_args-delete --disable-dependency-tracking 55 72 56 73 livecheck.regex "Botan-(1.10.\[0-9\]+).tbz" 57 74 livecheck.url http://botan.randombit.net/download.html