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

Last change on this file since 135061 was 135061, checked in by jmr@…, 5 years ago

db48: remove unnecessary destroot.destdir override, presumably inherited from an older version that didn't support DESTDIR

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