source: trunk/dports/security/botan/Portfile @ 68166

Last change on this file since 68166 was 68166, checked in by mww@…, 9 years ago

fix livecheck: only check for 1.8 series

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 68166 2010-05-28 07:00:48Z mww@macports.org $
2
3PortSystem 1.0
4
5name                    botan
6version                 1.8.8
7categories              security devel
8platforms               darwin
9maintainers             mww
10description             cryptographic algorithms and formats library in C++
11long_description        Botan is a C++ library implementing a variety of \
12                                cryptographic algorithms and formats. At this time, it is \
13                                quite stable, and is suitable for use in a wide variety of \
14                                programs.
15
16homepage                http://botan.randombit.net/
17master_sites    http://files.randombit.net/botan/
18distfiles               Botan-${version}.tbz
19worksrcdir      Botan-${version}
20checksums           md5     cb7cf79c34414cdf1f7a25569d7b82ac \
21                    sha1    a7bd74f758ca2275f27214075651a76b18a3f72a \
22                    rmd160  0ebafddbf4f57dea090af19c19244849f9bc54f6
23use_bzip2               yes
24patchfiles              patch-src-build-data-cc-gcc.txt.diff
25
26worksrcdir      Botan-${version}
27
28configure.cmd   ./configure.py
29configure.args  --docdir=share/doc --cc=gcc
30
31destroot.destdir DESTDIR=${destroot}${prefix}
32
33platform darwin   { configure.args-append --os=darwin }
34
35if {[info exists build_arch] && ${os.platform} == "darwin"} {
36    if {(${build_arch} == "i386")} {
37        configure.args-append --cpu=ia32
38        build.args CXX="${configure.cxx} -m32"
39    } elseif {(${build_arch} == "x86_64")} {
40        configure.args-append --cpu=amd64
41        build.args CXX="${configure.cxx} -m64"
42    } elseif {(${build_arch} == "ppc")} {
43        configure.args-append --cpu=ppc
44        build.args CXX="${configure.cxx} -m32"
45    } elseif {(${build_arch} == "ppc64")} {
46        configure.args-append --cpu=ppc64
47        build.args CXX="${configure.cxx} -m64"
48    }
49} else {
50    build.args CXX="${configure.cxx}"
51}
52
53livecheck.regex "(?i)<title>botan (1.8.*)</title>"
54
Note: See TracBrowser for help on using the repository browser.