summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorfrueauf <frueauf>1999-01-23 12:41:13 +0000
committerfrueauf <frueauf>1999-01-23 12:41:13 +0000
commitbf38edec6f0a0cdd1ddc525324e92d9e60c2828e (patch)
tree23f3d5fddae8b630decf1f32b4cf7a30f035bbaa /www
parentb9e062d642825227f98005ab3c65f0b3c2320553 (diff)
downloadpkgsrc-bf38edec6f0a0cdd1ddc525324e92d9e60c2828e.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')
-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