source: trunk/dports/databases/db48/Portfile @ 98523

Last change on this file since 98523 was 98523, checked in by blair@…, 7 years ago

db{44,46,47,48}: update master_sites to the only working site.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 98523 2012-10-08 01:31:53Z blair@macports.org $
3
4PortSystem 1.0
5PortGroup  muniversal 1.0
6
7name            db48
8version         4.8.30
9set branch      [join [lrange [split ${version} .] 0 1] {}]
10categories      databases
11license         Sleepycat
12maintainers     jmr openmaintainer
13platforms       darwin
14description     The Berkeley DB package, version 4.8
15long_description \
16    Version 4.8 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/
24
25distname        db-${version}
26
27checksums \
28    md5     f80022099c5742cd179343556179aa8c \
29    sha1    ab36c170dda5b2ceaad3915ced96e41c6b7e493c \
30    rmd160  dd2fcd4c9b857a91e2f491fd4fadb0c51b993a9c
31
32configure.dir   ${worksrcpath}/build_unix
33build.dir       ${configure.dir}
34
35configure.cmd   ../dist/configure
36configure.args \
37    --enable-cxx \
38    --includedir=\\\${prefix}/include/db${branch} \
39    --libdir=\\\${prefix}/lib/db${branch}
40
41destroot.destdir \
42    prefix=${destroot}${prefix} \
43    docdir=${destroot}${prefix}/share/doc/${name}
44
45post-destroot {
46    foreach bin [glob -tails -directory ${destroot}${prefix}/bin/ db_*] {
47        set newbin [regsub {^db_} ${bin} "db${branch}_"]
48        move ${destroot}${prefix}/bin/${bin} \
49            ${destroot}${prefix}/bin/${newbin}
50    }
51}
52
53variant java conflicts no_java description {Build the Java API} {
54    configure.args-append   --enable-java
55}
56
57variant no_java conflicts java description {Legacy compatibility variant} {}
58if {[variant_isset no_java]} {
59    default_variants -java
60} elseif {${os.subplatform} == "macosx" && ${os.major} < 11} {
61    default_variants +java
62}
63
64variant tcl description {build Tcl API} {
65    depends_lib-append      port:tcl
66    configure.args-append   --enable-tcl --with-tcl=${prefix}/lib
67}
68
69if { [variant_isset universal] } {
70    if { ${os.arch}=="i386" } {
71        if { ${os.major} >= 10 } {
72            set merger_configure_args(ppc) --with-mutex=Darwin/_spin_lock_try
73        }
74        set merger_configure_args(ppc64)   --with-mutex=Darwin/_spin_lock_try
75    } else {
76        set merger_configure_args(i386)    --with-mutex=x86/gcc-assembly
77        set merger_configure_args(x86_64)  --with-mutex=x86_64/gcc-assembly
78    }
79}
80
81livecheck.type  regex
82livecheck.url   http://download.oracle.com/otndocs/products/berkeleydb/html/changelog_4_8_0.html
83livecheck.regex {Berkeley DB (\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.