diff options
author | wiz <wiz@pkgsrc.org> | 2005-05-31 21:58:38 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-05-31 21:58:38 +0000 |
commit | f70d3c586176b85b1586b1a2dbabf6a5a674d661 (patch) | |
tree | 62932f7ce015e19b208d4ff0c16ad76d2118ff03 /chat/irssi | |
parent | eef86cd89f301cff00ff6199c9bd6d00813154cd (diff) | |
download | pkgsrc-f70d3c586176b85b1586b1a2dbabf6a5a674d661.tar.gz |
Convert to options framework.
Diffstat (limited to 'chat/irssi')
-rw-r--r-- | chat/irssi/Makefile | 33 | ||||
-rw-r--r-- | chat/irssi/options.mk | 31 |
2 files changed, 33 insertions, 31 deletions
diff --git a/chat/irssi/Makefile b/chat/irssi/Makefile index 3c99b8de308..3a00c6f4ea1 100644 --- a/chat/irssi/Makefile +++ b/chat/irssi/Makefile @@ -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 @@ COMMENT= Secure and modular IRC client with text mode user interf .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 @@ CONFIGURE_ENV+= F77=${FALSE} 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 --git a/chat/irssi/options.mk b/chat/irssi/options.mk new file mode 100644 index 00000000000..90f8341bf09 --- /dev/null +++ b/chat/irssi/options.mk @@ -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 |