[33374] trunk/dports/sysutils/slocate/Portfile

nox at macports.org nox at macports.org
Fri Jan 25 13:24:15 PST 2008


Revision: 33374
          http://trac.macosforge.org/projects/macports/changeset/33374
Author:   nox at macports.org
Date:     2008-01-25 13:24:13 -0800 (Fri, 25 Jan 2008)

Log Message:
-----------
slocate (closes #13304): Added universal support.

Modified Paths:
--------------
    trunk/dports/sysutils/slocate/Portfile

Modified: trunk/dports/sysutils/slocate/Portfile
===================================================================
--- trunk/dports/sysutils/slocate/Portfile	2008-01-25 21:21:28 UTC (rev 33373)
+++ trunk/dports/sysutils/slocate/Portfile	2008-01-25 21:24:13 UTC (rev 33374)
@@ -65,3 +65,13 @@
 	ui_msg "If you want to disable the weekly update of the system's built-in locate,"
 	ui_msg "edit the file /etc/weekly.\n"
 }
+
+variant universal {
+    build.args-append   LDFLAGS="${configure.universal_ldflags}"
+
+    post-configure {
+        reinplace -E "/^CFLAGS=/s|\$| ${configure.universal_cflags}|" \
+            ${worksrcpath}/src/Makefile
+    }
+}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080125/3677fc9d/attachment.html


More information about the macports-changes mailing list