pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/13d9238ca8e3
branches:  trunk
changeset: 494932:13d9238ca8e3
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue May 31 21:58:38 2005 +0000

description:
Convert to options framework.

diffstat:

 chat/irssi/Makefile   |  33 ++-------------------------------
 chat/irssi/options.mk |  31 +++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 31 deletions(-)

diffs (89 lines):

diff -r 61b38b747a61 -r 13d9238ca8e3 chat/irssi/Makefile
--- a/chat/irssi/Makefile       Tue May 31 21:58:36 2005 +0000
+++ b/chat/irssi/Makefile       Tue May 31 21:58:38 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2005/05/23 09:06:24 rillig Exp $
+# $NetBSD: Makefile,v 1.33 2005/05/31 21:58:38 wiz Exp $
 
 DISTNAME=              ${IRSSI_DISTNAME}
 PKGREVISION=           3
@@ -12,9 +12,6 @@
 
 .include "Makefile.common"
 
-# list it into IPv6-ready packages
-BUILD_DEFS+=           USE_INET6 IRSSI_USE_PERL IRSSI_USE_SSL
-
 GNU_CONFIGURE=         yes
 USE_LIBTOOL=           yes
 USE_PKGINSTALL=                yes
@@ -30,33 +27,7 @@
 EGDIR=         ${PREFIX}/share/examples/irssi
 CONF_FILES=    ${EGDIR}/irssi.conf ${PKG_SYSCONFDIR}/irssi.conf
 
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(IRSSI_USE_PERL) && (${IRSSI_USE_PERL} == "YES")
-PERL5_PACKLIST=                ${PERL5_SITEARCH}/auto/Irssi/.packlist
-PERL5_PACKLIST+=       ${PERL5_SITEARCH}/auto/Irssi/Irc/.packlist
-PERL5_PACKLIST+=       ${PERL5_SITEARCH}/auto/Irssi/UI/.packlist
-PERL5_PACKLIST+=       ${PERL5_SITEARCH}/auto/Irssi/TextUI/.packlist
-.include "../../lang/perl5/buildlink3.mk"
-# actually we don't need --with-perl here, irssi is compiled with it by default
-# but who knows what may happen in future versions
-CONFIGURE_ARGS+=       --with-perl
-CONFIGURE_ARGS+=       --with-perl-lib=site
-.else
-CONFIGURE_ARGS+=       --with-perl=no
-.endif
-
-# IPv6 support
-.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+=       --enable-ipv6
-.endif
-
-# SSL support
-.if defined(IRSSI_USE_SSL) && !empty(IRSSI_USE_SSL:M[Yy][Ee][Ss])
-.  include "../../security/openssl/buildlink3.mk"
-.else
-CONFIGURE_ARGS+=       --disable-ssl
-.endif
+.include "options.mk"
 
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../devel/pkgconfig/buildlink3.mk"
diff -r 61b38b747a61 -r 13d9238ca8e3 chat/irssi/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/irssi/options.mk     Tue May 31 21:58:38 2005 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 21:58:38 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.irssi
+PKG_SUPPORTED_OPTIONS= inet6 irssi-perl ssl
+PKG_OPTIONS_LEGACY_VARS+=      IRSSI_USE_PERL:irssi-perl IRSSI_USE_SSL:ssl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mirssi-perl)
+PERL5_PACKLIST=                ${PERL5_SITEARCH}/auto/Irssi/.packlist
+PERL5_PACKLIST+=       ${PERL5_SITEARCH}/auto/Irssi/Irc/.packlist
+PERL5_PACKLIST+=       ${PERL5_SITEARCH}/auto/Irssi/UI/.packlist
+PERL5_PACKLIST+=       ${PERL5_SITEARCH}/auto/Irssi/TextUI/.packlist
+.include "../../lang/perl5/buildlink3.mk"
+# actually we don't need --with-perl here, irssi is compiled with it by default
+# but who knows what may happen in future versions
+CONFIGURE_ARGS+=       --with-perl
+CONFIGURE_ARGS+=       --with-perl-lib=site
+.else
+CONFIGURE_ARGS+=       --with-perl=no
+.endif
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+=       --enable-ipv6
+.endif
+
+.if !empty(PKG_OPTIONS:Mssl)
+.include "../../security/openssl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-ssl
+.endif



Home | Main Index | Thread Index | Old Index