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

Last change on this file since 85618 was 85618, checked in by jmr@…, 6 years ago

p5-dbd-pg: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.8 KB
Line 
1# $Id: Portfile 85618 2011-10-15 09:16:59Z jmr@macports.org $
2
3PortSystem            1.0
4PortGroup             perl5 1.0
5
6perl5.setup           DBD-Pg 2.17.2
7revision              2
8license               {Artistic-1 GPL}
9categories            perl databases
10maintainers           nomaintainer
11description           Perl DBI module to provide access to PostgreSQL databases
12long_description      DBD::Pg is a Perl module which works with the DBI \
13                      module to provide access to PostgreSQL databases
14
15platforms             darwin
16
17checksums             md5 2cd63605a9420a63c780f627420a359a \
18                      sha1 e4509a8e1a06cc196ed6fc3e7976c124633bfeb8 \
19                      rmd160 3f509dc9e1f9562f74d565a939f5e072190e6d51
20
21if {${perl5.major} != ""} {
22depends_lib-append    port:p${perl5.major}-dbi \
23                      port:p${perl5.major}-version \
24                      port:p${perl5.major}-module-signature \
25                      port:p${perl5.major}-test-yaml-meta \
26                      port:p${perl5.major}-test-warn
27
28variant postgresql7 conflicts postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql7 port} {
29    depends_lib-append      port:postgresql7
30
31    configure.env           PATH=${prefix}/lib/pgsql7/bin:$env(PATH) \
32                            POSTGRES_INCLUDE="${prefix}/include/pgsql7" \
33                            POSTGRES_LIB="${prefix}/lib/pgsql7 -lssl"
34}
35
36variant postgresql80 conflicts postgresql7 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql80 port} {
37    depends_lib-append      port:postgresql80
38
39    configure.env           PATH=${prefix}/lib/pgsql8/bin:$env(PATH) \
40                            POSTGRES_INCLUDE="${prefix}/include/pgsql8" \
41                            POSTGRES_LIB="${prefix}/lib/pgsql8 -lssl"
42}
43
44variant postgresql81 conflicts postgresql7 postgresql80 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql81 port} {
45    depends_lib-append      port:postgresql81
46
47    configure.env           PATH=${prefix}/lib/postgresql81/bin:$env(PATH) \
48                            POSTGRES_INCLUDE="${prefix}/include/postgresql81" \
49                            POSTGRES_LIB="${prefix}/lib/postgresql81 -lssl"
50}
51
52variant postgresql82 conflicts postgresql7 postgresql80 postgresql81 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql82 port} {
53    depends_lib-append      port:postgresql82
54
55    configure.env           PATH=${prefix}/lib/postgresql82/bin:$env(PATH) \
56                            POSTGRES_INCLUDE="${prefix}/include/postgresql82" \
57                            POSTGRES_LIB="${prefix}/lib/postgresql82 -lssl"
58}
59
60variant postgresql83 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql84 postgresql90 postgresql91 description {build with postgresql83 port} {
61    depends_lib-append      port:postgresql83
62
63    configure.env           PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \
64                            POSTGRES_INCLUDE="${prefix}/include/postgresql83" \
65                            POSTGRES_LIB="${prefix}/lib/postgresql83 -lssl"
66}
67
68variant postgresql84 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql90 postgresql91 description {build with postgresql84 port} {
69    depends_lib-append      port:postgresql84
70
71    configure.env           PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \
72                            POSTGRES_INCLUDE="${prefix}/include/postgresql84" \
73                            POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl"
74}
75
76variant postgresql90 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql91 description {build with postgresql90 port} {
77    depends_lib-append      port:postgresql90
78
79    configure.env           PATH=${prefix}/lib/postgresql90/bin:$env(PATH) \
80                            POSTGRES_INCLUDE="${prefix}/include/postgresql90" \
81                            POSTGRES_LIB="${prefix}/lib/postgresql90 -lssl"
82}
83
84variant postgresql91 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 description {build with postgresql91 port} {
85    depends_lib-append      port:postgresql91
86
87    configure.env           PATH=${prefix}/lib/postgresql91/bin:$env(PATH) \
88                            POSTGRES_INCLUDE="${prefix}/include/postgresql91" \
89                            POSTGRES_LIB="${prefix}/lib/postgresql91 -lssl"
90}
91
92# Default to latest release
93if {![variant_isset postgresql7] && ![variant_isset postgresql80] && ![variant_isset postgresql81] && ![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql91]} {
94    default_variants        +postgresql90
95}
96}
Note: See TracBrowser for help on using the repository browser.