diff options
author | hubertf <hubertf> | 2006-12-06 00:19:12 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2006-12-06 00:19:12 +0000 |
commit | e96f2a4f085e74401130454475121934a64712e9 (patch) | |
tree | 325a60f70d71f2b27bf6441245b06b830910f196 /www/elinks | |
parent | bf731d1649a33288d0c08200a1ef708c3d78c7b0 (diff) | |
download | pkgsrc-e96f2a4f085e74401130454475121934a64712e9.tar.gz |
Add support for a bunch of options:
bittorrent nntp spidermonkey gnutls fsp finger gopher inet6 x11 gnutls ssl
Submitted in private mail by Blair Sadewitz <blair.sadewitz@gmail.com>
Diffstat (limited to 'www/elinks')
-rw-r--r-- | www/elinks/Makefile | 6 | ||||
-rw-r--r-- | www/elinks/options.mk | 74 |
2 files changed, 78 insertions, 2 deletions
diff --git a/www/elinks/Makefile b/www/elinks/Makefile index 373bea0266e..2daafe77f74 100644 --- a/www/elinks/Makefile +++ b/www/elinks/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.27 2006/09/06 15:14:34 abs Exp $ +# $NetBSD: Makefile,v 1.28 2006/12/06 00:19:12 hubertf Exp $ DISTNAME= elinks-0.11.1 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= www MASTER_SITES= http://elinks.or.cz/download/ EXTRACT_SUFX= .tar.bz2 @@ -18,6 +18,8 @@ CONFIGURE_ARGS+= --without-x CONFIGURE_ARGS+= --enable-256-colors CONFIGURE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q} +.include "options.mk" + .include "../../archivers/bzip2/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" diff --git a/www/elinks/options.mk b/www/elinks/options.mk new file mode 100644 index 00000000000..5184fc7c1a6 --- /dev/null +++ b/www/elinks/options.mk @@ -0,0 +1,74 @@ +# $NetBSD: options.mk,v 1.1 2006/12/06 00:19:12 hubertf Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.elinks +PKG_SUPPORTED_OPTIONS+= bittorrent nntp spidermonkey gnutls fsp finger gopher +PKG_SUPPORTED_OPTIONS+= inet6 x11 +PKG_OPTIONS_GROUP.tls= gnutls ssl +PKG_OPTIONS_REQUIRED_GROUPS= tls +PKG_SUGGESTED_OPTIONS= ssl + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --enable-ipv6 +.else +CONFIGURE_ARGS+= --disable-ipv6 +.endif + +.if !empty(PKG_OPTIONS:Mx11) +CONFIGURE_ARGS+= --with-x +.include "../../mk/x11.buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-x +.endif + +.if !empty(PKG_OPTIONS:Mbittorrent) +CONFIGURE_ARGS+= --enable-bittorrent +.else +CONFIGURE_ARGS+= --disable-bittorrent +.endif + +.if !empty(PKG_OPTIONS:Mnntp) +CONFIGURE_ARGS+= --enable-nntp +.else +CONFIGURE_ARGS+= --disable-nntp +.endif + +.if !empty(PKG_OPTIONS:Mspidermonkey) +CONFIGURE_ARGS+= --with-spidermonkey +CONFIGURE_ARGS+= --enable-sm-scripting +.include "../../lang/spidermonkey/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-spidermonkey +CONFIGURE_ARGS+= --disable-sm-scripting +.endif + +.if !empty (PKG_OPTIONS:Mssl) +CONFIGURE_ARGS+= --with-openssl +.include "../../security/openssl/buildlink3.mk" +CONFIGURE_ARGS+= --without-openssl +.elif !empty(PKG_OPTIONS:Mgnutls) +CONFIGURE_ARGS+= --with-gnutls-includes=${BUILDLINK_PREFIX.gnutls}/include +CONFIGURE_ARGS+= --with-gnutls-libs=${BUILDLINK_PREFIX.gnutls}/lib +CONFIGURE_ARGS+= --without-openssl +.include "../../security/gnutls/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mfsp) +CONFIGURE_ARGS+= --enable-fsp +.else +CONFIGURE_ARGS+= --disable-fsp +.endif + +.if !empty(PKG_OPTIONS:Mfinger) +CONFIGURE_ARGS+= --enable-finger +.else +CONFIGURE_ARGS+= --disable-finger +.endif + +.if !empty(PKG_OPTIONS:Mgopher) +CONFIGURE_ARGS+= --enable-gopher +.else +CONFIGURE_ARGS+= --disable-gopher +.endif + |