source: trunk/dports/security/botan/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           muniversal 1.0
5
6name                botan
7version             1.10.9
8revision            1
9categories          security devel
10platforms           darwin
11maintainers         mww
12license             BSD
13description         cryptographic algorithms and formats library in C++
14long_description    Botan is a C++ library implementing a variety of \
15                    cryptographic algorithms and formats. At this time, it is \
16                    quite stable, and is suitable for use in a wide variety of \
17                    programs.
18
19homepage            http://botan.randombit.net/
20master_sites        http://files.randombit.net/botan/
21distfiles           Botan-${version}.tgz
22worksrcdir          Botan-${version}
23checksums           rmd160  2412c33938442ffff6eca67c2db4c7a2a55b2a41 \
24                    sha256  487d27d3a081ae403cf87c0fc78c2a64183f001b48f9feb87e8de1e16fba8df2
25
26depends_build       port:python27
27depends_lib         path:lib/libssl.dylib:openssl port:zlib port:bzip2
28
29worksrcdir          Botan-${version}
30
31configure.cmd       ${prefix}/bin/python2.7 ./configure.py
32configure.args      --docdir=share/doc --with-openssl --with-zlib --with-bzip2
33
34if {[string match *clang* ${configure.compiler}]} {
35  configure.args-append --cc=clang
36} elseif {[string match *gcc* ${configure.compiler}]} {
37  configure.args-append --cc=gcc
38}
39
40destroot.destdir    DESTDIR=${destroot}${prefix}
41
42platform darwin { configure.args-append --os=darwin }
43
44# botan way of setting cpu type in build phase
45array set merger_configure_args {
46    ppc     --cpu=ppc
47    i386    --cpu=ia32
48    ppc64   --cpu=ppc64
49    x86_64  --cpu=amd64
50}
51
52if {![variant_isset universal]} {
53    if {[info exists build_arch] && ${os.platform} eq "darwin"} {
54        switch ${build_arch} {
55            ppc -
56            i386 {
57                build.args CXX="${configure.cxx} -m32"
58            }
59            ppc64 -
60            x86_64 {
61                build.args CXX="${configure.cxx} -m64"
62            }
63        }
64        if {[info exists merger_configure_args($build_arch)]} {
65            configure.args-append $merger_configure_args(${build_arch})
66        }
67    } else {
68        build.args CXX="${configure.cxx}"
69    }
70} else {
71    # the arch flag is lost in the build phase, so put it back
72    foreach arch ${configure.universal_archs} {
73        lappend merger_build_args(${arch}) CXX='${configure.cxx} -arch ${arch}'
74    }
75}
76
77# configure.py rejects this argument
78configure.universal_args-delete --disable-dependency-tracking
79
80livecheck.regex     "Botan-(1.10.\[0-9\]+).tgz"
81livecheck.url       http://botan.randombit.net/download.html
Note: See TracBrowser for help on using the repository browser.