[116658] trunk/dports/net/dnsmasq/Portfile

snc at macports.org snc at macports.org
Sat Feb 1 11:59:51 PST 2014


Revision: 116658
          https://trac.macports.org/changeset/116658
Author:   snc at macports.org
Date:     2014-02-01 11:59:51 -0800 (Sat, 01 Feb 2014)
Log Message:
-----------
dnsmasq: fix build args, fixes #42349

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

Modified: trunk/dports/net/dnsmasq/Portfile
===================================================================
--- trunk/dports/net/dnsmasq/Portfile	2014-02-01 19:44:51 UTC (rev 116657)
+++ trunk/dports/net/dnsmasq/Portfile	2014-02-01 19:59:51 UTC (rev 116658)
@@ -5,6 +5,7 @@
 
 name                dnsmasq
 version             2.68
+revision            1
 categories          net
 license             GPL
 maintainers         snc openmaintainer
@@ -49,7 +50,6 @@
 variant universal {}
 
 build.env-append    CC="${configure.cc} [get_canonical_archflags]"
-build.args-append   COPTS="-DNO_DHCP -DNO_TFTP -DNO_IPV6"
 
 destroot.args       PREFIX=${prefix}
 destroot.keepdirs   ${destroot}${prefix}/var/run/${name}
@@ -84,6 +84,21 @@
     build.args-delete   -DNO_IPV6
 }
 
+set COPTS {}
+if {![variant_isset dhcp]} {
+    lappend COPTS -DNO_DHCP
+}
+if {![variant_isset tftp]} {
+    lappend COPTS -DNO_TFTP
+}
+if {![variant_isset ipv6]} {
+    lappend COPTS -DNO_IPV6
+}
+if {[llength $COPTS] > 0} {
+    set mycopts [join $COPTS " "]
+    build.args-append COPTS="$mycopts"
+}
+
 post-destroot {
     copy ${worksrcpath}/dnsmasq.conf.example ${destroot}${prefix}/etc/dnsmasq.conf.example
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140201/1813942b/attachment-0001.html>


More information about the macports-changes mailing list