[62896] trunk/dports/net/net-snmp/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jan 21 00:17:16 PST 2010


Revision: 62896
          http://trac.macports.org/changeset/62896
Author:   ryandesign at macports.org
Date:     2010-01-21 00:17:11 -0800 (Thu, 21 Jan 2010)
Log Message:
-----------
net-snmp:

 * remove -arch flags from net-snmp-config script (#23334)
 * don't opportunistically link with libelf

Modified Paths:
--------------
    trunk/dports/net/net-snmp/Portfile

Modified: trunk/dports/net/net-snmp/Portfile
===================================================================
--- trunk/dports/net/net-snmp/Portfile	2010-01-21 07:54:35 UTC (rev 62895)
+++ trunk/dports/net/net-snmp/Portfile	2010-01-21 08:17:11 UTC (rev 62896)
@@ -4,6 +4,7 @@
 
 name                    net-snmp
 version                 5.5
+revision                1
 categories              net
 platforms               darwin
 maintainers             ryandesign openmaintainer
@@ -46,6 +47,7 @@
                         --with-zlib=${prefix} \
                         --with-bzip2=${prefix} \
                         --with-install-prefix=${destroot} \
+                        --without-elf \
                         --without-kmem-usage \
                         --enable-ipv6 \
                         --with-out-mib-modules=mibII/ipv6
@@ -69,6 +71,15 @@
     configure.args-append --with-security-modules="usm ksm"
 }
 
+post-build {
+    if {[variant_isset universal]} {
+        set my_archflags ${configure.universal_cflags}
+    } else {
+        set my_archflags ${configure.cc_archflags}
+    }
+    reinplace "s|${my_archflags}||g" ${worksrcpath}/${name}-config
+}
+
 post-destroot {
     destroot.keepdirs ${destroot}${prefix}/var/net-snmp
     foreach packlist [exec find ${destroot} -name .packlist] {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100121/68af0c47/attachment.html>


More information about the macports-changes mailing list