# ex:ts=8
# New ports collection makefile for:	netscape (full communicator version)
# Version required:     4.5-us
# Date created:         14 Feb 1998
# Whom:                 obrien@NUXI.com
#
# $FreeBSD: ports/www/netscape47-communicator.us/Makefile,v 1.22 1999/10/06 08:03:26 obrien Exp $
#

DISTFILES=	communicator-v47-us.x86-unknown-freebsd.tar.gz
MASTER_SITES=	"" # manual fetch

MAINTAINER=	obrien@FreeBSD.org

RESTRICTED=	"USA ITAR export restrictions"

MASTERDIR=	${.CURDIR}/../netscape4-communicator
NO_LATEST_LINK=	yes
FILESDIR=	${.CURDIR}/files
WRKSRC?=	${WRKDIR}/${BROWSER}-v47.x86-unknown-freebsd

BROWSER_VER=	4.7.us
INFILE_HEAD=	'Communicator,4.7.0.19990915'
NO_AUTOADMIN=	yes
NO_FORTIFY=	'Not needed -- we are already the 128-bit version'

.include <bsd.port.pre.mk>

# Need to define USA_RESIDENT to YES or NO
.if !defined(USA_RESIDENT) || (${USA_RESIDENT} != YES && ${USA_RESIDENT} != yes && ${USA_RESIDENT} != NO && ${USA_RESIDENT} != no)
pre-fetch:
	@${ECHO}
	@${ECHO} You must set variable USA_RESIDENT to YES, if you are USA or
	@${ECHO} Canadian resident, in order to build this package.
	@${ECHO} There is no version of this port for NON-USA and NON-Canadian users.
	@${ECHO}
	@${FALSE}
#
.elif defined(USA_RESIDENT)
.if ${USA_RESIDENT} == YES || ${USA_RESIDENT} == yes
#
.if !exists(${DISTDIR}/${DISTFILES})
IGNORE="You must manually obtain ${DISTFILES} from 'https://wwwus.netscape.com/usdl-bin/pdms_dnstest.cgi?PRODUCT=communicator4.7-freebsd22-en-complete-128&COMPONENTS=CLIENT&TEMPLATES=NSCP' \(click 'I Agree'\) and place it in ${DISTDIR}"
.endif

.else
pre-fetch:
	@${ECHO}
	@${ECHO} There is no version of this port for NON-USA and NON-Canadian users.
	@${ECHO}
	@${FALSE}
.endif
.endif

I_WANT_NORMAL_BEHAVIOR=	true
.include "${MASTERDIR}/Makefile"
