Ticket #1138: portfile.diff
File portfile.diff, 1.8 KB (added by bchesneau@…, 21 years ago) |
---|
-
(a) Portfile-orig vs. (b) Portfile
a b 20 20 depends_build bin:perl:perl5.8 21 21 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup 22 22 23 23 24 set exim_user exim 24 25 patch.pre_args -p1 25 26 … … 46 47 system "touch '${destroot}${prefix}/var/spool/exim/.turd'" 47 48 reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/exim.sh } 48 49 49 platform darwin 7 { patchfiles-append patch-EDITME \ 50 patch-Makefile-Darwin } 50 51 platform darwin 6 { 52 53 if {[variant_isset mysql] || [variant_isset mysql4]} { 54 patchfiles-append patch-EDITME 55 reinplace "s|LOOKUP_LIBS=-lresolv|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lresolv -lmysqlclient|g" ${filespath}/patch-EDITME 56 } 57 } 58 59 platform darwin 7 { 60 patchfiles-append patch-Makefile-Darwin \ 61 patch-EDITME 62 63 if {[variant_isset mysql] || [variant_isset mysql4]} { 64 reinplace "s|LOOKUP_LIBS=-lresolv|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lresolv -lmysqlclient|g" ${filespath}/patch-EDITME 65 } 66 67 } 51 68 52 69 variant smtp-auth { } 53 70 variant tls { } … … 58 75 59 76 variant mysql { depends_lib-append lib:libmysqlclient:mysql } 60 77 78 variant mysql4 { depends_lib-append lib:libmysqlclient:mysql4 } 79 61 80 variant maildir { } 62 81 63 82 post-configure { 64 65 if {[variant_isset mysql]} { 83 if {[variant_isset mysql] || [variant_isset mysql4]} { 66 84 reinplace "s|# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" Local/Makefile 67 85 reinplace "s|# LOOKUP_INCLUDE=.*|LOOKUP_INCLUDE=-I ${prefix}/include/mysql -I ${prefix}/include -I /usr/include|g" Local/Makefile 68 reinplace "s|# LOOKUP_LIBS=.*|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lmysqlclient|g" Local/Makefile69 86 } 70 87 71 88 if {[variant_isset maildir ]} {