From 7c8f651cb24b4640bfcd1e544e9d0ac570a0496c Mon Sep 17 00:00:00 2001 From: maho Date: Sun, 7 Jan 2007 12:45:07 +0000 Subject: * LOCALIZED_LANG=all knob for all the other ooo-2 ports. * sync Makefile.localized with three ooo-2 ports. --- editors/openoffice-3-devel/Makefile | 24 ++++++++++++++++++++-- editors/openoffice-3-devel/files/Makefile.knobs | 7 +++++++ .../openoffice-3-devel/files/Makefile.localized | 5 +++++ 3 files changed, 34 insertions(+), 2 deletions(-) (limited to 'editors/openoffice-3-devel') diff --git a/editors/openoffice-3-devel/Makefile b/editors/openoffice-3-devel/Makefile index a78c7a4ff90c..eaadebbdb014 100644 --- a/editors/openoffice-3-devel/Makefile +++ b/editors/openoffice-3-devel/Makefile @@ -228,17 +228,37 @@ do-build: .else @cd ${WRKSRC} ; ${SETENV} "LANG=C" "LC_ALL=C" ${TCSH} -c "source ${FREEBSD_ENV_SET} ; dmake" .endif +.if ${LOCALIZED_LANG} == "all" + @${MAKE} languagepack +.endif do-install: +.if ${LOCALIZED_LANG} == "all" + @cd ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/en-US/freebsd-*/ ; ${LS} *.t?z > ${WRKDIR}/INSTALLFILES + @cd ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice_languagepack/bsd/install/ ; ${LS} */freebsd*/*.t?z > ${WRKDIR}/LANGPACKFILES + @${RM} -Rf ${WRKDIR}/tmp + @${MKDIR} ${WRKDIR}/tmp + @for i in `${CAT} ${WRKDIR}/INSTALLFILES`; do \ + ${ECHO_CMD} "extracting $$i" ; \ + cd ${WRKDIR}/tmp ; ${TAR} xfz ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/en-US/freebsd-*/$$i ; \ + done + @for i in `${CAT} ${WRKDIR}/LANGPACKFILES`; do \ + ${ECHO_CMD} "extracting $$i" ; \ + cd ${WRKDIR}/tmp ; ${TAR} xfz ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice_languagepack/bsd/install/$$i ;\ + done + @${MKDIR} ${PREFIX}/${INSTALLATION_BASEDIR} + @cd ${WRKDIR}/tmp/opt/openoffice* ; ${TAR} cf - -C . . | ${TAR} xf - -C ${PREFIX}/${INSTALLATION_BASEDIR} +.else @cd ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/${LOCALIZED_LANG}/freebsd-*/ ; ${LS} *.t?z > ${WRKDIR}/INSTALLFILES @${RM} -Rf ${WRKDIR}/tmp @${MKDIR} ${WRKDIR}/tmp @for i in `${CAT} ${WRKDIR}/INSTALLFILES`; do \ - ${CP} ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/${LOCALIZED_LANG}/freebsd-*/$$i ${WRKDIR}/tmp ; \ - cd ${WRKDIR}/tmp ; ${TAR} xfz ${WRKDIR}/tmp/$$i ; \ + ${ECHO_CMD} "extracting $$i" ; \ + cd ${WRKDIR}/tmp ; ${TAR} xfz ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/${LOCALIZED_LANG}/freebsd-*/$$i ; \ done @${MKDIR} ${PREFIX}/${INSTALLATION_BASEDIR} @cd ${WRKDIR}/tmp/opt/openoffice* ; ${TAR} cf - -C . . | ${TAR} xf - -C ${PREFIX}/${INSTALLATION_BASEDIR} +.endif post-install: @${ECHO_MSG} "===> Add wrapper scripts"; diff --git a/editors/openoffice-3-devel/files/Makefile.knobs b/editors/openoffice-3-devel/files/Makefile.knobs index 95662f9f5d00..ee500e7afd16 100644 --- a/editors/openoffice-3-devel/files/Makefile.knobs +++ b/editors/openoffice-3-devel/files/Makefile.knobs @@ -132,6 +132,11 @@ pre-fetch: @${ECHO} @${ECHO} "You can compile OOo with evolution2 support by" @${ECHO} "make -DWITH_EVOLUTION2" +.endif +.if ${LOCALIZED_LANG} != "all" + @${ECHO} + @${ECHO} "You can compile OOo with full localized language support by" + @${ECHO} "make LOCALIZED_LANG=all" .endif @${ECHO} @${ECHO} "NOTICE:" @@ -139,6 +144,8 @@ pre-fetch: @${ECHO} "To build OOo, you should have a lot" .if defined(WITH_DEBUG) @${ECHO} "of free diskspace (~ 18GB) and memory (~ 2GB)." +.elif ${LOCALIZED_LANG} == "all" + @${ECHO} "of free diskspace (~ 35GB) and memory (~ 2GB)." .else @${ECHO} "of free diskspace (~ 9GB) and memory (~ 2GB)." .endif diff --git a/editors/openoffice-3-devel/files/Makefile.localized b/editors/openoffice-3-devel/files/Makefile.localized index 4bcfcf78d781..4088c9664bfa 100644 --- a/editors/openoffice-3-devel/files/Makefile.localized +++ b/editors/openoffice-3-devel/files/Makefile.localized @@ -388,4 +388,9 @@ BUILD_DEPENDS+= ${PREFIX}/share/fonts/TrueType/bsmi00lp.ttf:${PORTSDIR}/chinese/ LANG_PKGNAME= ${LOCALIZED_LANG} .endif ################################################################ +.if ${LOCALIZED_LANG} == "all" +ALL_LOCALIZED_LANGS=yes +PKGNAMESUFFIX= -alllangs +.endif +################################################################ .endif -- cgit