summaryrefslogtreecommitdiff
path: root/japanese/netscape48-communicator/Makefile
blob: 1dceaa3f335140fdfc2372bb6dd41ca4886b51d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# New ports collection makefile for: Netscape browser with Japanese resources
# Version required:	4.08
# Date created:		13 Mar 1998
# Whom:			sada@FreeBSD.ORG
#
# $Id: Makefile,v 1.22 1999/05/22 21:36:46 sada Exp $
#

DISTNAME=	ja-netscape-${BROWSER}-${BROWSER_VERSION}
CATEGORIES=	japanese www
MASTER_SITES=	${PORTKIT_SITES} \
		http://www.bres.tsukuba.ac.jp/~yohta/netscape/
DISTFILES=	${JAPANIZE_KIT} ${PORTKIT}

MAINTAINER=	sada@FreeBSD.ORG

# ?= for ports that include this Makefile
RUN_DEPENDS?=	${PREFIX}/bin/${BROWSER}-${BROWSER_VERSION}:${PORTSDIR}/www/netscape4-${BROWSER}
RUN_DEPENDS+=	${PKG_DBDIR}/ja-netscape-fonts-1.0:${PORTSDIR}/japanese/netscape-fonts

MAN1=		ja-netscape.1
MANLANG=	ja
NO_BUILD=	yes
PKGINSTALL=	${WRKDIR}/INSTALL
PLIST=		${.CURDIR}/pkg/PLIST
PLIST_SUB=	NSUBDIR=${NSUBDIR} LANG=${LANG}
WRKSRC=		${WRKDIR}/netscape-ja_euc
FILESDIR?=	${.CURDIR}/files

BROWSER?=	communicator
BROWSER_BIN?=	${BROWSER}-${BROWSER_VERSION}.bin
BROWSER_CMD?=	ja-${BROWSER}-4
BROWSER_VERSION?= 4.08
JAPANIZE_KIT?=	communicator-ja-euc-v407-export.generic-generic-generic.tar.gz
LANG=		ja_JP.EUC
MAKESCRIPT=	${SED} -e "s;@X11BASE@;${X11BASE};g" \
			-e "s;@PREFIX@;${PREFIX};g" \
			-e "s;@NDIR@;${NDIR};g" \
			-e "s;@RDIR@;${NDIR};g" \
			-e "s;@BROWSER@;${BROWSER}-${BROWSER_VERSION};g" \
			-e "s;@BROWSER_BIN@;${BROWSER_BIN};g" \
			-e "s;@LANG@;${LANG};g"
MANDIR=		${MANPREFIX}/man/${MANLANG}
NDIR=		${PREFIX}/${NSUBDIR}
NSUBDIR?=	lib/netscape
PORTKIT=	ja-netscape-portkit.1999.0613.tar.gz
PORTKIT_DIR=	${WRKDIR}/portkit
PORTKIT_SITES=	${MASTER_SITE_PORTS_JP} \
		http://WWW.FreeBSD.ORG/~sada/distfiles/
NETHELP?=	nethelp-v406

.SILENT:

do-configure:
	${MAKESCRIPT} ${PORTKIT_DIR}/start.sh.in >${WRKDIR}/start.sh
	${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

do-install:
	${INSTALL_DATA} ${PORTKIT_DIR}/preferences.js ${NDIR}
	${MKDIR} ${NDIR}/locale
	${LN} -sf /usr/share/locale/en_US.ISO_8859-1 ${NDIR}/locale/${LANG}
	${MKDIR} ${NDIR}/${LANG}
	${INSTALL_DATA} ${WRKSRC}/netscape.cfg ${NDIR}/
.for f in mail.msg plugins
	${INSTALL_DATA} ${WRKSRC}/$f ${NDIR}/${LANG}/
.endfor
.for f in Netscape about splash
	${INSTALL_DATA} ${WRKDIR}/$f ${NDIR}/${LANG}/
.endfor
	${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKSRC}/${NETHELP}.nif \
		${EXTRACT_AFTER_ARGS} -C ${NDIR}/${LANG}
	${INSTALL_SCRIPT} ${WRKDIR}/start.sh ${PREFIX}/bin/${BROWSER_CMD}
	${LN} -sf ${BROWSER_CMD} ${PREFIX}/bin/netscape
	${MKDIR} ${MANDIR}/man1
	${INSTALL_MAN} ${PORTKIT_DIR}/${MAN1} ${MANDIR}/man1

post-install:
	${SETENV} PKG_PREFIX=${PREFIX} \
		${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>