source: trunk/dports/databases/db44/Portfile

Last change on this file was 121269, checked in by jeremyhu@…, 3 years ago

misc: Cleanup configure.cxx_stdlib related logic now that we can assume base 2.3 or newer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 121269 2014-06-21 20:18:42Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            db44
6version         4.4.20
7revision        2
8set branch      [join [lrange [split ${version} .] 0 1] {}]
9categories      databases
10license         Sleepycat
11maintainers     nomaintainer
12platforms       darwin
13description     The Berkeley DB package, version 4.4
14
15long_description \
16    Version 4.4 of the Berkeley Data Base library which \
17    offers (key/value) storage with optional concurrent \
18    access or transactions interface.  This port will \
19    install the AES (American Encryption Standard) \
20    enabled version.
21
22homepage        http://www.oracle.com/us/products/database/berkeley-db/db/overview/index.html
23master_sites    http://download.oracle.com/berkeley-db/
24patch_sites     http://download.oracle.com/berkeley-db/patches/db/${version}/
25
26patchfiles      patch.${version}.1 \
27                patch.${version}.2 \
28                patch.${version}.3 \
29                patch.${version}.4
30
31distname        db-${version}
32patch.dir       ${workpath}/${distname}
33
34checksums       ${distname}${extract.suffix} \
35                md5     d84dff288a19186b136b0daf7067ade3 \
36                sha1    bb4c68a4afc14712eb2954b7991f5dc9fe93bf7b \
37                rmd160  5940d9244b4df4897f66f1b67d3c967081c18b85 \
38                patch.${version}.1 \
39                md5     66584d621355df055b6e05b4a02e9c3e \
40                sha1    5843380b67561134432f46dce53b67a133ef7962 \
41                rmd160  57ecff5ecb934e1eb771c49e4e67246d579702b2 \
42                patch.${version}.2 \
43                md5     85df93a0867f6cace3501671cdeb6ed1 \
44                sha1    75f0ae6ef06a23a690e5ebe6460552a11448ef32 \
45                rmd160  e560b07cc20dbd6865d8aad91941515f8fb031c1 \
46                patch.${version}.3 \
47                md5     88ee91889ebf5498b22b2e7bed945d41 \
48                sha1    580265cdccc394ed988a6334f6c9a7d2bb15d141 \
49                rmd160  668c8e88f6fde2c028a9a3ad1d6917a28e7b3e85 \
50                patch.${version}.4 \
51                md5     c2ef7b3e59460c35950fab5f2faa3fc0 \
52                sha1    8875add3312fdc0548fbd4dedb71b4f8637dc6c9 \
53                rmd160  46cf2177aee1ce00c0044817610231541722c4d3
54
55worksrcdir      ${distname}/build_unix
56
57configure.cmd   ../dist/configure
58configure.args  --enable-cxx --enable-compat185 --enable-dump185 \
59                --includedir=\\\${prefix}/include/db${branch} \
60                --libdir=\\\${prefix}/lib/db${branch}
61
62set cxx_stdlibflags {}
63if {[string match *clang* ${configure.cxx}]} {
64    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
65}
66configure.cxx ${configure.cxx} ${cxx_stdlibflags}
67
68destroot.destdir \
69    prefix=${destroot}${prefix} \
70    docdir=${destroot}${prefix}/share/${name}-${version}/
71
72post-destroot {
73    foreach bin [glob -tails -directory ${destroot}${prefix}/bin/ db_*] {
74        set newbin [regsub {^db_} ${bin} "db${branch}_"]
75        move ${destroot}${prefix}/bin/${bin} \
76            ${destroot}${prefix}/bin/${newbin}
77    }
78}
79
80variant java description {Build the Java API} {
81    configure.args-append   --enable-java
82}
83
84variant tcl description {build Tcl API} {
85    depends_lib-append      port:tcl
86    configure.args-append   --enable-tcl --with-tcl=${prefix}/lib
87}
88
89livecheck.type  regex
90livecheck.url   http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html
91livecheck.regex {(4\.4(?:\.\d+)*)\.tar\.gz}
Note: See TracBrowser for help on using the repository browser.