From bf38edec6f0a0cdd1ddc525324e92d9e60c2828e Mon Sep 17 00:00:00 2001 From: frueauf Date: Sat, 23 Jan 1999 12:41:13 +0000 Subject: 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. --- www/lynx/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'www') 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 -- cgit v1.2.3