2000-10-29 14:19:38 +00:00
|
|
|
# New ports collection makefile for: ja-mozilla-jlp
|
|
|
|
# Date created: 02 Jul 2000
|
|
|
|
# Whom: Yoichi ASAI <yatt@msc.biglobe.ne.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mozilla
|
|
|
|
PORTVERSION= M18
|
2000-10-30 13:37:12 +00:00
|
|
|
PORTREVISION= 1
|
2000-10-29 14:19:38 +00:00
|
|
|
CATEGORIES= japanese www
|
|
|
|
MASTER_SITES= http://www.mozilla.gr.jp/jlp/ \
|
|
|
|
http://mozilla.inmel.net/
|
|
|
|
PKGNAMESUFFIX= -jlp
|
|
|
|
DISTNAME= ${PORTVERSION}-langjajp
|
|
|
|
EXTRACT_SUFX= .xpi
|
|
|
|
|
|
|
|
MAINTAINER= yatt@msc.biglobe.ne.jp
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${X11BASE}/lib/mozilla/regxpcom:${PORTSDIR}/www/mozilla
|
|
|
|
RUN_DEPENDS= mozilla:${PORTSDIR}/www/mozilla \
|
|
|
|
${PKG_DBDIR}/ja-netscape-fonts-1.0:${PORTSDIR}/japanese/netscape-fonts
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/bin
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_ZIP= yes
|
|
|
|
EXTRACT_BEFORE_ARGS= -qo
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400020
|
|
|
|
MOZILLA_SH= mozilla.noxpg4
|
|
|
|
.else
|
|
|
|
MOZILLA_SH= mozilla.xpg4
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
find ${WRKSRC} -type d -exec ${CHMOD} 755 {} \;
|
|
|
|
${MKDIR} ${WRKSRC}/defaults/pref
|
|
|
|
${CP} ${FILESDIR}/all.js ${WRKSRC}/defaults/pref
|
|
|
|
${CP} ${FILESDIR}/unix.js ${WRKSRC}/defaults/pref
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${SED} -e "s;@PREFIX@;${PREFIX};g" \
|
|
|
|
${FILESDIR}/${MOZILLA_SH} > ${WRKDIR}/mozilla
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
(cd ${PREFIX}/lib/mozilla/chrome; \
|
|
|
|
${MV} all-locales.rdf all-locales.rdf.orig; \
|
|
|
|
${MV} user-locales.rdf user-locales.rdf.orig; \
|
|
|
|
${MV} installed-chrome.txt installed-chrome.txt.orig)
|
|
|
|
(cd ${PREFIX}/lib/mozilla/defaults/pref; \
|
|
|
|
${MV} all.js all.js.orig; ${MV} unix.js unix.js.orig)
|
|
|
|
${MV} ${PREFIX}/bin/mozilla ${PREFIX}/bin/mozilla.orig
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/mozilla ${PREFIX}/bin
|
|
|
|
(cd ${WRKSRC}; ${TAR} -cf - chrome defaults searchplugins) | \
|
|
|
|
${TAR} -xf - -C ${PREFIX}/lib/mozilla
|
|
|
|
(cd ${PREFIX}/lib/mozilla/chrome; \
|
|
|
|
${CP} installed-chrome.txt.orig installed-chrome.txt; \
|
|
|
|
${CAT} ${FILESDIR}/installed-chrome.txt >> installed-chrome.txt)
|
|
|
|
(cd ${PREFIX}/lib/mozilla; \
|
2000-10-30 04:38:42 +00:00
|
|
|
${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \
|
|
|
|
${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome)
|
2000-10-29 14:19:38 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|