Pretty much a regen in response to PR 386. We're backing away from the

rapidly-changing ac- series to the stable, lynx 2.7.2 release.  ac- shoudl
be in a lynx-current port.
Note that in the patches I pull some tricks with Makefiles that work _only_
because we are building out of variables set in bsd.port.mk.
This commit is contained in:
gene 1998-01-12 17:22:51 +00:00
parent e8f238d920
commit 5fb7a01da9
3 changed files with 69 additions and 31 deletions

View File

@ -1,23 +1,25 @@
# OpenBSD makefile for: lynx
# http://sol.slcc.edu/lynx/current/
# Version required: 2.7.1ac
# Version required: 2.7.2
# Date created: 17 November 1997
# Whom: gene
#
# $OpenBSD: Makefile,v 1.7 1997/12/29 21:42:43 martin Exp $
# $OpenBSD: Makefile,v 1.8 1998/01/12 17:22:51 gene Exp $
#
DISTNAME= lynx2.7.1ac-0.104
PKGNAME= lynx-2.7.1ac-0.104
CATEGORIES= www
MASTER_SITES= http://sol.slcc.edu/lynx/current/
DISTNAME= lynx2-7-2
PKGNAME= lynx-2.7.2
CATEGORIES= www
MASTER_SITES= http://sol.slcc.edu/lynx/release/
EXTRACT_SUFX= .zip
MAINTAINER= gene@OpenBSD.ORG
MAINTAINER= gene@OpenBSD.ORG
WRKSRC= ${WRKDIR}/lynx2-7-1
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --with-screen=ncurses --with-zlib --libdir="${PREFIX}/etc"
MAKEFILE= makefile
MAN1= lynx.1
BUILD_DEPENDS= unzip:$(PORTSDIR)/archivers/unzip
MAN1= lynx.1
EXTRACT_CMD= unzip
EXTRACT_BEFORE_ARGS= -qq
ALL_TARGET= openbsd
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (lynx2.7.1ac-0.104.tar.gz) = b89e5dd86811ffb69add512094def236
MD5 (lynx2-7-2.zip) = 5a90e47091ff9d6ac1b9a63990581972

View File

@ -1,19 +1,55 @@
*** configure.orig Sat Sep 27 15:04:16 1997
--- configure Sat Sep 27 15:04:23 1997
*** Makefile.orig Mon Jan 12 11:48:03 1998
--- Makefile Mon Jan 12 11:52:46 1998
***************
*** 2511,2517 ****
CFLAGS="$CFLAGS -DNEXT -DXMOSAIC_HACK"
;;
openbsd*)
! LIBS="$LIBS -lcompat"
;;
osf*)
# Increase the maximum size of functions that will be optimized.
--- 2511,2517 ----
CFLAGS="$CFLAGS -DNEXT -DXMOSAIC_HACK"
;;
openbsd*)
! LIBS="$LIBS -lcompat -lcurses -ltermlib"
;;
osf*)
# Increase the maximum size of functions that will be optimized.
*** 211,216 ****
--- 211,217 ----
@echo "news-slang -- for SONY NEWS-OS 4.2.1R with color slang package"
@echo "next -- for NeXT OS"
@echo "next-ncurses -- for NeXT OS using ncurses package"
+ @echo "openbsd -- for OpenBSD"
@echo "osf -- for Alpha OSF/1"
@echo "osf-slang -- for Alpha OSF/1 with color slang package"
@echo "ptx -- for Sequent's DYNIX/ptx, version 4, (current version)"
***************
*** 987,992 ****
--- 988,1002 ----
LIBS="-L/usr/local/lib -lncurses \
$(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
WWWLIB="../WWW/Library/next/libwww.a"
+
+ openbsd:
+ cd WWW/Library/netbsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
+ cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DNCURSES \
+ -DUNIX -DNO_CUSERID -I../$(WWWINC) $(SITE_DEFS) \
+ -I/usr/include/ncurses" \
+ LIBS="-lcurses -ltermlib -lcompat \
+ $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
+ WWWLIB="../WWW/Library/netbsd/libwww.a"
# isc - Interactive Unix for i386 and i486 machines
# According to Robert Salter (salter1@mster.nsbf.nasa.gov),
*** WWW/Library/netbsd/Makefile.orig Mon Jan 12 11:55:09 1998
--- WWW/Library/netbsd/Makefile Mon Jan 12 11:58:21 1998
***************
*** 2,11 ****
#
# For W3 distribution, machine type for subdirectories
! WWW_MACH = netbsd
# The ASIS repository's name for the machine we are on
! ASIS_MACH = i386/NetBSD
CFLAGS = -O -DUSE_DIRENT
--- 2,11 ----
#
# For W3 distribution, machine type for subdirectories
! WWW_MACH = $(OPSYS)
# The ASIS repository's name for the machine we are on
! ASIS_MACH = $(ARCH)/$(OPSYS)
CFLAGS = -O -DUSE_DIRENT