mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-29 21:39:24 +00:00
104 lines
3.2 KiB
Makefile
104 lines
3.2 KiB
Makefile
# New ports collection makefile for: Netscape browser with Korean resources
|
|
# Date created: 25 Oct 1998
|
|
# Whom: CHOI Junho <cjh@kr.freebsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# based on japanese/netscape4-*
|
|
|
|
PORTNAME= netscape-${BROWSER_ARC}
|
|
PORTVERSION= ${BROWSER_VERSION}
|
|
CATEGORIES= korean www
|
|
MASTER_SITES= ftp://ftp.kr.freebsd.org/pub/users/cjh/netscape-ko/ \
|
|
http://www.kr.freebsd.org/~cjh/freetime/mozilla/netscape-ko/
|
|
DISTNAME= ${KOREAN_KIT}
|
|
|
|
MAINTAINER?= cjh@FreeBSD.org
|
|
|
|
# ?= for ports that include this Makefile
|
|
RUN_DEPENDS?= ${LOCALBASE}/bin/${BROWSER_ARC}-${BROWSER_VERSION}:${PORTSDIR}/www/netscape${BROWSER_VER}-${BROWSER}
|
|
RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/local/gulim12.pcf.gz:${PORTSDIR}/korean/baekmukfonts-bdf
|
|
|
|
NO_BUILD= yes
|
|
PKGINSTALL= ${WRKDIR}/INSTALL
|
|
PLIST_SUB= NSUBDIR=${NSUBDIR} LANG=${LANG} \
|
|
BROWSER=${BROWSER_ARC} VER=${BROWSER_VER}
|
|
NDIR= ${PREFIX}/${NSUBDIR}
|
|
NSUBDIR?= lib/netscape
|
|
|
|
# should be changed by versions
|
|
BROWSER?= communicator
|
|
BROWSER_ARC?= ${BROWSER}
|
|
BROWSER_BIN?= ${BROWSER_ARC}-${BROWSER_VERSION}.bin
|
|
BROWSER_CMD?= ko-${BROWSER_ARC}-${BROWSER_VER}
|
|
BROWSER_VER?= 4
|
|
BROWSER_VERSION?= 4.08
|
|
|
|
# for old version(<4.5), font name substitution required.
|
|
# newer version use baekmuk-gulim should not be affected.
|
|
PREVFONTNAME= kodig
|
|
NEWFONTNAME= gulim
|
|
|
|
KOREAN_KIT?= netscape-v408.generic-generic-generic-19990612
|
|
|
|
NETHELP?= nethelp-v403
|
|
START_SCRIPT?= ${MASTERDIR}/files/start.sh.in
|
|
ADDXRESOURCE?= ${MASTERDIR}/files/xresource.ad
|
|
|
|
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_ARC}-${BROWSER_VERSION};g" \
|
|
-e "s;@BROWSER_BIN@;${BROWSER_BIN};g" \
|
|
-e "s;@LANG@;${LANG};g" \
|
|
-e "s;-${PREVFONTNAME}-;-${NEWFONTNAME}-;g"
|
|
|
|
.if ${BROWSER_VERSION} == 4.08
|
|
DIST_SUBDIR= korean-netscape
|
|
.endif
|
|
|
|
.SILENT:
|
|
|
|
do-configure:
|
|
${MAKESCRIPT} ${START_SCRIPT} >${WRKDIR}/start.sh
|
|
# add FreeBSD-specific resource
|
|
${MAKESCRIPT} ${WRKSRC}/Netscape.ad-ko >${WRKSRC}/Netscape.2.ad
|
|
${CAT} ${WRKSRC}/Netscape.2.ad ${ADDXRESOURCE} \
|
|
> ${WRKSRC}/Netscape
|
|
${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
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${MASTERDIR}/files/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 Netscape mail.msg plugins LICENSE.ko
|
|
${INSTALL_DATA} ${WRKSRC}/$f ${NDIR}/${LANG}/
|
|
.endfor
|
|
.for f in about splash
|
|
${INSTALL_DATA} ${WRKDIR}/$f ${NDIR}/${LANG}/
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${WRKDIR}/start.sh ${PREFIX}/bin/${BROWSER_CMD}
|
|
${LN} -sf ${BROWSER_CMD} ${PREFIX}/bin/netscape.run
|
|
${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
|
|
|
|
.include <bsd.port.mk>
|