# $Id: Portfile 45794 2009-01-22 08:01:42Z digdog@macports.org $

PortSystem 1.0

name		db3
version		3.3.11
categories	databases
maintainers     digdog
description     The Berkeley DB package, revision 3
homepage        http://www.sleepycat.com/update/
platforms       darwin
use_parallel_build	yes
master_sites    http://download.oracle.com/berkeley-db/
distname        db-${version}
checksums	md5 b6ae24fa55713f17a9ac3219d987722c
patchfiles	patch-db.h patch-db185_ext.in patch-db185_uext.in \
		patch-db185.c patch-db185_int.in patch-mutex.h \
		patch-configure
worksrcdir      ${distname}/build_unix
configure.cmd   ../dist/configure
configure.cflags "-Wno-deprecated"
configure.args  --enable-compat185 --enable-dump185 --enable-cxx \
                --includedir=${prefix}/include/db3 \
                --program-transform-name=s,^db,db3,

destroot.destdir  prefix=${destroot}${prefix} includedir=${destroot}${prefix}/include/db3 \
                  docdir=${destroot}${prefix}/share/${name}-${version}/

long_description This is Version 3 of the Berkeley DB package. \
                 This port mainly exists for compatibility with Ximian Evolution \
                 and is based on the db4 port.

