summaryrefslogtreecommitdiff
path: root/net/libnids/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'net/libnids/options.mk')
-rw-r--r--net/libnids/options.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/net/libnids/options.mk b/net/libnids/options.mk
new file mode 100644
index 00000000000..b599f17fcb2
--- /dev/null
+++ b/net/libnids/options.mk
@@ -0,0 +1,32 @@
+# $NetBSD: options.mk,v 1.1 2005/04/05 22:13:29 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libnids
+PKG_SUPPORTED_OPTIONS= libnet10 libnet11
+
+.if !defined(PKG_OPTIONS.libnids)
+PKG_DEFAULT_OPTIONS+= libnet10
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Can't support both versions of libnet
+###
+.if !empty(PKG_OPTIONS:Mlibnet10) && !empty(PKG_OPTIONS:Mlibnet11)
+PKG_FAIL_REASON+= "libnet-1.0.x and libnet-1.1.x cannot both be selected." \
+ "This is due to the packages conflicting."
+.endif
+
+###
+### libnet 1.0.x branch support
+###
+.if !empty(PKG_OPTIONS:Mlibnet10)
+. include "../../devel/libnet/buildlink3.mk"
+.endif
+
+###
+### libnet 1.1.x branch support
+###
+.if !empty(PKG_OPTIONS:Mlibnet11)
+. include "../../devel/libnet11/buildlink3.mk"
+.endif