# $Id: Portfile 28242 2007-08-26 00:19:04Z raimue@macports.org $ PortSystem 1.0 name db46 version 4.6.19 categories databases maintainers pumpkingod@gmail.com platforms darwin 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/ distname db-${version} dist_subdir db4 checksums ${distname}${extract.suffix} \ md5 89c7390ff120d5ebf3eccc5f97249e79 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," \ --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/db46/${lib} } foreach bin { archive hotbackup dump printlog upgrade checkpoint recover verify deadlock load stat codegen } { file rename ${destroot}${prefix}/bin/db_${bin} \ ${destroot}${prefix}/bin/db46_${bin} } } variant java { configure.args-append --enable-java } platform darwin 8 { configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 }