pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/932ddc22498f
branches:  trunk
changeset: 495124:932ddc22498f
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Jun 02 21:39:53 2005 +0000

description:
Convert to options framework.

diffstat:

 chat/jabberd/Makefile   |  10 +++-------
 chat/jabberd/options.mk |  10 ++++++++++
 2 files changed, 13 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r 9352c941b92e -r 932ddc22498f chat/jabberd/Makefile
--- a/chat/jabberd/Makefile     Thu Jun 02 21:25:56 2005 +0000
+++ b/chat/jabberd/Makefile     Thu Jun 02 21:39:53 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2005/05/22 20:07:42 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2005/06/02 21:39:53 wiz Exp $
 #
 
 DISTNAME=              jabber-1.4.2
@@ -29,18 +29,14 @@
 LIBDIR=                        ${PREFIX}/lib/jabberd
 INCDIR=                        ${PREFIX}/include/jabberd
 
-.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
 
 # some systems don't have u_intN_t
 CPPFLAGS+=             -Du_int8_t=uint8_t
 
 BUILD_DEFS+=           JABBERD_USER    JABBERD_GROUP \
                        JABBERD_LOGDIR  JABBERD_SPOOLDIR \
-                       JABBERD_PIDDIR  USE_INET6
-
-.if !empty(USE_INET6:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+=       --enable-ipv6
-.endif
+                       JABBERD_PIDDIR
 
 PKG_GROUPS=             ${JABBERD_GROUP}
 PKG_USERS=              ${JABBERD_USER}:${JABBERD_GROUP}::Jabberd\\ user
diff -r 9352c941b92e -r 932ddc22498f chat/jabberd/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jabberd/options.mk   Thu Jun 02 21:39:53 2005 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1 2005/06/02 21:39:53 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.jabberd
+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