diff options
author | wiz <wiz@pkgsrc.org> | 2005-12-02 17:05:04 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-12-02 17:05:04 +0000 |
commit | f6210738c358902d2b36080d263168fe6fbe2974 (patch) | |
tree | 953417cc7955ff8c5ddf9c87c4a931b36f1bd7de /www/libwww/options.mk | |
parent | 898e61efd5fa914717f2bcf94680ed5322fd969a (diff) | |
download | pkgsrc-f6210738c358902d2b36080d263168fe6fbe2974.tar.gz |
Convert to options framework.
While here, fix two pkglint warnings.
Diffstat (limited to 'www/libwww/options.mk')
-rw-r--r-- | www/libwww/options.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/www/libwww/options.mk b/www/libwww/options.mk new file mode 100644 index 00000000000..68769031179 --- /dev/null +++ b/www/libwww/options.mk @@ -0,0 +1,17 @@ +# $NetBSD: options.mk,v 1.1 2005/12/02 17:05:04 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libwww +PKG_OPTIONS_OPTIONAL_GROUPS+= socks +PKG_OPTIONS_GROUP.socks= socks4 socks5 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Msocks4) +CONFIGURE_ARGS+= --with-socks4=${BUILDLINK_PREFIX.socks4}/lib/libsocks4.a +CONFIGURE_ARGS+= --with-socks5=no +.include "../../net/socks4/buildlink3.mk" +.elif !empty(PKG_OPTIONS:Msocks5) +CONFIGURE_ARGS+= --with-socks4=no +CONFIGURE_ARGS+= --with-socks5=${BUILDLINK_prefix.socks5}/lib/libsocks5.a +.include "../../net/socks5/buildlink3.mk" +.endif |