pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/ninja Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8c850a93a9cb
branches:  trunk
changeset: 494936:8c850a93a9cb
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue May 31 22:00:37 2005 +0000

description:
Convert to options framework.

diffstat:

 chat/ninja/Makefile   |   8 ++------
 chat/ninja/options.mk |  10 ++++++++++
 2 files changed, 12 insertions(+), 6 deletions(-)

diffs (35 lines):

diff -r 610b575d2382 -r 8c850a93a9cb chat/ninja/Makefile
--- a/chat/ninja/Makefile       Tue May 31 22:00:06 2005 +0000
+++ b/chat/ninja/Makefile       Tue May 31 22:00:37 2005 +0000
@@ -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 @@
 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 -r 610b575d2382 -r 8c850a93a9cb chat/ninja/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/ninja/options.mk     Tue May 31 22:00:37 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index