summaryrefslogtreecommitdiff
path: root/www/lynx/Makefile
diff options
context:
space:
mode:
authorscottr <scottr>2000-04-07 18:52:25 +0000
committerscottr <scottr>2000-04-07 18:52:25 +0000
commit603c38c3405cb488774154842c2bd79aa0645e4e (patch)
tree23db10e12a09f428f5ccfdb100c00760bde8dd4c /www/lynx/Makefile
parent38184a0f79db155c1443b9160890c9e2cb5d1193 (diff)
downloadpkgsrc-603c38c3405cb488774154842c2bd79aa0645e4e.tar.gz
Add support for SOCKS versions 4 and 5.
Diffstat (limited to 'www/lynx/Makefile')
-rw-r--r--www/lynx/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/www/lynx/Makefile b/www/lynx/Makefile
index 8ec7cf9a208..b7a2a487766 100644
--- a/www/lynx/Makefile
+++ b/www/lynx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2000/01/15 17:37:53 hubertf Exp $
+# $NetBSD: Makefile,v 1.25 2000/04/07 18:52:25 scottr Exp $
#
DISTNAME= lynx2-8-2
@@ -24,6 +24,18 @@ CONFIGURE_ENV+= LIBS="-lm -ltermcap" CPPFLAGS="-Dunix -DNOPORT"
CONFIGURE_ENV+= LIBS="-lm -ltermcap" CPPFLAGS=-Dunix
.endif
+# Include SOCKS firewall support
+.if defined(USE_SOCKS) && (${USE_SOCKS} == 4 || ${USE_SOCKS} == 5)
+CONFIGURE_ENV+= CFLAGS=-I${PREFIX}/include # XXX
+.if ${USE_SOCKS} == 4
+CONFIGURE_ARGS+= --with-socks
+DEPENDS+= socks4-2.2:../../net/socks4
+.else
+CONFIGURE_ARGS+= --with-socks5
+DEPENDS+= socks5-1.0.2:../../net/socks5
+.endif
+.endif
+
# The patches for this code are from the KAME project:
# ftp://ftp.kame.net/pub/kame/misc/lynx-282-v6-19991008b.diff.gz
.include "../../mk/bsd.prefs.mk"