diff options
Diffstat (limited to 'chinese/mozilla-tclp/Makefile')
-rw-r--r-- | chinese/mozilla-tclp/Makefile | 56 |
1 files changed, 39 insertions, 17 deletions
diff --git a/chinese/mozilla-tclp/Makefile b/chinese/mozilla-tclp/Makefile index 15a112fee5f7..4a2ec4be665f 100644 --- a/chinese/mozilla-tclp/Makefile +++ b/chinese/mozilla-tclp/Makefile @@ -4,19 +4,25 @@ # # $FreeBSD$ # +# If this version is out-of-date, please visit +# http://www.csie.ntu.edu.tw/~b7506051/mozilla/ +# And just download and install there. PORTNAME= mozilla -PORTVERSION= 0.9.6 +PORTVERSION= 0.9.8 +PORTREVISION= 1 +PORTEPOCH= 1 CATEGORIES= chinese www -MASTER_SITES= http://www.csie.ntu.edu.tw/~b7506051/mt4/langpack/ +MASTER_SITES= http://www.csie.ntu.edu.tw/~b7506051/mozilla/langpack/ PKGNAMESUFFIX= -tclp -# Same as ftp://ftp.mozilla.org/pub/mozilla/l10n/lang/moz0.96/langzhtw.xpi. +# Same as ftp://ftp.mozilla.org/pub/mozilla/l10n/lang/moz0.98/langzhtw.xpi. # Use this to avoid checksum problems. -DISTNAME= langzhtw-0.9.6-1122 +DISTNAME= langzhtw-0.9.8-0305 EXTRACT_SUFX= .xpi MAINTAINER= piaip@csie.ntu.edu.tw +BUILD_DEPENDS= ${X11BASE}/lib/mozilla/regxpcom:${PORTSDIR}/www/mozilla RUN_DEPENDS= mozilla:${PORTSDIR}/www/mozilla WRKSRC= ${WRKDIR}/bin @@ -27,27 +33,43 @@ EXTRACT_BEFORE_ARGS= -qo .include <bsd.port.pre.mk> +.if ${OSVERSION} >= 400020 +MOZILLA_SH= mozilla.noxpg4 +.else +MOZILLA_SH= mozilla.xpg4 +.endif + +post-extract: + ${MKDIR} ${WRKSRC}/defaults/pref + ${CP} ${FILESDIR}/unix.js ${WRKSRC}/defaults/pref + ${CHMOD} -R a+rX ${WRKSRC} + do-build: ${SED} -e "s;@PREFIX@;${PREFIX};g" \ - ${FILESDIR}/mozilla.in > ${WRKDIR}/mozilla + ${FILESDIR}/${MOZILLA_SH} > ${WRKDIR}/mozilla do-install: + (cd ${PREFIX}/lib/mozilla; \ + ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \ + ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome) (cd ${PREFIX}/lib/mozilla/chrome; \ - ${MV} -f all-locales.rdf all-locales.rdf.orig; \ - ${MV} -f user-locales.rdf user-locales.rdf.orig; \ - ${MV} installed-chrome.txt installed-chrome.txt.orig) - ${MV} ${PREFIX}/bin/mozilla ${PREFIX}/bin/mozilla.orig + ${MV} -f chrome.rdf chrome.rdf.orig; \ + ${MV} -f installed-chrome.txt installed-chrome.txt.orig) + (cd ${PREFIX}/lib/mozilla/defaults/pref; \ + ${MV} -f unix.js unix.js.orig) + (cd ${PREFIX}/lib/mozilla/searchplugins; \ + ${MV} -f google.gif google.gif.orig; \ + ${MV} -f google.src google.src.orig) + ${MV} -f ${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) - ${INSTALL_DATA} ${WRKSRC}/chrome/zh-TW.jar \ - ${PREFIX}/lib/mozilla/chrome; - ${INSTALL_DATA} ${WRKSRC}/chrome/zh-unix.jar \ - ${PREFIX}/lib/mozilla/chrome; - ${INSTALL_DATA} ${WRKSRC}/chrome/TW.jar \ - ${PREFIX}/lib/mozilla/chrome; - # "===> Registering Language Pack for Mozilla..."; - ${PREFIX}/bin/mozilla -v; + (cd ${PREFIX}/lib/mozilla; \ + ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \ + ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome) + @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> |