Ticket #24731: Portfile

File Portfile, 2.8 KB (added by pixilla (Bradley Giesbrecht), 14 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id:$
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7version             5.0.21
8name                db[join [lrange [split ${version} .] 0 1] {}]
9set branch          [join [lrange [split ${version} .] 0 1] .]
10revision            1
11epoch               20100427
12categories          databases
13maintainers         pixilla.com:brad
14platforms           darwin
15description         The Berkeley DB package, version ${branch}
16long_description    Version ${branch} 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/database/berkeley-db/index.html
23master_sites        http://download-west.oracle.com/berkeley-db/ \
24                    http://download-east.oracle.com/berkeley-db/ \
25                    http://download-uk.oracle.com/berkeley-db/
26livecheck.type      regex
27livecheck.url       http://www.oracle.com/technology/software/products/berkeley-db/db/index.html
28livecheck.regex     "DB (${branch}.\\d+)"
29
30distname            db-${version}
31
32checksums           md5     9a749fd2e98fe15840493ddc34cc66d8 \
33                    sha1    f852184fdd7d4a0b14e31ec835fd796981f35976 \
34                    rmd160  957310c66f7be35d07a96a42dce661bea8f97976
35
36patchfiles          patch-dist-Makefile.in.diff
37
38configure.dir       ${worksrcpath}/build_unix
39build.dir           ${configure.dir}
40
41configure.cmd       ../dist/configure
42configure.args      --enable-cxx \
43                    --enable-java \
44                    --includedir=${prefix}/include/${name} \
45                    --libdir=${prefix}/lib/${name} \
46                    --docdir=${prefix}/share/doc/${name} \
47                    --program-transform-name="s,^db,${name},"
48
49use_parallel_build  yes
50
51variant no_java description {don't build the Java API} {
52    configure.args-delete \
53                    --enable-java
54}
55
56variant tcl description {build Tcl API} {
57    depends_lib-append port:tcl
58    configure.args-append \
59                    --enable-tcl \
60                    --with-tcl=${prefix}/lib
61}
62
63if { [variant_isset universal] } {
64    if { ${os.arch}=="i386" } {
65        if { ${os.major} >= 10 } {
66            set merger_configure_args(ppc) \
67                    --with-mutex=Darwin/_spin_lock_try
68        }
69        set merger_configure_args(ppc64) \
70                    --with-mutex=Darwin/_spin_lock_try
71    } else {
72        set merger_configure_args(i386) \
73                    --with-mutex=x86/gcc-assembly
74        set merger_configure_args(x86_64) \
75                    --with-mutex=x86_64/gcc-assembly
76    }
77}