1999-06-18 18:48:45 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 1999/06/18 16:48:45 cgd 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-05-25 03:34:24 +02:00
|
|
|
NS_VERS= 4.6
|
|
|
|
NS_VERS_SHORT= 46
|
1999-02-22 08:44:48 +01:00
|
|
|
#
|
1999-06-14 23:43:33 +02:00
|
|
|
.if (${MACHINE_ARCH} == "alpha")
|
|
|
|
.if !exists(/emul/osf1/sbin/loader)
|
|
|
|
IGNORE=You must have Digital UNIX libraries installed - see compat_osf1(8)
|
|
|
|
.endif
|
|
|
|
UNAME= alpha-dec-osf4.0
|
|
|
|
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)
|
|
|
|
IGNORE=You must have Linux libraries installed - see compat_linux(8)
|
|
|
|
.endif
|
|
|
|
UNAME= x86-unknown-linuxglibc2.0
|
1999-06-14 23:43:33 +02:00
|
|
|
DIST_DIR_NAME= unsupported/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)
|
|
|
|
IGNORE=You must have SunOS libraries installed - see compat_sunos(8)
|
|
|
|
.endif
|
|
|
|
UNAME= sparc-sun-sunos4.1.3_U1
|
1999-06-14 23:43:33 +02:00
|
|
|
DIST_DIR_NAME= unsupported/sunos413
|
1999-06-04 20:07:40 +02:00
|
|
|
WRKNAME= ${UNAME}
|
1999-02-22 08:44:48 +01:00
|
|
|
.endif
|
|
|
|
#
|
1999-05-25 03:34:24 +02:00
|
|
|
DISTNAME= ${BINNAME}-v${NS_VERS_SHORT}-export.${UNAME}
|
|
|
|
PKGNAME= ${BINNAME}-${NS_VERS}
|
1999-02-22 08:44:48 +01:00
|
|
|
CATEGORIES= www
|
1999-06-14 23:43:33 +02:00
|
|
|
SUB= english/unix/${DIST_DIR_NAME}/complete_install
|
1999-05-25 03:34:24 +02:00
|
|
|
MASTER_SITES= ftp://ftp.netscape.org/pub/communicator/${NS_VERS}/${SUB}/ \
|
|
|
|
ftp://sunsite.utk.edu/pub/netscape/communicator/${NS_VERS}/${SUB}/ \
|
|
|
|
ftp://ftp-uk.netscape.com/pub/communicator/${NS_VERS}/${SUB}/ \
|
|
|
|
ftp.informatik.rwth-aachen.de:/pub/mirror/ftp.netscape.com/pub/communicator/${NS_VERS}/${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
|
|
|
|
|
|
|
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}
|
|
|
|
${LN} -sf ${PKGNAME} ${PREFIX}/bin/netscape
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "sparc")
|
|
|
|
# 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
|
|
|
|
|
|
|
${SED} -e ${NS_PLIST_SED} ${PKGDIR}/PLIST.${MACHINE_ARCH} \
|
|
|
|
>>${PLIST_SRC}
|
|
|
|
|
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"
|