1 | # $Id: Portfile,v 1.17 2003/11/03 16:51:28 wbb4 Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name db4 |
---|
5 | version 4.2.52 |
---|
6 | categories databases |
---|
7 | maintainers michaelm@opendarwin.org |
---|
8 | description The Berkely DB package, revision 4 |
---|
9 | homepage http://www.sleepycat.com/update/ |
---|
10 | platforms darwin freebsd |
---|
11 | master_sites http://www.sleepycat.com/update/snapshot/ |
---|
12 | distname db-${portversion} |
---|
13 | checksums md5 cbc77517c9278cdb47613ce8cb55779f |
---|
14 | worksrcdir ${distname}/build_unix |
---|
15 | configure.cmd ../dist/configure |
---|
16 | configure.args --enable-compat185 --enable-dump185 --enable-cxx \ |
---|
17 | --includedir=${prefix}/include/db4 \ |
---|
18 | --program-transform-name=s,^db,db4, |
---|
19 | |
---|
20 | platform darwin 7 { configure.args-append --enable-tcl \ |
---|
21 | --with-tcl=/usr/lib } |
---|
22 | |
---|
23 | platform darwin 6 { depends_lib-append bin:tclsh8.4:tcl |
---|
24 | configure.args-append --enable-tcl \ |
---|
25 | --with-tcl=${prefix}/lib } |
---|
26 | |
---|
27 | variant java { configure.args-append --enable-java } |
---|
28 | |
---|
29 | destroot.destdir prefix=${destroot}${prefix} \ |
---|
30 | includedir=${destroot}${prefix}/include/db4 \ |
---|
31 | docdir=${destroot}${prefix}/share/${name}-${version}/ |
---|
32 | |
---|
33 | post-destroot { system "rm '${destroot}${prefix}/lib/libdb.a' |
---|
34 | rm '${destroot}${prefix}/lib/libdb.dylib' |
---|
35 | rm '${destroot}${prefix}/lib/libdb_cxx.a' |
---|
36 | rm '${destroot}${prefix}/lib/libdb_cxx.dylib' |
---|
37 | cd '${destroot}${prefix}/bin/' |
---|
38 | mv db_archive db4_archive |
---|
39 | mv db_dump db4_dump |
---|
40 | mv db_printlog db4_printlog |
---|
41 | mv db_upgrade db4_upgrade |
---|
42 | mv db_checkpoint db4_checkpoint |
---|
43 | mv db_dump185 db4_dump185 |
---|
44 | mv db_recover db4_recover |
---|
45 | mv db_verify db4_verify |
---|
46 | mv db_deadlock db4_deadlock |
---|
47 | mv db_load db4_load |
---|
48 | mv db_stat db4_stat" |
---|
49 | } |
---|
50 | |
---|
51 | long_description Revision 4 of the Berkeley DB library. This version \ |
---|
52 | uses an incompatible underlying database format than \ |
---|
53 | revision 1 and a different standard API. Utilities are \ |
---|
54 | included in the distribution to convert v1.85 databases \ |
---|
55 | to v4 databases, and a backwards compatible API is \ |
---|
56 | provided to maintain compatibility with programs using \ |
---|
57 | the v1.85 interface. There are minor interface changes \ |
---|
58 | in this release which may require that DB applications \ |
---|
59 | be modified and recompiled. For a complete discussion \ |
---|
60 | of interface changes, see: http://www.sleepycat.com/update/ |
---|
61 | |
---|