1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/chinese/firefox-zh_CN/Makefile
Yen-Ming Lee fade6a04d8 - drop maintainership
PR:		85803
Submitted by:	chinsan <chinsan.tw@gmail.com>
2005-09-06 17:32:09 +00:00

69 lines
2.0 KiB
Makefile

# New ports collection makefile for: zh-firefox-zh_CN
# Date created: 2005/06/25
# Whom: chinsan <chinsan.tw@gmail.com>
#
# $FreeBSD$
#
PORTNAME= firefox
PORTVERSION= 1.0.6
PORTREVISION= 1
CATEGORIES= chinese www
MASTER_SITES= http://bbs.ilc.edu.tw/~chinsan/firefox/
PKGNAMESUFFIX= -zh_CN
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}.${PORTVERSION}b
MAINTAINER= ports@FreeBSD.org
COMMENT= Firefox Simplified Chinese(zh-CN) Language Pack
BUILD_DEPENDS= ${X11BASE}/lib/${FIREFOX}/regxpcom:${PORTSDIR}/www/firefox
RUN_DEPENDS= ${FIREFOX}:${PORTSDIR}/www/firefox
USE_X_PREFIX= yes
NO_BUILD= yes
FIREFOX= ${PORTNAME}
FIREFOX_HOME= ${PREFIX}/lib/${FIREFOX}
REGXPCOM= ${FIREFOX_HOME}/regxpcom
REGCHROME= ${FIREFOX_HOME}/regchrome
FIREFOX_BIN= ${FIREFOX_HOME}/${PORTNAME}-bin
PLIST_SUB= FIREFOX=${FIREFOX}
.include <bsd.port.pre.mk>
do-install:
@${ECHO_MSG} "===> Backup setting files..."
(cd ${FIREFOX_HOME}; \
${MV} -f browserconfig.properties browserconfig.properties.orig)
(cd ${FIREFOX_HOME}/defaults/pref; \
${MV} -f firefox-l10n.js firefox-l10n.js.orig)
(cd ${FIREFOX_HOME}/defaults/profile; \
${MV} -f bookmarks.html bookmarks.html.orig)
(cd ${FIREFOX_HOME}/chrome; \
${MV} -f browser.jar browser.jar.orig; \
${MV} -f chrome.rdf chrome.rdf.orig; \
${MV} -f installed-chrome.txt installed-chrome.txt.orig)
@${ECHO_MSG} "===> Copying locale files..."
(cd ${WRKSRC}; ${TAR} -cf - *) | \
${TAR} -xf - -C ${FIREFOX_HOME}
@${ECHO_MSG} "===> Cleaning Chrome's registry..."
${RM} -rf ${FIREFOX_HOME}/chrome/overlayinfo
${RM} -f ${FIREFOX_HOME}/chrome/*.rdf
${MKDIR} ${FIREFOX_HOME}/chrome/overlayinfo
${RM} -f ${FIREFOX_HOME}/component.reg
${RM} -rf ${FIREFOX_HOME}/extensions
@${ECHO_MSG} "===> Building Chrome's registry..."
(cd ${FIREFOX_HOME} || exit 1 ; \
./run-mozilla.sh ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. \
${REGXPCOM} || true ; \
./run-mozilla.sh ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. \
${REGCHROME} || true ; \
./run-mozilla.sh ${FIREFOX_BIN} -register )
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>