source: trunk/dports/databases/db48/Portfile

Last change on this file was 138309, checked in by jmr@…, 2 years ago

Make db_select into a stub that just cleans up the symlinks it formerly enabled, because actually using it caused breakage. (#47921) No rev bumps for db46 and db48; reinstalling them is neither necessary nor sufficient to fix the problem.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 138309 2015-07-05 13:03:32Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup  muniversal 1.0
6
7name            db48
8version         4.8.30
9revision        4
10set branch      [join [lrange [split ${version} .] 0 1] {}]
11categories      databases
12license         Sleepycat
13maintainers     jmr openmaintainer
14platforms       darwin
15description     The Berkeley DB package, version 4.8
16long_description \
17    Version 4.8 of the Berkeley Data Base library which \
18    offers (key/value) storage with optional concurrent \
19    access or transactions interface.  This port will \
20    install the AES (American Encryption Standard) \
21    enabled version.
22
23homepage        http://www.oracle.com/us/products/database/berkeley-db/db/overview/index.html
24master_sites    http://download.oracle.com/berkeley-db/
25
26distname        db-${version}
27
28checksums       md5     f80022099c5742cd179343556179aa8c \
29                sha1    ab36c170dda5b2ceaad3915ced96e41c6b7e493c \
30                rmd160  dd2fcd4c9b857a91e2f491fd4fadb0c51b993a9c
31
32patchfiles      patch-dbinc_atomic.h
33
34# Don't link with "-flat_namespace -undefined suppress" on Yosemite and
35# later (#45705).
36patchfiles-append   yosemite-libtool.patch
37
38configure.dir   ${worksrcpath}/build_unix
39build.dir       ${configure.dir}
40
41configure.cmd   ../dist/configure
42configure.args  --enable-cxx \
43                --includedir=\\\${prefix}/include/db${branch} \
44                --libdir=\\\${prefix}/lib/db${branch}
45
46set cxx_stdlibflags {}
47if {[string match *clang* ${configure.cxx}]} {
48    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
49}
50configure.cxx ${configure.cxx} ${cxx_stdlibflags}
51
52destroot.args       docdir=${prefix}/share/doc/${name}
53
54post-destroot {
55    foreach bin [glob -tails -directory ${destroot}${prefix}/bin/ db_*] {
56        set newbin [regsub {^db_} ${bin} "db${branch}_"]
57        move ${destroot}${prefix}/bin/${bin} \
58            ${destroot}${prefix}/bin/${newbin}
59    }
60}
61
62variant java conflicts no_java description {Build the Java API} {
63    configure.args-append   --enable-java
64}
65
66variant no_java conflicts java description {Legacy compatibility variant} {}
67if {[variant_isset no_java]} {
68    default_variants -java
69} elseif {${os.subplatform} eq "macosx" && ${os.major} < 11} {
70    default_variants +java
71}
72
73variant tcl description {build Tcl API} {
74    depends_lib-append      port:tcl
75    configure.args-append   --enable-tcl --with-tcl=${prefix}/lib
76}
77
78if { [variant_isset universal] } {
79    if {${os.arch} eq "i386"} {
80        if { ${os.major} >= 10 } {
81            set merger_configure_args(ppc) --with-mutex=Darwin/_spin_lock_try
82        }
83        set merger_configure_args(ppc64)   --with-mutex=Darwin/_spin_lock_try
84    } else {
85        set merger_configure_args(i386)    --with-mutex=x86/gcc-assembly
86        set merger_configure_args(x86_64)  --with-mutex=x86_64/gcc-assembly
87    }
88}
89
90livecheck.type  regex
91livecheck.url   http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html
92livecheck.regex {(4\.8(?:\.\d+)*)\.tar\.gz}
Note: See TracBrowser for help on using the repository browser.