# $Id: Portfile 127982 2014-11-10 02:33:54Z jmr@macports.org $ PortSystem 1.0 PortGroup muniversal 1.0 name botan version 1.10.8 revision 1 categories security devel platforms darwin maintainers mww license BSD description cryptographic algorithms and formats library in C++ long_description Botan is a C++ library implementing a variety of \ cryptographic algorithms and formats. At this time, it is \ quite stable, and is suitable for use in a wide variety of \ programs. homepage http://botan.randombit.net/ master_sites http://files.randombit.net/botan/ distfiles Botan-${version}.tbz worksrcdir Botan-${version} checksums rmd160 fc3ef01435a88d8c189f20bbaa671c4142adc537 \ sha256 bc2fd5fe904bba7cd688df021689f53a2d2f87ae728b647196a6b5954d184ea0 use_bzip2 yes depends_build port:python27 depends_lib port:openssl port:zlib port:bzip2 worksrcdir Botan-${version} configure.cmd ${prefix}/bin/python2.7 ./configure.py configure.args --docdir=share/doc --with-openssl --with-zlib --with-bzip2 if {[string match *clang* ${configure.compiler}]} { configure.args-append --cc=clang } elseif {[string match *gcc* ${configure.compiler}]} { configure.args-append --cc=gcc } destroot.destdir DESTDIR=${destroot}${prefix} platform darwin { configure.args-append --os=darwin } # botan way of setting cpu type in build phase array set merger_configure_args { ppc --cpu=ppc i386 --cpu=ia32 ppc64 --cpu=ppc64 x86_64 --cpu=amd64 } if {![variant_isset universal]} { if {[info exists build_arch] && ${os.platform} eq "darwin"} { switch ${build_arch} { ppc - i386 { build.args CXX="${configure.cxx} -m32" } ppc64 - x86_64 { build.args CXX="${configure.cxx} -m64" } } if {[info exists merger_configure_args($build_arch)]} { configure.args-append $merger_configure_args(${build_arch}) } } else { build.args CXX="${configure.cxx}" } } else { # the arch flag is lost in the build phase, so put it back foreach arch ${configure.universal_archs} { lappend merger_build_args(${arch}) CXX='${configure.cxx} -arch ${arch}' } } # configure.py rejects this argument configure.universal_args-delete --disable-dependency-tracking livecheck.regex "Botan-(1.10.\[0-9\]+).tbz" livecheck.url http://botan.randombit.net/download.html