Index: Portfile
===================================================================
--- Portfile	(revision 80127)
+++ Portfile	(working copy)
@@ -46,6 +46,8 @@
 
 use_configure       no
 
+build.args          COPTS="${COPTS}"
+
 destroot.args       PREFIX=${prefix}
 destroot.keepdirs   ${destroot}${prefix}/var/run
 
@@ -53,22 +55,29 @@
 livecheck.url       ${master_sites}
 livecheck.regex     LATEST_IS_(\\d\\.\\d+)
 
-set COPTS ""
-variant no_dhcp description { Disable built in DHCP server } {
-    set COPTS "${COPTS} -DNO_DHCP"
-    build.args COPTS="${COPTS}"
+# removed +no_ variants 2011-07-04
+set COPTS [list -DNO_DHCP -DNO_TFTP -DNO_IPV6]
+variant dhcp conflicts no_dhcp description { built in DHCP server } {
+    ldelete COPTS -DNO_DHCP
 }
 
-variant no_tftp description { Disable built in TFTP server } {
-    set COPTS "${COPTS} -DNO_TFTP"
-    build.args COPTS="${COPTS}"
+variant no_dhcp requires -dhcp description { Disable built in DHCP server } {
 }
 
-variant no_ipv6 description { Disable IPV6 support } {
-    set COPTS "${COPTS} -DNO_IPV6"
-    build.args COPTS="${COPTS}"
+variant tftp conflicts no_tftp description { built in TFTP server } {
+    ldelete COPTS -DNO_TFTP
 }
 
+variant no_tftp requires -tftp description { Disable built in TFTP server } {
+}
+
+variant ipv6 conflicts no_ipv6 description { IPv6 support } {
+    ldelete COPTS -DNO_IPV6
+}
+
+variant no_ipv6 requires -ipv6 description { Disable IPV6 support } {
+}
+
 post-destroot {
     # copy configuration file if not previously created
     if {![file exists ${prefix}/etc/dnsmasq.conf]} {
