Ticket #513: patch-php4-20030430

File patch-php4-20030430, 826 bytes (added by bchesneau@…, 21 years ago)

Patch portfile

Line 
1--- Portfile-old        Wed Apr 30 06:40:43 2003
2+++ Portfile    Wed Apr 30 06:41:02 2003
3@@ -21,6 +21,8 @@
4                lib:libpng3:libpng \
5                lib:libmhash:mhash \
6                path:${prefix}/sbin/apxs:apache
7+
8+set imapversion 2002c1
9                               
10 configure.env  LDFLAGS=-L${prefix}/lib CPPFLAGS=-I${prefix}/include
11 
12@@ -40,6 +42,21 @@
13                                       
14        depends_lib-append      lib:plpgsql:postgresql
15        configure.args-append   --with-pgsql=${prefix}/pgsql
16+}
17+
18+variant imap {
19+       master_sites-append ftp://ftp.cac.washington.edu/imap/
20+       distfiles-append        imap.tar.Z
21+
22+       configure.args-append   --with-imap=../imap-${imapversion} --with-imap-ssl=/usr
23+}
24+
25+pre-configure {
26+       if { [variant_isset imap] } {
27+               system "cd ${workpath}/imap-${imapversion} && \
28+                                               make osx SSLTYPE=nopwd"
29+               system "cd ${workpath}/${worksrcdir}"
30+       }
31 }
32 
33 install.args   prefix=${destroot}${prefix}