1998-03-21 04:45:39 +00:00
|
|
|
# New ports collection makefile for: Netscape browser with Japanese resources
|
|
|
|
# Date created: 13 Mar 1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: sada@FreeBSD.org
|
1998-03-21 04:45:39 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1998-03-21 04:45:39 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 14:15:53 +00:00
|
|
|
PORTNAME= netscape-${BROWSER_ARC}
|
|
|
|
PORTVERSION= ${BROWSER_VERSION}
|
1998-03-21 04:45:39 +00:00
|
|
|
CATEGORIES= japanese www
|
2000-08-19 22:48:10 +00:00
|
|
|
MASTER_SITES?= ${MASTER_SITE_PORTS_JP} \
|
1999-04-02 12:01:39 +00:00
|
|
|
http://www.bres.tsukuba.ac.jp/~yohta/netscape/
|
2000-04-11 14:15:53 +00:00
|
|
|
DISTNAME?= communicator-ja-euc-v407-export.generic-generic-generic
|
1998-03-21 04:45:39 +00:00
|
|
|
|
2000-05-14 17:50:20 +00:00
|
|
|
MAINTAINER?= sada@FreeBSD.org
|
1998-03-21 04:45:39 +00:00
|
|
|
|
1998-12-27 09:09:50 +00:00
|
|
|
# ?= for ports that include this Makefile
|
2000-03-26 19:59:48 +00:00
|
|
|
RUN_DEPENDS?= ${PREFIX}/bin/${BROWSER_ARC}-${BROWSER_VERSION}:${PORTSDIR}/www/netscape${BROWSER_VER}-${BROWSER}
|
1999-05-20 17:37:19 +00:00
|
|
|
RUN_DEPENDS+= ${PKG_DBDIR}/ja-netscape-fonts-1.0:${PORTSDIR}/japanese/netscape-fonts
|
1998-04-01 01:49:24 +00:00
|
|
|
|
1998-12-26 21:52:55 +00:00
|
|
|
MAN1= ja-netscape.1
|
1998-10-09 04:22:20 +00:00
|
|
|
MANLANG= ja
|
|
|
|
NO_BUILD= yes
|
1998-12-29 21:53:22 +00:00
|
|
|
PKGINSTALL= ${WRKDIR}/INSTALL
|
2000-03-26 19:59:48 +00:00
|
|
|
PLIST_SUB= BROWSER=${BROWSER_ARC} NSUBDIR=${NSUBDIR} LANG=${LANG} VER=${BROWSER_VER}
|
1998-10-09 04:22:20 +00:00
|
|
|
WRKSRC= ${WRKDIR}/netscape-ja_euc
|
1998-03-21 04:45:39 +00:00
|
|
|
|
1998-12-26 21:52:55 +00:00
|
|
|
BROWSER?= communicator
|
2000-03-26 19:59:48 +00:00
|
|
|
BROWSER_ARC?= ${BROWSER}
|
|
|
|
BROWSER_BIN?= ${BROWSER_ARC}-${BROWSER_VERSION}.bin
|
|
|
|
BROWSER_CMD?= ja-${BROWSER_ARC}-${BROWSER_VER}
|
|
|
|
BROWSER_VER?= 4
|
1998-12-26 21:52:55 +00:00
|
|
|
BROWSER_VERSION?= 4.08
|
1998-10-09 04:22:20 +00:00
|
|
|
LANG= ja_JP.EUC
|
1998-03-21 04:45:39 +00:00
|
|
|
MAKESCRIPT= ${SED} -e "s;@X11BASE@;${X11BASE};g" \
|
|
|
|
-e "s;@PREFIX@;${PREFIX};g" \
|
1998-10-09 04:22:20 +00:00
|
|
|
-e "s;@NDIR@;${NDIR};g" \
|
|
|
|
-e "s;@RDIR@;${NDIR};g" \
|
2000-03-26 19:59:48 +00:00
|
|
|
-e "s;@BROWSER@;${BROWSER_ARC}-${BROWSER_VERSION};g" \
|
1999-05-02 14:11:50 +00:00
|
|
|
-e "s;@BROWSER_BIN@;${BROWSER_BIN};g" \
|
1998-10-09 04:22:20 +00:00
|
|
|
-e "s;@LANG@;${LANG};g"
|
|
|
|
MANDIR= ${MANPREFIX}/man/${MANLANG}
|
1998-12-13 19:09:45 +00:00
|
|
|
NDIR= ${PREFIX}/${NSUBDIR}
|
|
|
|
NSUBDIR?= lib/netscape
|
1999-05-21 01:11:10 +00:00
|
|
|
NETHELP?= nethelp-v406
|
2000-03-26 19:59:48 +00:00
|
|
|
START_SCRIPT?= ${MASTERDIR}/files/start.sh.in
|
1999-05-21 01:11:10 +00:00
|
|
|
|
1998-10-09 04:22:20 +00:00
|
|
|
.SILENT:
|
1998-03-21 04:45:39 +00:00
|
|
|
|
1998-10-09 04:22:20 +00:00
|
|
|
do-configure:
|
2000-03-26 19:59:48 +00:00
|
|
|
${MAKESCRIPT} ${START_SCRIPT} >${WRKDIR}/start.sh
|
1999-07-26 16:26:54 +00:00
|
|
|
${MAKESCRIPT} ${WRKSRC}/Netscape.ad-ja_euc \
|
|
|
|
| ${SED} "s/-dt-interface system-medium-\*-\*-S\*-\*-\*-\*-\*-\*-\*-\*-\*:/-misc-fixed-medium-r-normal--14-\*-\*-\*-\*-\*-iso8859-1; -misc-fixed-medium-r-normal--14-*-*-*-*-*-jisx0208.1983-0; -misc-fixed-medium-r-normal--14-*-*-*-*-*-jisx0201.1976-0:/;" \
|
|
|
|
>${WRKDIR}/Netscape
|
1998-12-29 21:53:22 +00:00
|
|
|
${MAKESCRIPT} ${MASTERDIR}/files/INSTALL >${PKGINSTALL}
|
1999-06-24 20:10:55 +00:00
|
|
|
${CP} ${WRKSRC}/about ${WRKDIR}/about
|
1999-07-26 16:26:54 +00:00
|
|
|
.if (${BROWSER} == navigator)
|
|
|
|
${CP} ${WRKDIR}/Netscape ${WRKDIR}/Netscape.orig
|
|
|
|
${SED} "s/Communicator/Navigator/g" ${WRKDIR}/Netscape.orig \
|
|
|
|
> ${WRKDIR}/Netscape
|
|
|
|
${SED} "s/Communicator/Navigator/g" ${WRKSRC}/about \
|
|
|
|
> ${WRKDIR}/about
|
|
|
|
.endif
|
|
|
|
${CP} ${WRKDIR}/about ${WRKDIR}/splash
|
1998-03-21 04:45:39 +00:00
|
|
|
|
1998-10-09 04:22:20 +00:00
|
|
|
do-install:
|
2000-07-19 14:28:13 +00:00
|
|
|
${INSTALL_DATA} ${MASTERDIR}/files/preferences.js ${NDIR}/
|
1998-10-09 04:22:20 +00:00
|
|
|
${MKDIR} ${NDIR}/locale
|
|
|
|
${LN} -sf /usr/share/locale/en_US.ISO_8859-1 ${NDIR}/locale/${LANG}
|
|
|
|
${MKDIR} ${NDIR}/${LANG}
|
1999-05-22 21:37:03 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/netscape.cfg ${NDIR}/
|
|
|
|
.for f in mail.msg plugins
|
1998-10-09 04:22:20 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$f ${NDIR}/${LANG}/
|
1998-12-26 21:52:55 +00:00
|
|
|
.endfor
|
|
|
|
.for f in Netscape about splash
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/$f ${NDIR}/${LANG}/
|
1998-10-09 04:22:20 +00:00
|
|
|
.endfor
|
1999-05-21 01:11:10 +00:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKSRC}/${NETHELP}.nif \
|
1999-02-03 11:12:01 +00:00
|
|
|
${EXTRACT_AFTER_ARGS} -C ${NDIR}/${LANG}
|
1998-12-26 21:52:55 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/start.sh ${PREFIX}/bin/${BROWSER_CMD}
|
2000-05-08 19:20:36 +00:00
|
|
|
${LN} -sf ${BROWSER_CMD} ${PREFIX}/bin/netscape.run
|
1998-10-09 04:22:20 +00:00
|
|
|
${MKDIR} ${MANDIR}/man1
|
1999-06-24 20:10:55 +00:00
|
|
|
${INSTALL_MAN} ${MASTERDIR}/files/${MAN1} ${MANDIR}/man1
|
1998-03-21 04:45:39 +00:00
|
|
|
|
1998-12-29 21:53:22 +00:00
|
|
|
post-install:
|
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
1998-03-21 04:45:39 +00:00
|
|
|
.include <bsd.port.mk>
|