1998-12-13 23:00:41 +01:00
|
|
|
# New ports collection makefile for: Netscape browser with Korean resources
|
|
|
|
# Date created: 25 Oct 1998
|
1999-08-25 01:04:06 +02:00
|
|
|
# Whom: CHOI Junho <cjh@kr.freebsd.org>
|
1997-06-04 10:53:13 +02:00
|
|
|
#
|
1999-08-30 14:09:14 +02:00
|
|
|
# $FreeBSD$
|
1997-06-04 10:53:13 +02:00
|
|
|
#
|
1998-12-13 23:00:41 +01:00
|
|
|
# based on japanese/netscape4-*
|
1997-06-04 10:53:13 +02:00
|
|
|
|
2000-06-25 15:22:40 +02:00
|
|
|
PORTNAME= netscape-${BROWSER_ARC}
|
2000-04-13 11:17:26 +02:00
|
|
|
PORTVERSION= ${BROWSER_VERSION}
|
1997-06-04 10:53:13 +02:00
|
|
|
CATEGORIES= korean www
|
1999-08-25 01:04:06 +02:00
|
|
|
MASTER_SITES= ftp://ftp.kr.freebsd.org/pub/users/cjh/netscape-ko/ \
|
|
|
|
http://www.kr.freebsd.org/~cjh/freetime/mozilla/netscape-ko/
|
2000-07-15 15:41:49 +02:00
|
|
|
DISTNAME= ${KOREAN_KIT}
|
1997-06-04 10:53:13 +02:00
|
|
|
|
2000-06-25 15:22:40 +02:00
|
|
|
MAINTAINER?= cjh@FreeBSD.org
|
1997-06-04 10:53:13 +02:00
|
|
|
|
1999-08-25 01:04:06 +02:00
|
|
|
# ?= for ports that include this Makefile
|
2001-08-19 10:33:28 +02:00
|
|
|
RUN_DEPENDS?= ${LOCALBASE}/bin/${BROWSER_ARC}-${BROWSER_VERSION}:${PORTSDIR}/www/netscape${BROWSER_VER}-${BROWSER_NAME}
|
2000-11-05 03:46:20 +01:00
|
|
|
RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/local/gulim12.pcf.gz:${PORTSDIR}/korean/baekmukfonts-bdf
|
1997-06-04 10:53:13 +02:00
|
|
|
|
1998-11-21 21:11:02 +01:00
|
|
|
NO_BUILD= yes
|
1999-08-25 01:04:06 +02:00
|
|
|
PKGINSTALL= ${WRKDIR}/INSTALL
|
2000-06-25 15:22:40 +02:00
|
|
|
PLIST_SUB= NSUBDIR=${NSUBDIR} LANG=${LANG} \
|
|
|
|
BROWSER=${BROWSER_ARC} VER=${BROWSER_VER}
|
1999-08-25 01:04:06 +02:00
|
|
|
NDIR= ${PREFIX}/${NSUBDIR}
|
|
|
|
NSUBDIR?= lib/netscape
|
|
|
|
|
|
|
|
# should be changed by versions
|
2001-08-19 10:33:28 +02:00
|
|
|
BROWSER_NAME?= communicator
|
|
|
|
BROWSER_ARC?= ${BROWSER_NAME}
|
2000-06-25 15:22:40 +02:00
|
|
|
BROWSER_BIN?= ${BROWSER_ARC}-${BROWSER_VERSION}.bin
|
|
|
|
BROWSER_CMD?= ko-${BROWSER_ARC}-${BROWSER_VER}
|
|
|
|
BROWSER_VER?= 4
|
1999-08-25 01:04:06 +02:00
|
|
|
BROWSER_VERSION?= 4.08
|
2000-06-25 15:22:40 +02:00
|
|
|
|
|
|
|
# for old version(<4.5), font name substitution required.
|
|
|
|
# newer version use baekmuk-gulim should not be affected.
|
2000-01-29 23:45:32 +01:00
|
|
|
PREVFONTNAME= kodig
|
|
|
|
NEWFONTNAME= gulim
|
2000-06-25 15:22:40 +02:00
|
|
|
|
1999-08-25 01:04:06 +02:00
|
|
|
KOREAN_KIT?= netscape-v408.generic-generic-generic-19990612
|
1998-12-13 23:00:41 +01:00
|
|
|
|
2000-06-25 15:22:40 +02:00
|
|
|
NETHELP?= nethelp-v403
|
|
|
|
START_SCRIPT?= ${MASTERDIR}/files/start.sh.in
|
2000-07-15 15:41:49 +02:00
|
|
|
ADDXRESOURCE?= ${MASTERDIR}/files/xresource.ad
|
2000-06-25 15:22:40 +02:00
|
|
|
|
1998-12-13 23:00:41 +01: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" \
|
2000-06-25 15:22:40 +02:00
|
|
|
-e "s;@BROWSER@;${BROWSER_ARC}-${BROWSER_VERSION};g" \
|
1999-08-25 01:04:06 +02:00
|
|
|
-e "s;@BROWSER_BIN@;${BROWSER_BIN};g" \
|
2000-01-29 23:45:32 +01:00
|
|
|
-e "s;@LANG@;${LANG};g" \
|
|
|
|
-e "s;-${PREVFONTNAME}-;-${NEWFONTNAME}-;g"
|
1998-12-13 23:00:41 +01:00
|
|
|
|
1999-08-25 01:04:06 +02:00
|
|
|
.if ${BROWSER_VERSION} == 4.08
|
|
|
|
DIST_SUBDIR= korean-netscape
|
|
|
|
.endif
|
|
|
|
|
1998-12-13 23:00:41 +01:00
|
|
|
.SILENT:
|
1998-11-21 21:11:02 +01:00
|
|
|
|
|
|
|
do-configure:
|
2000-06-25 15:22:40 +02:00
|
|
|
${MAKESCRIPT} ${START_SCRIPT} >${WRKDIR}/start.sh
|
2000-07-15 15:41:49 +02:00
|
|
|
# add FreeBSD-specific resource
|
|
|
|
${MAKESCRIPT} ${WRKSRC}/Netscape.ad-ko >${WRKSRC}/Netscape.2.ad
|
|
|
|
${CAT} ${WRKSRC}/Netscape.2.ad ${ADDXRESOURCE} \
|
|
|
|
> ${WRKSRC}/Netscape
|
1999-08-25 01:04:06 +02:00
|
|
|
${MAKESCRIPT} ${FILESDIR}/INSTALL >${PKGINSTALL}
|
|
|
|
# make navigator resource
|
2001-08-19 10:33:28 +02:00
|
|
|
.if defined(BROWSER_NAME) && ${BROWSER_NAME} == navigator
|
1999-08-25 01:04:06 +02:00
|
|
|
${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 21:11:02 +01:00
|
|
|
do-install:
|
2000-06-25 15:22:40 +02:00
|
|
|
${INSTALL_DATA} ${MASTERDIR}/files/preferences.js ${NDIR}
|
1998-12-13 23:00:41 +01:00
|
|
|
${MKDIR} ${NDIR}/locale
|
|
|
|
${LN} -sf /usr/share/locale/en_US.ISO_8859-1 ${NDIR}/locale/${LANG}
|
|
|
|
${MKDIR} ${NDIR}/${LANG}
|
1999-08-25 01:04:06 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/netscape.cfg ${NDIR}/
|
|
|
|
.for f in Netscape mail.msg plugins LICENSE.ko
|
1998-12-13 23:00:41 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$f ${NDIR}/${LANG}/
|
1999-08-25 01:04:06 +02:00
|
|
|
.endfor
|
|
|
|
.for f in about splash
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/$f ${NDIR}/${LANG}/
|
1998-12-13 23:00:41 +01:00
|
|
|
.endfor
|
2000-06-25 15:22:40 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/start.sh ${PREFIX}/bin/${BROWSER_CMD}
|
|
|
|
${LN} -sf ${BROWSER_CMD} ${PREFIX}/bin/netscape.run
|
1999-08-25 01:04:06 +02:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKSRC}/${NETHELP}.nif \
|
|
|
|
${EXTRACT_AFTER_ARGS} -C ${NDIR}/${LANG}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1997-06-04 10:53:13 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|