1998-12-13 17:00:41 -05:00
|
|
|
# New ports collection makefile for: Netscape browser with Korean resources
|
1999-08-24 19:04:06 -04:00
|
|
|
# Version required: 4
|
1998-12-13 17:00:41 -05:00
|
|
|
# Date created: 25 Oct 1998
|
1999-08-24 19:04:06 -04:00
|
|
|
# Whom: CHOI Junho <cjh@kr.freebsd.org>
|
1997-06-04 04:53:13 -04:00
|
|
|
#
|
1999-08-30 08:09:14 -04:00
|
|
|
# $FreeBSD$
|
1997-06-04 04:53:13 -04:00
|
|
|
#
|
1998-12-13 17:00:41 -05:00
|
|
|
# based on japanese/netscape4-*
|
1997-06-04 04:53:13 -04:00
|
|
|
|
1999-08-24 19:04:06 -04:00
|
|
|
DISTNAME= ko-netscape-${BROWSER}-${BROWSER_VERSION}
|
1997-06-04 04:53:13 -04:00
|
|
|
CATEGORIES= korean www
|
1999-08-24 19:04:06 -04:00
|
|
|
MASTER_SITES= ftp://ftp.kr.freebsd.org/pub/users/cjh/netscape-ko/ \
|
|
|
|
http://www.kr.freebsd.org/~cjh/freetime/mozilla/netscape-ko/
|
1999-02-12 09:44:56 -05:00
|
|
|
DISTFILES= ${KOREAN_KIT}.tar.gz
|
1997-06-04 04:53:13 -04:00
|
|
|
|
1999-08-24 19:04:06 -04:00
|
|
|
MAINTAINER?= cjh@kr.freebsd.org
|
1997-06-04 04:53:13 -04:00
|
|
|
|
1999-08-24 19:04:06 -04:00
|
|
|
# ?= for ports that include this Makefile
|
|
|
|
RUN_DEPENDS?= ${PREFIX}/bin/${BROWSER}-${BROWSER_VERSION}:${PORTSDIR}/www/netscape4-${BROWSER}
|
|
|
|
RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/local/hgm12.pcf.gz:${PORTSDIR}/korean/hanyangfonts \
|
|
|
|
${X11BASE}/lib/X11/fonts/local/mzgt16h1.pcf.gz:${PORTSDIR}/korean/mizifont
|
1997-06-04 04:53:13 -04:00
|
|
|
|
1998-11-21 15:11:02 -05:00
|
|
|
NO_BUILD= yes
|
1999-08-24 19:04:06 -04:00
|
|
|
PKGINSTALL= ${WRKDIR}/INSTALL
|
|
|
|
PLIST= ${.CURDIR}/pkg/PLIST
|
|
|
|
PLIST_SUB= NSUBDIR=${NSUBDIR} LANG=${LANG}
|
1999-02-12 09:44:56 -05:00
|
|
|
WRKSRC= ${WRKDIR}/${KOREAN_KIT}
|
1999-08-24 19:04:06 -04:00
|
|
|
NDIR= ${PREFIX}/${NSUBDIR}
|
|
|
|
NSUBDIR?= lib/netscape
|
|
|
|
FILESDIR?= ${.CURDIR}/files
|
|
|
|
|
|
|
|
# should be changed by versions
|
|
|
|
BROWSER?= communicator
|
|
|
|
BROWSER_BIN?= ${BROWSER}-${BROWSER_VERSION}.bin
|
|
|
|
BROWSER_CMD?= ko-${BROWSER}-4
|
|
|
|
BROWSER_VERSION?= 4.08
|
|
|
|
NETHELP?= nethelp-v403
|
|
|
|
KOREAN_KIT?= netscape-v408.generic-generic-generic-19990612
|
1998-12-13 17:00:41 -05:00
|
|
|
|
|
|
|
LANG= ko_KR.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};g" \
|
1999-08-24 19:04:06 -04:00
|
|
|
-e "s;@BROWSER_BIN@;${BROWSER_BIN};g" \
|
1998-12-13 17:00:41 -05:00
|
|
|
-e "s;@LANG@;${LANG};g"
|
|
|
|
TAR= /usr/bin/tar
|
|
|
|
|
1999-08-24 19:04:06 -04:00
|
|
|
.if ${BROWSER_VERSION} == 4.08
|
|
|
|
DIST_SUBDIR= korean-netscape
|
|
|
|
.endif
|
|
|
|
|
1998-12-13 17:00:41 -05:00
|
|
|
.SILENT:
|
1998-11-21 15:11:02 -05:00
|
|
|
|
|
|
|
do-configure:
|
1998-12-13 17:00:41 -05:00
|
|
|
${MAKESCRIPT} ${FILESDIR}/start.sh.in >${WRKDIR}/start.sh
|
|
|
|
${MAKESCRIPT} ${WRKSRC}/Netscape.ad-ko >${WRKSRC}/Netscape
|
1999-08-24 19:04:06 -04:00
|
|
|
${MAKESCRIPT} ${FILESDIR}/INSTALL >${PKGINSTALL}
|
|
|
|
# make navigator resource
|
|
|
|
.if defined(BROWSER) && ${BROWSER} == navigator
|
|
|
|
${SED} -e "s;Communicator;Navigator;g" \
|
|
|
|
${WRKSRC}/about > ${WRKDIR}/about
|
|
|
|
${SED} -e "s;Communicator;Navigator;g" \
|
|
|
|
${WRKSRC}/splash > ${WRKDIR}/splash
|
|
|
|
.else
|
|
|
|
${CP} ${WRKSRC}/about ${WRKDIR}/about
|
|
|
|
${CP} ${WRKSRC}/splash ${WRKDIR}/splash
|
|
|
|
.endif
|
|
|
|
|
1998-11-21 15:11:02 -05:00
|
|
|
|
|
|
|
do-install:
|
1998-12-13 17:00:41 -05:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/preferences.js ${NDIR}
|
|
|
|
${MKDIR} ${NDIR}/locale
|
|
|
|
${LN} -sf /usr/share/locale/en_US.ISO_8859-1 ${NDIR}/locale/${LANG}
|
|
|
|
${MKDIR} ${NDIR}/${LANG}
|
1999-08-24 19:04:06 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/netscape.cfg ${NDIR}/
|
|
|
|
.for f in Netscape mail.msg plugins LICENSE.ko
|
1998-12-13 17:00:41 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$f ${NDIR}/${LANG}/
|
1999-08-24 19:04:06 -04:00
|
|
|
.endfor
|
|
|
|
.for f in about splash
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/$f ${NDIR}/${LANG}/
|
1998-12-13 17:00:41 -05:00
|
|
|
.endfor
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/start.sh ${PREFIX}/bin/ko-${BROWSER}
|
|
|
|
${LN} -sf ko-${BROWSER} ${PREFIX}/bin/netscape
|
1999-08-24 19:04:06 -04:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKSRC}/${NETHELP}.nif \
|
|
|
|
${EXTRACT_AFTER_ARGS} -C ${NDIR}/${LANG}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/start.sh ${PREFIX}/bin/${BROWSER_CMD}
|
|
|
|
${TAR} -C ${NDIR}/${LANG} -x -z -v -f ${WRKSRC}/${NETHELP}.nif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1997-06-04 04:53:13 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|