1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name db46 |
---|
5 | version 4.6.19 |
---|
6 | revision 0 |
---|
7 | categories databases |
---|
8 | maintainers pumpkingod@gmail.com |
---|
9 | platforms darwin |
---|
10 | description The Berkeley DB package, version 4.6 |
---|
11 | long_description \ |
---|
12 | Version 4.6 of the Berkeley Data Base library which \ |
---|
13 | offers (key/value) storage with optional concurrent \ |
---|
14 | access or transactions interface. This port will \ |
---|
15 | install the AES (American Encryption Standard) \ |
---|
16 | enabled version. |
---|
17 | |
---|
18 | homepage http://www.oracle.com/database/berkeley-db/index.html |
---|
19 | master_sites http://download-west.oracle.com/berkeley-db/ \ |
---|
20 | http://download-east.oracle.com/berkeley-db/ \ |
---|
21 | http://download-uk.oracle.com/berkeley-db/ |
---|
22 | distname db-${version} |
---|
23 | dist_subdir db4 |
---|
24 | checksums ${distname}${extract.suffix} \ |
---|
25 | md5 89c7390ff120d5ebf3eccc5f97249e79 |
---|
26 | |
---|
27 | worksrcdir ${distname}/build_unix |
---|
28 | |
---|
29 | configure.cmd ../dist/configure |
---|
30 | configure.args --enable-cxx \ |
---|
31 | --includedir=\\\${prefix}/include/db46 \ |
---|
32 | --libdir=\\\${prefix}/lib/db46 \ |
---|
33 | --program-transform-name="s,^db,db46," \ |
---|
34 | --disable-tcl |
---|
35 | |
---|
36 | destroot.destdir prefix=${destroot}${prefix} \ |
---|
37 | docdir=${destroot}${prefix}/share/${name}-${version}/ |
---|
38 | |
---|
39 | post-destroot { |
---|
40 | delete ${destroot}${prefix}/share |
---|
41 | foreach lib { libdb.a libdb_cxx.a } { |
---|
42 | delete ${destroot}${prefix}/lib/db46/${lib} |
---|
43 | } |
---|
44 | foreach bin { archive hotbackup dump printlog upgrade checkpoint recover verify deadlock load stat codegen } { |
---|
45 | file rename ${destroot}${prefix}/bin/db_${bin} \ |
---|
46 | ${destroot}${prefix}/bin/db46_${bin} |
---|
47 | } |
---|
48 | } |
---|
49 | |
---|
50 | variant java { |
---|
51 | configure.args-append --enable-java |
---|
52 | } |
---|
53 | |
---|
54 | platform darwin 8 { |
---|
55 | configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
56 | } |
---|