1998-03-21 04:45:39 +00:00
|
|
|
# New ports collection makefile for: Netscape browser with Japanese resources
|
1998-12-26 21:52:55 +00:00
|
|
|
# Version required: 4.08
|
1998-03-21 04:45:39 +00:00
|
|
|
# Date created: 13 Mar 1998
|
1998-12-26 21:52:55 +00:00
|
|
|
# Whom: sada@FreeBSD.ORG
|
1998-03-21 04:45:39 +00:00
|
|
|
#
|
1999-03-20 17:32:24 +00:00
|
|
|
# $Id: Makefile,v 1.15 1999/02/03 11:11:48 asami Exp $
|
1998-03-21 04:45:39 +00:00
|
|
|
#
|
|
|
|
|
1998-12-26 21:52:55 +00:00
|
|
|
DISTNAME= ja-netscape-${BROWSER}-${BROWSER_VERSION}
|
1998-03-21 04:45:39 +00:00
|
|
|
CATEGORIES= japanese www
|
1998-11-24 15:09:10 +00:00
|
|
|
MASTER_SITES= http://www.bres.tsukuba.ac.jp/~yohta/netscape/ \
|
1998-12-26 21:52:55 +00:00
|
|
|
${PORTKIT_SITES}
|
|
|
|
DISTFILES= ${JAPANIZE_KIT} ${PORTKIT}
|
1998-03-21 04:45:39 +00:00
|
|
|
|
1998-11-24 15:09:10 +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
|
|
|
|
RUN_DEPENDS?= ${PREFIX}/bin/${BROWSER}-${BROWSER_VERSION}:${PORTSDIR}/www/netscape4-${BROWSER} \
|
1998-12-26 21:52:55 +00:00
|
|
|
${FONT_DEPEND}
|
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
|
1998-12-26 21:52:55 +00:00
|
|
|
PLIST= ${.CURDIR}/pkg/PLIST
|
|
|
|
PLIST_SUB= NSUBDIR=${NSUBDIR} LANG=${LANG}
|
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
|
|
|
|
BROWSER_CMD?= ja-${BROWSER}-4
|
|
|
|
BROWSER_VERSION?= 4.08
|
|
|
|
FONT_DEPEND= ${PKG_DBDIR}/ja-netscape-fonts-1.0:${PORTSDIR}/japanese/netscape-fonts
|
1998-12-13 19:09:45 +00:00
|
|
|
JAPANIZE_KIT?= communicator-ja-euc-v407-export.generic-generic-generic.tar.gz
|
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" \
|
1998-12-26 21:52:55 +00:00
|
|
|
-e "s;@BROWSER@;${BROWSER}-${BROWSER_VERSION};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-03-20 17:32:24 +00:00
|
|
|
PORTKIT= ja-netscape-portkit.1999.0320.tar.gz
|
1998-12-26 21:52:55 +00:00
|
|
|
PORTKIT_DIR= ${WRKDIR}/portkit
|
|
|
|
PORTKIT_SITES= http://WWW.JP.FreeBSD.ORG/~sada/distfiles/ \
|
1998-12-13 19:09:45 +00:00
|
|
|
http://WWW.FreeBSD.ORG/~sada/distfiles/
|
1998-03-21 04:45:39 +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:
|
1998-12-26 21:52:55 +00:00
|
|
|
${MAKESCRIPT} ${PORTKIT_DIR}/start.sh.in >${WRKDIR}/start.sh
|
1998-12-29 21:53:22 +00:00
|
|
|
${MAKESCRIPT} ${PORTKIT_DIR}/Netscape.${BROWSER}-${BROWSER_VERSION} \
|
|
|
|
>${WRKDIR}/Netscape
|
|
|
|
${MAKESCRIPT} ${MASTERDIR}/files/INSTALL >${PKGINSTALL}
|
|
|
|
${CP} ${PORTKIT_DIR}/about.${BROWSER}-${BROWSER_VERSION} ${WRKDIR}/about
|
|
|
|
${CP} ${WRKDIR}/about ${WRKDIR}/splash
|
1998-03-21 04:45:39 +00:00
|
|
|
|
1998-10-09 04:22:20 +00:00
|
|
|
do-install:
|
1998-12-26 21:52:55 +00:00
|
|
|
${INSTALL_DATA} ${PORTKIT_DIR}/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}
|
1998-12-26 21:52:55 +00:00
|
|
|
.for f in mail.msg netscape.cfg 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
|
1998-11-16 19:52:58 +00:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKSRC}/nethelp-v406.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}
|
|
|
|
${LN} -sf ${BROWSER_CMD} ${PREFIX}/bin/netscape
|
1998-10-09 04:22:20 +00:00
|
|
|
${MKDIR} ${MANDIR}/man1
|
1998-12-26 21:52:55 +00:00
|
|
|
${INSTALL_MAN} ${PORTKIT_DIR}/${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>
|