# $Id$ PortSystem 1.0 name db42 version 4.2.52 categories databases maintainers nomaintainer platforms darwin use_parallel_build yes description The Berkeley DB package, version 4.2 long_description \ Version 4.2 of the Berkeley Data Base library which \ offers (key/value) storage with optional concurrent \ access or transactions interface. This port will \ install the AES (American Encryption Standard) \ enabled version. Utilities are included in the \ distribution to convert v1.85 databases to v4.2 \ databases, and a backwards compatible API is \ provided to maintain compatibility with programs \ using the v1.85 interface. homepage http://www.oracle.com/database/berkeley-db/ master_sites http://download-west.oracle.com/berkeley-db/ \ http://download-east.oracle.com/berkeley-db/ \ http://download-uk.oracle.com/berkeley-db/ distname db-${version} dist_subdir db4 checksums sha1 a7eae0ce16dd12d030c2843e14a84a37881ec4b1 worksrcdir ${distname}/build_unix configure.cmd ../dist/configure configure.args --enable-cxx --enable-compat185 --enable-dump185 \ --includedir=\\\${prefix}/include/db42 \ --libdir=\\\${prefix}/lib/db42 \ --program-transform-name="s,^db,db42," \ --disable-tcl destroot.destdir prefix=${destroot}${prefix} \ docdir=${destroot}${prefix}/share/${name}-${version}/ post-destroot { delete ${destroot}${prefix}/share foreach lib { libdb.a libdb_cxx.a } { delete ${destroot}${prefix}/lib/db42/${lib} } foreach bin { archive dump dump185 printlog upgrade checkpoint recover verify deadlock load stat } { file rename ${destroot}${prefix}/bin/db_${bin} \ ${destroot}${prefix}/bin/db42_${bin} } } variant java { configure.args-append --enable-java }