summaryrefslogtreecommitdiff
path: root/chat/ninja
diff options
context:
space:
mode:
Diffstat (limited to 'chat/ninja')
-rw-r--r--chat/ninja/Makefile8
-rw-r--r--chat/ninja/options.mk10
2 files changed, 12 insertions, 6 deletions
diff --git a/chat/ninja/Makefile b/chat/ninja/Makefile
index 7fbffe71ad2..525763d98ad 100644
--- a/chat/ninja/Makefile
+++ b/chat/ninja/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2005/05/22 20:07:43 jlam Exp $
+# $NetBSD: Makefile,v 1.11 2005/05/31 22:00:37 wiz Exp $
#
DISTNAME= ninja-1.5.8.1
@@ -12,10 +12,6 @@ COMMENT= Another IRC client based on ircII
GNU_CONFIGURE= YES
USE_TOOLS+= gmake
-BUILD_DEFS+= USE_INET6
-
-.if defined(USE_INET6) && ${USE_INET6} == "YES"
-CONFIGURE_ARGS+= --enable-ipv6
-.endif
+.include "options.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/chat/ninja/options.mk b/chat/ninja/options.mk
new file mode 100644
index 00000000000..612d5285e0f
--- /dev/null
+++ b/chat/ninja/options.mk
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 22:00:37 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ninja
+PKG_SUPPORTED_OPTIONS= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.endif