Ticket #32760: patch-Portfile

File patch-Portfile, 1.9 KB (added by BjarneDMat, 13 years ago)

patch adding support for postgresql 9.1

Line 
1--- /macports/var/macports/sources/rsync.macports.org/release/tarballs/ports/mail/postfix/Portfile      2011-11-07 02:00:27.000000000 +0100
2+++ portfiles/mail/postfix/Portfile     2012-01-04 16:08:08.000000000 +0100
3@@ -178,24 +178,30 @@
4     lappend AUXLIBS "-L${prefix}/lib/mysql5/mysql" -lmysqlclient -lz -lm
5 }
6 
7-variant postgresql83 conflicts postgresql84 postgresql90 description "add postgresql support via postgresql83" {
8+variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 description "add postgresql support via postgresql83" {
9     depends_lib-append port:postgresql83
10     lappend CCARGS  -DHAS_PGSQL "-I${prefix}/include/postgresql83"
11     lappend AUXLIBS "-L${prefix}/lib/postgresql83" -lpq
12 }
13 
14-variant postgresql84 conflicts postgresql83 postgresql90 description "add postgresql support via postgresql84" {
15+variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 description "add postgresql support via postgresql84" {
16     depends_lib-append port:postgresql84
17     lappend CCARGS  -DHAS_PGSQL "-I${prefix}/include/postgresql84"
18     lappend AUXLIBS "-L${prefix}/lib/postgresql84" -lpq
19 }
20 
21-variant postgresql90 conflicts postgresql83 postgresql84 description "add postgresql support via postgresql90" {
22+variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 description "add postgresql support via postgresql90" {
23     depends_lib-append port:postgresql90
24     lappend CCARGS  -DHAS_PGSQL "-I${prefix}/include/postgresql90"
25     lappend AUXLIBS "-L${prefix}/lib/postgresql90" -lpq
26 }
27 
28+variant postgresql91 conflicts postgresql83 postgresql84 postgresql90 description "add postgresql support via postgresql91" {
29+    depends_lib-append port:postgresql91
30+    lappend CCARGS  -DHAS_PGSQL "-I${prefix}/include/postgresql91"
31+    lappend AUXLIBS "-L${prefix}/lib/postgresql91" -lpq
32+}
33+
34 variant dovecot_sasl description "add Dovecot SASL support" {
35     lappend CCARGS  -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE="dovecot"
36 }