# $Id: Portfile 42601 2008-11-25 19:09:57Z nottwo@macports.org $ PortSystem 1.0 name db46 version 4.6.21 revision 3 categories databases maintainers blair openmaintainer platforms darwin use_parallel_build yes description The Berkeley DB package, version 4.6 long_description \ Version 4.6 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. homepage http://www.oracle.com/database/berkeley-db/index.html master_sites http://download-west.oracle.com/berkeley-db/ \ http://download-east.oracle.com/berkeley-db/ \ http://download-uk.oracle.com/berkeley-db/ patch_sites http://www.oracle.com/technology/products/berkeley-db/db/update/${version}/ patchfiles patch.${version}.1 \ patch.${version}.2 \ patch.${version}.3 distname db-${version} patch.dir ${workpath}/${distname} dist_subdir db4 checksums ${distname}${extract.suffix} \ md5 718082e7e35fc48478a2334b0bc4cd11 \ patch.${version}.1 \ md5 4878872edfc53c6ecb871b1062a4bdaf \ patch.${version}.2 \ md5 55074e53d3acae2dcbeae8322f96e522 \ patch.${version}.3 \ md5 4ccd6c9e296fb448f7ffe352fe740507 worksrcdir ${distname}/build_unix configure.cmd ../dist/configure configure.args --enable-cxx \ --includedir=\\\${prefix}/include/db46 \ --libdir=\\\${prefix}/lib/db46 \ --program-transform-name="s,^db,db46," \ --enable-dump185 \ --disable-tcl destroot.destdir prefix=${destroot}${prefix} \ docdir=${destroot}${prefix}/share/doc/db-${version}/ post-destroot { foreach lib { libdb.a libdb_cxx.a } { delete ${destroot}${prefix}/lib/db46/${lib} } foreach bin { archive hotbackup dump printlog upgrade checkpoint recover verify deadlock load stat codegen dump185 } { move ${destroot}${prefix}/bin/db_${bin} \ ${destroot}${prefix}/bin/db46_${bin} } } variant java description {Enable java bindings} { configure.args-append --enable-java } livecheck.check regex livecheck.url http://www.oracle.com/technology/documentation/berkeley-db/db/ref/changelog/4.6.html livecheck.regex {Berkeley DB (\d+(?:\.\d+)*)}