summaryrefslogtreecommitdiff
path: root/www/lynx
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1999-01-23 12:41:13 +0000
committerfrueauf <frueauf@pkgsrc.org>1999-01-23 12:41:13 +0000
commitbe49eebb29eecee8366ea7ebb585ec086f346e6f (patch)
tree23f3d5fddae8b630decf1f32b4cf7a30f035bbaa /www/lynx
parentbaeaccd86a406734ce6016e36afef68aee245677 (diff)
downloadpkgsrc-be49eebb29eecee8366ea7ebb585ec086f346e6f.tar.gz
Apply patch from pr 6820 (and 6821 which was send double) to compile
lynx with -DNOPORT if PASSIVE_FETCH is set in /etc/mk.conf. Provided by Dan McMahill.
Diffstat (limited to 'www/lynx')
-rw-r--r--www/lynx/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/www/lynx/Makefile b/www/lynx/Makefile
index 55f137614c9..4a13f0e1325 100644
--- a/www/lynx/Makefile
+++ b/www/lynx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 1998/11/05 02:29:18 mycroft Exp $
+# $NetBSD: Makefile,v 1.16 1999/01/23 12:41:13 frueauf Exp $
#
DISTNAME= lynx2-8-1
@@ -10,13 +10,21 @@ MASTER_SITES= http://sol.slcc.edu/lynx/release2-8-1/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://sol.slcc.edu/lynx/
-CONFLICTS= lynx-2.8rel.2 lynx-2.8
-
DEPENDS+= libslang-1.2.2:../../devel/libslang
+CONFLICTS= lynx-*
+
+GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-screen=slang --with-zlib --libdir="${PREFIX}/etc"
+# see if PASSIVE_FETCH is defined in /etc/mk.conf. If so compile
+# with the ftp code set to passive mode (-DNOPORT)
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(PASSIVE_FETCH)
+CONFIGURE_ENV+= LIBS="-lm -ltermcap" CPPFLAGS="-Dunix -DNOPORT"
+.else
CONFIGURE_ENV+= LIBS="-lm -ltermcap" CPPFLAGS=-Dunix
-GNU_CONFIGURE= YES
+.endif
INSTALL_TARGET= install install-help
MAKEFILE= makefile