source: trunk/dports/perl/p5-dbd-pg/Portfile @ 33740

Last change on this file since 33740 was 33740, checked in by narf_tm@…, 12 years ago

Added postgresql83 and made it the default.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 33740 2008-02-04 16:04:40Z narf_tm@macports.org $
2
3PortSystem 1.0
4PortGroup perl5 1.0
5
6perl5.setup     DBD-Pg 1.49
7categories      perl databases
8maintainers     narf_tm openmaintainer
9description     Perl DBI module to provide access to PostgreSQL databases
10long_description        DBD::Pg is a Perl module which works with the DBI \
11                        module to provide access to PostgreSQL databases
12platforms       darwin
13checksums       sha1 37c1c37a02afa00d48f8dd739d5d8502a7c40045
14
15depends_lib-append      port:postgresql83 port:openssl port:p5-dbi
16
17configure.env   PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \
18                        POSTGRES_INCLUDE="${prefix}/include/postgresql83" \
19                        POSTGRES_LIB="${prefix}/lib/postgresql83 -lssl"
20
21variant postgresql7 conflicts postgresql80 postgresql81 postgresql82 {
22        depends_lib-delete port:postgresql83
23        depends_lib-append port:postgresql7
24        configure.env-delete PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \
25                        POSTGRES_INCLUDE="${prefix}/include/postgresql83" \
26                        POSTGRES_LIB="${prefix}/lib/postgresql83 -lssl"
27        configure.env-append PATH=${prefix}/lib/pgsql7/bin:$env(PATH) \
28                                POSTGRES_INCLUDE="${prefix}/include/pgsql7" \
29                                POSTGRES_LIB="${prefix}/lib/pgsql7 -lssl"
30}
31
32variant postgresql80 conflicts postgresql7 postgresql81 postgresql82 {
33        depends_lib-delete port:postgresql83
34        depends_lib-append port:postgresql80
35        configure.env-delete PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \
36                        POSTGRES_INCLUDE="${prefix}/include/postgresql83" \
37                        POSTGRES_LIB="${prefix}/lib/postgresql83 -lssl"
38        configure.env-append PATH=${prefix}/lib/pgsql8/bin:$env(PATH) \
39                                POSTGRES_INCLUDE="${prefix}/include/pgsql8" \
40                                POSTGRES_LIB="${prefix}/lib/pgsql8 -lssl"
41}
42
43variant postgresql81 conflicts postgresql7 postgresql80 postgresql82 {
44        depends_lib-delete port:postgresql83
45        depends_lib-append port:postgresql81
46        configure.env-delete PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \
47                        POSTGRES_INCLUDE="${prefix}/include/postgresql83" \
48                        POSTGRES_LIB="${prefix}/lib/postgresql83 -lssl"
49        configure.env-append PATH=${prefix}/lib/postgresql81/bin:$env(PATH) \
50                                POSTGRES_INCLUDE="${prefix}/include/postgresql81" \
51                                POSTGRES_LIB="${prefix}/lib/postgresql81 -lssl"
52}
53
54variant postgresql82 conflicts postgresql7 postgresql80 postgresql81 {
55        depends_lib-delete port:postgresql83
56        depends_lib-append port:postgresql82
57        configure.env-delete PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \
58                        POSTGRES_INCLUDE="${prefix}/include/postgresql83" \
59                        POSTGRES_LIB="${prefix}/lib/postgresql83 -lssl"
60        configure.env-append PATH=${prefix}/lib/postgresql82/bin:$env(PATH) \
61                                POSTGRES_INCLUDE="${prefix}/include/postgresql82" \
62                                POSTGRES_LIB="${prefix}/lib/postgresql82 -lssl"
63}
Note: See TracBrowser for help on using the repository browser.