[81144] trunk/dports/mail/procmail/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Jul 25 18:55:29 PDT 2011


Revision: 81144
          http://trac.macports.org/changeset/81144
Author:   ryandesign at macports.org
Date:     2011-07-25 18:55:28 -0700 (Mon, 25 Jul 2011)
Log Message:
-----------
procmail: support build_arch; fix universal variant

Modified Paths:
--------------
    trunk/dports/mail/procmail/Portfile

Modified: trunk/dports/mail/procmail/Portfile
===================================================================
--- trunk/dports/mail/procmail/Portfile	2011-07-26 01:50:12 UTC (rev 81143)
+++ trunk/dports/mail/procmail/Portfile	2011-07-26 01:55:28 UTC (rev 81144)
@@ -5,7 +5,7 @@
 
 name                procmail
 version             3.22
-revision            2
+revision            3
 categories          mail
 platforms           darwin
 maintainers         nomaintainer
@@ -62,13 +62,27 @@
 
 checksums           md5     1678ea99b973eb77eda4ecf6acae53f1
 
-configure {
-    system "cd ${worksrcpath} && mv INSTALL INSTALL.README"
+post-extract {
+    move ${worksrcpath}/INSTALL ${worksrcpath}/INSTALL.README
+}
+
+post-patch {
     reinplace "s%^/\\*\\(#define\[ \t\]*DEF\[S\]*PATH\[ \t\]*\".*\\)\".*$%\\1:${prefix}/bin\"%" ${worksrcpath}/config.h
     reinplace "s%/etc/procmailrc%${prefix}/etc/procmailrc%" ${worksrcpath}/config.h
     reinplace "s%/usr/local%${prefix}%g" ${worksrcpath}/Makefile
     reinplace "s%(BASENAME)/man%(BASENAME)/share/man%" ${worksrcpath}/Makefile
 }
 
+use_configure       no
+
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+
+build.env           CC="${configure.cc} ${archflags}"
+
 build.args          BASENAME=${destroot}${prefix} LOCKINGTEST=/tmp
 destroot.args       BASENAME=${destroot}${prefix} LOCKINGTEST=/tmp install-suid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110725/03c9b5ec/attachment.html>


More information about the macports-changes mailing list