1999-08-18 10:46:53 +02:00
|
|
|
# $NetBSD: Makefile,v 1.19 1999/08/18 08:56:12 agc Exp $
|
1999-02-22 08:44:48 +01:00
|
|
|
#
|
|
|
|
# Every effort has been made to keep the communicator and navigator
|
|
|
|
# Makefiles as similar as possible.
|
|
|
|
|
|
|
|
BINNAME= communicator
|
1999-06-19 04:59:44 +02:00
|
|
|
NS_VERS= 4.61
|
|
|
|
NS_VERS_SHORT= 461
|
1999-06-21 10:44:29 +02:00
|
|
|
NS_ENCRYPTION?= export
|
1999-08-18 10:46:53 +02:00
|
|
|
|
|
|
|
BUILD_DEFS+= NS_ENCRYPTION
|
|
|
|
|
1999-02-22 08:44:48 +01:00
|
|
|
#
|
1999-08-13 23:24:11 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc"
|
|
|
|
DISTUNAME= sparc-sun-solaris2.5.1
|
|
|
|
DIST_DIR_NAME= supported/sunos551
|
|
|
|
WRKNAME= sparc-sun-solaris2.5.1
|
|
|
|
.elif (${MACHINE_ARCH} == "alpha")
|
1999-06-14 23:43:33 +02:00
|
|
|
.if !exists(/emul/osf1/sbin/loader)
|
1999-07-02 01:28:31 +02:00
|
|
|
IGNORE= requires Digital UNIX libraries - see compat_osf1(8)
|
1999-06-14 23:43:33 +02:00
|
|
|
.endif
|
1999-06-25 02:09:22 +02:00
|
|
|
DISTUNAME= alpha-dec-osf4.0
|
1999-06-14 23:43:33 +02:00
|
|
|
DIST_DIR_NAME= supported/dec_unix40
|
|
|
|
WRKNAME= alpha-dec-osf4.0
|
|
|
|
.elif (${MACHINE_ARCH} == "i386")
|
1999-06-04 20:07:40 +02:00
|
|
|
.if !exists(/emul/linux/lib/ld-linux.so.2)
|
1999-08-13 23:24:11 +02:00
|
|
|
IGNORE= requires Linux glibc2 libraries - see compat_linux(8)
|
1999-06-04 20:07:40 +02:00
|
|
|
.endif
|
1999-06-25 02:09:22 +02:00
|
|
|
DISTUNAME= x86-unknown-linuxglibc2.0
|
1999-06-19 04:59:44 +02:00
|
|
|
DIST_DIR_NAME= supported/linux20_glibc2
|
1999-06-04 20:07:40 +02:00
|
|
|
WRKNAME= x86-unknown-linux2.0
|
1999-02-22 08:44:48 +01:00
|
|
|
.elif (${MACHINE_ARCH} == "sparc")
|
|
|
|
.if !exists(/emul/sunos/usr/lib/ld.so)
|
1999-07-02 01:28:31 +02:00
|
|
|
IGNORE= requires SunOS libraries - see compat_sunos(8)
|
1999-02-22 08:44:48 +01:00
|
|
|
.endif
|
1999-06-25 02:09:22 +02:00
|
|
|
DISTUNAME= sparc-sun-sunos4.1.3_U1
|
1999-06-14 23:43:33 +02:00
|
|
|
DIST_DIR_NAME= unsupported/sunos413
|
1999-06-25 02:09:22 +02:00
|
|
|
WRKNAME= ${DISTUNAME}
|
1999-02-22 08:44:48 +01:00
|
|
|
.endif
|
|
|
|
#
|
1999-06-25 02:09:22 +02:00
|
|
|
DISTNAME= ${BINNAME}-v${NS_VERS_SHORT}-${NS_ENCRYPTION}.${DISTUNAME}
|
1999-05-25 03:34:24 +02:00
|
|
|
PKGNAME= ${BINNAME}-${NS_VERS}
|
1999-02-22 08:44:48 +01:00
|
|
|
CATEGORIES= www
|
1999-06-19 04:59:44 +02:00
|
|
|
SUB= english/${NS_VERS}/unix/${DIST_DIR_NAME}/complete_install
|
|
|
|
MASTER_SITES= ftp://ftp.netscape.org/pub/communicator/${SUB}/ \
|
|
|
|
ftp://sunsite.utk.edu/pub/netscape/communicator/${SUB}/ \
|
|
|
|
ftp://ftp-uk.netscape.com/pub/communicator/${SUB}/ \
|
|
|
|
ftp.informatik.rwth-aachen.de:/pub/mirror/ftp.netscape.com/pub/communicator/${SUB}/
|
1999-06-18 18:48:45 +02:00
|
|
|
ONLY_FOR_PLATFORM= *-*-alpha *-*-i386 *-*-sparc
|
1999-02-22 08:44:48 +01:00
|
|
|
|
1999-04-17 04:42:16 +02:00
|
|
|
MAINTAINER= packages@netbsd.org
|
1999-02-22 08:44:48 +01:00
|
|
|
HOMEPAGE= http://home.netscape.com/browsers/index.html
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
1999-06-04 20:07:40 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${BINNAME}-v${NS_VERS_SHORT}.${WRKNAME}
|
1999-02-22 08:44:48 +01:00
|
|
|
MOZILLA_HOME= ${PREFIX}/lib/netscape/${PKGNAME}
|
|
|
|
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
|
1999-05-25 03:34:24 +02:00
|
|
|
NS_PLIST_SED= "s,\$${NS_VERS},${NS_VERS},g"
|
1999-02-22 08:44:48 +01:00
|
|
|
|
1999-07-12 02:06:57 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
1999-06-21 10:44:29 +02:00
|
|
|
.if (${NS_ENCRYPTION} == "us")
|
|
|
|
MASTER_SITES=
|
|
|
|
RESTRICTED= "128-bit key strong encryption; export-controlled"
|
|
|
|
MIRROR_DISTFILE= no
|
|
|
|
ONLY_FOR_PLATFORM= *-*-alpha *-*-i386
|
|
|
|
|
|
|
|
do-fetch:
|
|
|
|
@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
|
|
|
|
${ECHO_MSG}; \
|
|
|
|
${ECHO_MSG} " The 128-bit key strong encryption version of"; \
|
|
|
|
${ECHO_MSG} " Netscape for this platform must be fetched"; \
|
|
|
|
${ECHO_MSG} " into ${DISTDIR} from"; \
|
|
|
|
${ECHO_MSG} " http://www.netscape.com/download/"; \
|
|
|
|
${ECHO_MSG}; \
|
|
|
|
fi
|
|
|
|
.endif
|
|
|
|
|
1999-02-22 08:44:48 +01:00
|
|
|
do-install:
|
1999-05-25 03:34:24 +02:00
|
|
|
${SED} -e ${NS_PLIST_SED} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
|
1999-02-22 08:44:48 +01:00
|
|
|
${MKDIR} ${MOZILLA_HOME}/java/classes
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/vreg ${MOZILLA_HOME}
|
|
|
|
.for file in ifc11.jar iiop10.jar jae40.jar java40.jar jio40.jar jsd10.jar \
|
1999-05-25 03:34:24 +02:00
|
|
|
ldap30.jar resource.jar scd10.jar
|
1999-02-22 08:44:48 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${MOZILLA_HOME}/java/classes
|
|
|
|
.endfor
|
1999-05-25 03:34:24 +02:00
|
|
|
cd ${MOZILLA_HOME} ; tar xpzf ${WRKSRC}/nethelp-v${NS_VERS_SHORT}.nif
|
|
|
|
cd ${MOZILLA_HOME} ; tar xpzf ${WRKSRC}/netscape-v${NS_VERS_SHORT}.nif
|
|
|
|
cd ${MOZILLA_HOME} ; tar xpzf ${WRKSRC}/spellchk-v${NS_VERS_SHORT}.nif
|
1999-02-22 08:44:48 +01:00
|
|
|
|
|
|
|
${SED} -e 's#@@MOZILLA_HOME@@#${MOZILLA_HOME}#g' \
|
|
|
|
<${FILESDIR}/${BINNAME}.sh >${WRKDIR}/${BINNAME}.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh ${PREFIX}/bin/${PKGNAME}
|
1999-08-13 23:24:11 +02:00
|
|
|
${RM} -f ${PREFIX}/bin/${BINNAME}
|
1999-06-27 02:34:58 +02:00
|
|
|
${LN} -sf ${PKGNAME} ${PREFIX}/bin/${BINNAME}
|
1999-08-13 23:24:11 +02:00
|
|
|
${RM} -f ${PREFIX}/bin/netscape
|
1999-02-22 08:44:48 +01:00
|
|
|
${LN} -sf ${PKGNAME} ${PREFIX}/bin/netscape
|
|
|
|
|
1999-08-13 23:24:11 +02:00
|
|
|
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc"
|
1999-02-22 08:44:48 +01:00
|
|
|
# Bizarre magic to handle the NIS and DNS versions. Make DNS default.
|
|
|
|
@${SED} -e 's#MOZILLA_HOME/netscape#MOZILLA_HOME/netscape_nis#g' \
|
|
|
|
<${WRKDIR}/${BINNAME}.sh >${WRKDIR}/${BINNAME}_nis.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}_nis.sh \
|
|
|
|
${PREFIX}/bin/${PKGNAME}_nis
|
|
|
|
${LN} -sf ${PKGNAME}_nis ${PREFIX}/bin/netscape_nis
|
|
|
|
${MV} ${MOZILLA_HOME}/netscape ${MOZILLA_HOME}/netscape_nis
|
|
|
|
${MV} ${MOZILLA_HOME}/netscape_dns ${MOZILLA_HOME}/netscape
|
|
|
|
.endif
|
1999-06-04 20:07:40 +02:00
|
|
|
|
1999-08-13 23:24:11 +02:00
|
|
|
${SED} -e ${NS_PLIST_SED} \
|
|
|
|
${PKGDIR}/PLIST.${LOWER_OPSYS}-${MACHINE_ARCH} >>${PLIST_SRC}
|
1999-06-04 20:07:40 +02:00
|
|
|
|
1999-04-23 14:33:19 +02:00
|
|
|
${CHOWN} -R 0:0 ${MOZILLA_HOME}
|
1999-02-22 08:44:48 +01:00
|
|
|
${CHMOD} -R go-w ${MOZILLA_HOME}
|
|
|
|
|
1999-05-25 03:34:24 +02:00
|
|
|
${SED} -e ${NS_PLIST_SED} ${PKGDIR}/PLIST.post >>${PLIST_SRC}
|
1999-02-22 08:44:48 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|