freebsd-ports/chinese/mozilla-tclp/Makefile
2001-08-31 12:44:56 +00:00

58 lines
1.7 KiB
Makefile

# New ports collection makefile for: zh-mozilla-tclp
# Date created: 07 March 2001
# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
#
# $FreeBSD$
#
BROKEN= "out of sync with mozilla."
PORTNAME= mozilla
PORTVERSION= 0.9.1
CATEGORIES= chinese www
MASTER_SITES= http://www.csie.ntu.edu.tw/~b7506051/mt4/langpack/
PKGNAMESUFFIX= -tclp
# Same as ftp://ftp.mozilla.org/pub/mozilla/l10n/lang/moz0.81/langzhtw.xpi.
# Use this to avoid checksum problems.
DISTNAME= 0.9.1-0615-RELEASE-langzhtw
EXTRACT_SUFX= .xpi
MAINTAINER= keith@FreeBSD.org
RUN_DEPENDS= mozilla:${PORTSDIR}/www/mozilla
WRKSRC= ${WRKDIR}/bin
USE_X_PREFIX= yes
USE_ZIP= yes
EXTRACT_BEFORE_ARGS= -qo
.include <bsd.port.pre.mk>
do-build:
${SED} -e "s;@PREFIX@;${PREFIX};g" \
${FILESDIR}/mozilla.in > ${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} unix.js unix.js.orig)
${MV} ${PREFIX}/bin/mozilla ${PREFIX}/bin/mozilla.orig
${INSTALL_SCRIPT} ${WRKDIR}/mozilla ${PREFIX}/bin
(cd ${PREFIX}/lib/mozilla/chrome; \
${CP} installed-chrome.txt.orig installed-chrome.txt; \
${CAT} ${FILESDIR}/installed-chrome.txt >> installed-chrome.txt)
${INSTALL_DATA} ${FILESDIR}/all-locales.rdf \
${PREFIX}/lib/mozilla/chrome;
${INSTALL_DATA} ${FILESDIR}/user-locales.rdf \
${PREFIX}/lib/mozilla/chrome;
${INSTALL_DATA} ${WRKSRC}/chrome/zh-TW.jar \
${PREFIX}/lib/mozilla/chrome;
${INSTALL_DATA} ${WRKSRC}/chrome/zh-unix.jar \
${PREFIX}/lib/mozilla/chrome;
${INSTALL_DATA} ${FILESDIR}/unix.js ${PREFIX}/lib/mozilla/defaults/pref
.include <bsd.port.post.mk>