[76372] trunk/dports/net/libnids/Portfile

and.damore at macports.org and.damore at macports.org
Mon Feb 21 08:26:25 PST 2011


Revision: 76372
          http://trac.macports.org/changeset/76372
Author:   and.damore at macports.org
Date:     2011-02-21 08:26:24 -0800 (Mon, 21 Feb 2011)
Log Message:
-----------
added variants for libnet (1.0.x) and libnet11 (1.1.x, default)

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

Modified: trunk/dports/net/libnids/Portfile
===================================================================
--- trunk/dports/net/libnids/Portfile	2011-02-21 16:12:05 UTC (rev 76371)
+++ trunk/dports/net/libnids/Portfile	2011-02-21 16:26:24 UTC (rev 76372)
@@ -20,8 +20,23 @@
                  sha1    105bff0d0d35ab95ec90cce98cfb409f64ed44b4 \
                  rmd160  38994ad04f688291315bfcde38d8795e7a4c4226
 
-depends_lib      port:libpcap port:libnet11
+depends_lib      port:libpcap
 
 configure.args   --mandir=${prefix}/share/man --disable-libglib
 
 destroot.destdir install_prefix=${destroot}
+
+variant libnet conflicts libnet11 description {Use libnet 1.0.x} {
+    depends_lib-delete port:libnet11
+    depends_lib-append port:libnet
+}
+
+variant libnet11 conflicts libnet description {Use libnet 1.1.x} {
+    depends_lib-delete port:libnet
+    depends_lib-append port:libnet11
+}
+
+if {![variant_isset libnet]} {
+    default_variants +libnet11
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110221/bd712868/attachment.html>


More information about the macports-changes mailing list