pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/elinks Add support for a bunch of options:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d5f729339f6
branches:  trunk
changeset: 522219:9d5f729339f6
user:      hubertf <hubertf%pkgsrc.org@localhost>
date:      Wed Dec 06 00:19:12 2006 +0000

description:
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@localhost>

diffstat:

 www/elinks/Makefile   |   6 ++-
 www/elinks/options.mk |  74 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+), 2 deletions(-)

diffs (100 lines):

diff -r c8eca9e71c83 -r 9d5f729339f6 www/elinks/Makefile
--- a/www/elinks/Makefile       Wed Dec 06 00:13:58 2006 +0000
+++ b/www/elinks/Makefile       Wed Dec 06 00:19:12 2006 +0000
@@ -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+=       --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 -r c8eca9e71c83 -r 9d5f729339f6 www/elinks/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/elinks/options.mk     Wed Dec 06 00:19:12 2006 +0000
@@ -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
+



Home | Main Index | Thread Index | Old Index