summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-05-31 16:28:54 +0000
committerwiz <wiz@pkgsrc.org>2005-05-31 16:28:54 +0000
commit70bc98434bee248e3e00561927100240eb756895 (patch)
tree8353f28e1b8cb0a52b29f30330c186528c9848eb /chat
parentea4137d54ef108ff60d7e2bd10d792aa5abd1a58 (diff)
downloadpkgsrc-70bc98434bee248e3e00561927100240eb756895.tar.gz
Convert to options framework.
Diffstat (limited to 'chat')
-rw-r--r--chat/bitchx/Makefile17
-rw-r--r--chat/bitchx/options.mk20
2 files changed, 23 insertions, 14 deletions
diff --git a/chat/bitchx/Makefile b/chat/bitchx/Makefile
index f42fe9373f5..2928daa1e4c 100644
--- a/chat/bitchx/Makefile
+++ b/chat/bitchx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2005/04/11 21:45:03 tv Exp $
+# $NetBSD: Makefile,v 1.36 2005/05/31 16:36:40 wiz Exp $
DISTNAME= ircii-pana-1.1-final
PKGNAME= bitchx-1.1
@@ -19,24 +19,13 @@ USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --with-ssl
+.include "options.mk"
.include "../../mk/bsd.prefs.mk"
+
.if ${OPSYS} == "Darwin"
CFLAGS+= -DBIND_8_COMPAT
.endif
-.if defined(BITCHX_WITH_GTK) && !empty(BITCHX_WITH_GTK:M[Yy][Ee][Ss])
-.include "../../graphics/imlib/buildlink3.mk"
-.include "../../x11/gnome-libs/buildlink3.mk"
-.include "../../x11/gtk/buildlink3.mk"
-CONFIGURE_ARGS+= --with-gtk
-CFLAGS+= -I${PREFIX}/include/gnome-1.0
-PLIST_SUBST+= GTK="gtk"
-PLIST_SUBST+= NOT_GTK="@comment "
-.else
-PLIST_SUBST+= GTK=
-PLIST_SUBST+= NOT_GTK=
-.endif
-
post-patch:
@${MV} ${WRKSRC}/doc/BitchX.1 ${WRKSRC}/doc/BitchX.1.orig
@${SED} ${FILES_SUBST_SED} \
diff --git a/chat/bitchx/options.mk b/chat/bitchx/options.mk
new file mode 100644
index 00000000000..cec6570f7de
--- /dev/null
+++ b/chat/bitchx/options.mk
@@ -0,0 +1,20 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 16:36:40 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bitchx
+PKG_SUPPORTED_OPTIONS= gtk
+PKG_OPTIONS_LEGACY_VARS+= BITCHX_WITH_GTK:gtk
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgtk)
+.include "../../graphics/imlib/buildlink3.mk"
+.include "../../x11/gnome-libs/buildlink3.mk"
+.include "../../x11/gtk/buildlink3.mk"
+CONFIGURE_ARGS+= --with-gtk
+CFLAGS+= -I${PREFIX}/include/gnome-1.0
+PLIST_SUBST+= GTK="gtk"
+PLIST_SUBST+= NOT_GTK="@comment "
+.else
+PLIST_SUBST+= GTK=
+PLIST_SUBST+= NOT_GTK=
+.endif