a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 23053 2007-03-23 20:35:47Z pipping@macports.org $
PortSystem 1.0
name db43
version 4.3.29
revision 1
categories databases
maintainers nomaintainer@macports.org
platforms darwin
description The Berkely DB package, version 4.3
long_description \
Version 4.3 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.3 \
databases, and a backwards compatible API is \
provided to maintain compatibility with programs \
using the v1.85 interface.
homepage http://www.sleepycat.com/update/
master_sites http://downloads.sleepycat.com/
patch_sites http://www.oracle.com/technology/products/berkeley-db/db/update/${version}/
patchfiles patch.${version}.1
distname db-${version}
patch.dir ${workpath}/${distname}
dist_subdir db4
checksums ${distname}${extract.suffix} \
sha1 49c31bb12144e3a8fb8b7f64e7bf989b72f2981a \
patch.${version}.1 \
sha1 264edf4ebcd45f9373e4ea3a190506a0505969da
worksrcdir ${distname}/build_unix
configure.cmd ../dist/configure
configure.args --enable-cxx --enable-compat185 --enable-dump185 \
--includedir=\\\${prefix}/include/db43 \
--libdir=\\\${prefix}/lib/db43 \
--program-transform-name="s,^db,db43," \
--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/db43/${lib}
}
foreach bin { archive dump dump185 printlog upgrade checkpoint recover verify deadlock load stat } {
file rename ${destroot}${prefix}/bin/db_${bin} \
${destroot}${prefix}/bin/db43_${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
}