# $Id: Portfile,v 1.1 2005/10/18 12:35:39 mww Exp $

PortSystem 1.0
PortGroup perl5 1.0
perl5.setup			BerkeleyDB 0.26
maintainers			sal@email.arc.nasa.gov
description			Perl extension for Berkeley DB version 2, 3, 4
long_description		This Perl module provides an interface to most \
    of the functionality available in Berkeley DB versions 2, 3 and \
    4. In general it is safe to assume that the interface provided \
    here to be identical to the Berkeley DB interface. The main \
    changes have been to make the Berkeley DB API work in a Perl \
    way. Note that if you are using Berkeley DB 2.x, the new features \
    available in Berkeley DB 3.x or DB 4.x are not available via this \
    module.
platforms			darwin
checksums			md5 6e9882f4e4bac48b24079d082af30e6c
depends_lib-append		port:db4
configure.env			BERKELEYDB_INCLUDE=${prefix}/include/db4 \
				BERKELEYDB_LIB=${prefix}

variant db3 {
  depends_lib-delete		port:db4
  depends_lib-append		port:db3
  configure.env-delete		BERKELEYDB_INCLUDE=${prefix}/include/db4
  configure.env-append		BERKELEYDB_INCLUDE=${prefix}/include/db3
}

