| 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 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | PortGroup muniversal 1.0 |
|---|
| 6 | |
|---|
| 7 | version 5.0.21 |
|---|
| 8 | name db[join [lrange [split ${version} .] 0 1] {}] |
|---|
| 9 | set branch [join [lrange [split ${version} .] 0 1] .] |
|---|
| 10 | revision 1 |
|---|
| 11 | epoch 20100427 |
|---|
| 12 | categories databases |
|---|
| 13 | maintainers pixilla.com:brad |
|---|
| 14 | platforms darwin |
|---|
| 15 | description The Berkeley DB package, version ${branch} |
|---|
| 16 | long_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 | |
|---|
| 22 | homepage http://www.oracle.com/database/berkeley-db/index.html |
|---|
| 23 | master_sites http://download-west.oracle.com/berkeley-db/ \ |
|---|
| 24 | http://download-east.oracle.com/berkeley-db/ \ |
|---|
| 25 | http://download-uk.oracle.com/berkeley-db/ |
|---|
| 26 | livecheck.type regex |
|---|
| 27 | livecheck.url http://www.oracle.com/technology/software/products/berkeley-db/db/index.html |
|---|
| 28 | livecheck.regex "DB (${branch}.\\d+)" |
|---|
| 29 | |
|---|
| 30 | distname db-${version} |
|---|
| 31 | |
|---|
| 32 | checksums md5 9a749fd2e98fe15840493ddc34cc66d8 \ |
|---|
| 33 | sha1 f852184fdd7d4a0b14e31ec835fd796981f35976 \ |
|---|
| 34 | rmd160 957310c66f7be35d07a96a42dce661bea8f97976 |
|---|
| 35 | |
|---|
| 36 | patchfiles patch-dist-Makefile.in.diff |
|---|
| 37 | |
|---|
| 38 | configure.dir ${worksrcpath}/build_unix |
|---|
| 39 | build.dir ${configure.dir} |
|---|
| 40 | |
|---|
| 41 | configure.cmd ../dist/configure |
|---|
| 42 | configure.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 | |
|---|
| 49 | use_parallel_build yes |
|---|
| 50 | |
|---|
| 51 | variant no_java description {don't build the Java API} { |
|---|
| 52 | configure.args-delete \ |
|---|
| 53 | --enable-java |
|---|
| 54 | } |
|---|
| 55 | |
|---|
| 56 | variant 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 | |
|---|
| 63 | if { [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 | } |
|---|