Ticket #12102: Portfile

File Portfile, 1.4 KB (added by markd@…, 17 years ago)
Line 
1# $Id: Portfile 26049 2007-06-10 15:59:50Z markd@macports.org $
2
3PortSystem 1.0
4PortGroup perl5 1.0
5perl5.setup                     BerkeleyDB 0.31
6maintainers                     sal@email.arc.nasa.gov
7description                     Perl extension for Berkeley DB version 2, 3, 4
8long_description                This Perl module provides an interface to most \
9    of the functionality available in Berkeley DB versions 2, 3 and \
10    4. In general it is safe to assume that the interface provided \
11    here to be identical to the Berkeley DB interface. The main \
12    changes have been to make the Berkeley DB API work in a Perl \
13    way. Note that if you are using Berkeley DB 2.x, the new features \
14    available in Berkeley DB 3.x or DB 4.x are not available via this \
15    module.
16platforms                       darwin
17checksums                       md5 48e2cf29d37f457a35eedc3104c41eac
18depends_lib-append              port:db4
19configure.env                   BERKELEYDB_INCLUDE=${prefix}/include/db4 \
20                                BERKELEYDB_LIB=${prefix}/lib \
21                                DBNAME=-ldb-4
22
23variant db44 {
24  depends_lib-delete            port:db4
25  depends_lib-append            port:db44
26  configure.env-delete          BERKELEYDB_INCLUDE=${prefix}/include/db4 \
27                                BERKELEYDB_LIB=${prefix}/lib \
28                                DBNAME=-ldb-4
29
30  configure.env-append          BERKELEYDB_INCLUDE=${prefix}/include/db44 \
31                                BERKELEYDB_LIB=${prefix}/lib/db44 \
32                                DBNAME=-ldb
33}
34
35variant db3 {
36  depends_lib-delete            port:db4
37  depends_lib-append            port:db3
38  configure.env-delete          BERKELEYDB_INCLUDE=${prefix}/include/db4
39  configure.env-append          BERKELEYDB_INCLUDE=${prefix}/include/db3
40}
41