* LOCALIZED_LANG=all knob for all the other ooo-2 ports.
* sync Makefile.localized with three ooo-2 ports.
This commit is contained in:
parent
48398f7e20
commit
df0d516bea
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=181686
27 changed files with 372 additions and 33 deletions
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -283,7 +283,7 @@ post-install:
|
|||
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
|
||||
@for app in base calc draw impress math printeradmin writer; do \
|
||||
${REINPLACE_CMD} -e "s/^Exec.*/Exec=${EXECBASE} -$${app} %U/" \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/$${app}.desktop ; \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/$${app}.desktop ; \
|
||||
done
|
||||
@${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
|
||||
@${RM} -f ${DESKTOPDIR}/${EXECBASE}
|
||||
|
|
|
@ -99,12 +99,13 @@ pre-fetch:
|
|||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
@${ECHO} "make LOCALIZED_LANG=xx"
|
||||
@${ECHO} "while xx can be one of the following"
|
||||
@${ECHO} "af ar be-BY bg br bn bn-BD bn-IN bs ca cs cy da de el"
|
||||
@${ECHO} "en-GB en-US en-ZA eo es et eu fa fi fr ga gl gu-IN he"
|
||||
@${ECHO} "hi-IN hr hu it ja km kn-IN ko lo lt lv mk ms ne nb nl"
|
||||
@${ECHO} "nn nr ns pa-IN pl pt pt-BR ru rw sk sl sh-YU sr-CS ss"
|
||||
@${ECHO} "st sv sw sw-TZ sx ta-IN th tn tr ts ve vi xh zh-CN"
|
||||
@${ECHO} "zh-TW zu"
|
||||
@${ECHO} "af ar as-IN be-BY bg br bn bn-BD bn-IN bs ca cs cy da"
|
||||
@${ECHO} "de el en-GB en-US en-ZA eo es et eu fa fi fr ga gl"
|
||||
@${ECHO} "gu-IN he hi-IN hr hu it ja km kn-IN ko ku lo lt lv mk"
|
||||
@${ECHO} "ms ml-IN mr-IN ne nb nl nn nr ns or-IN pa-IN pl pt"
|
||||
@${ECHO} "pt-BR ru rw sk sl sh-YU sr-CS ss st sv sw sw-TZ sx"
|
||||
@${ECHO} "te-IN ti-ER ta-IN th tn tr ts tg ur-IN uk ve vi xh"
|
||||
@${ECHO} "zh-CN zh-TW zu"
|
||||
@${ECHO} "Default: en-US"
|
||||
.endif
|
||||
.if !defined(WITH_GNUGCJ)
|
||||
|
|
|
@ -14,6 +14,11 @@ CATEGORIES+= arabic
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "as-IN"
|
||||
LANG_PKGNAME= as
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "be-BY"
|
||||
LANG_PKGNAME= be
|
||||
LANG_SUFFIX= BY
|
||||
|
@ -170,6 +175,10 @@ CATEGORIES+= korean
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ku"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "lo"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -190,6 +199,16 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ml-IN"
|
||||
LANG_PKGNAME= ml
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "mr-IN"
|
||||
LANG_PKGNAME= mr
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ne"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -214,6 +233,11 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "or-IN"
|
||||
LANG_PKGNAME= or
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "pa-IN"
|
||||
LANG_PKGNAME= pa
|
||||
LANG_SUFFIX= IN
|
||||
|
@ -295,6 +319,16 @@ LANG_PKGNAME= ta
|
|||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "te-IN"
|
||||
LANG_PKGNAME= te
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ti-IN"
|
||||
LANG_PKGNAME= ti
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "th"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -311,6 +345,19 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "tg"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ur-IN"
|
||||
LANG_PKGNAME= ur
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "uk"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ve"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -345,4 +392,5 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
ALL_LOCALIZED_LANGS=yes
|
||||
PKGNAMESUFFIX= -alllangs
|
||||
.endif
|
||||
################################################################
|
||||
.endif
|
||||
|
|
|
@ -230,17 +230,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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -283,7 +283,7 @@ post-install:
|
|||
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
|
||||
@for app in base calc draw impress math printeradmin writer; do \
|
||||
${REINPLACE_CMD} -e "s/^Exec.*/Exec=${EXECBASE} -$${app} %U/" \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/$${app}.desktop ; \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/$${app}.desktop ; \
|
||||
done
|
||||
@${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
|
||||
@${RM} -f ${DESKTOPDIR}/${EXECBASE}
|
||||
|
|
|
@ -99,12 +99,13 @@ pre-fetch:
|
|||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
@${ECHO} "make LOCALIZED_LANG=xx"
|
||||
@${ECHO} "while xx can be one of the following"
|
||||
@${ECHO} "af ar be-BY bg br bn bn-BD bn-IN bs ca cs cy da de el"
|
||||
@${ECHO} "en-GB en-US en-ZA eo es et eu fa fi fr ga gl gu-IN he"
|
||||
@${ECHO} "hi-IN hr hu it ja km kn-IN ko lo lt lv mk ms ne nb nl"
|
||||
@${ECHO} "nn nr ns pa-IN pl pt pt-BR ru rw sk sl sh-YU sr-CS ss"
|
||||
@${ECHO} "st sv sw sw-TZ sx ta-IN th tn tr ts ve vi xh zh-CN"
|
||||
@${ECHO} "zh-TW zu"
|
||||
@${ECHO} "af ar as-IN be-BY bg br bn bn-BD bn-IN bs ca cs cy da"
|
||||
@${ECHO} "de el en-GB en-US en-ZA eo es et eu fa fi fr ga gl"
|
||||
@${ECHO} "gu-IN he hi-IN hr hu it ja km kn-IN ko ku lo lt lv mk"
|
||||
@${ECHO} "ms ml-IN mr-IN ne nb nl nn nr ns or-IN pa-IN pl pt"
|
||||
@${ECHO} "pt-BR ru rw sk sl sh-YU sr-CS ss st sv sw sw-TZ sx"
|
||||
@${ECHO} "te-IN ti-ER ta-IN th tn tr ts tg ur-IN uk ve vi xh"
|
||||
@${ECHO} "zh-CN zh-TW zu"
|
||||
@${ECHO} "Default: en-US"
|
||||
.endif
|
||||
.if !defined(WITH_GNUGCJ)
|
||||
|
|
|
@ -14,6 +14,11 @@ CATEGORIES+= arabic
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "as-IN"
|
||||
LANG_PKGNAME= as
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "be-BY"
|
||||
LANG_PKGNAME= be
|
||||
LANG_SUFFIX= BY
|
||||
|
@ -170,6 +175,10 @@ CATEGORIES+= korean
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ku"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "lo"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -190,6 +199,16 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ml-IN"
|
||||
LANG_PKGNAME= ml
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "mr-IN"
|
||||
LANG_PKGNAME= mr
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ne"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -214,6 +233,11 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "or-IN"
|
||||
LANG_PKGNAME= or
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "pa-IN"
|
||||
LANG_PKGNAME= pa
|
||||
LANG_SUFFIX= IN
|
||||
|
@ -295,6 +319,16 @@ LANG_PKGNAME= ta
|
|||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "te-IN"
|
||||
LANG_PKGNAME= te
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ti-IN"
|
||||
LANG_PKGNAME= ti
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "th"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -311,6 +345,19 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "tg"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ur-IN"
|
||||
LANG_PKGNAME= ur
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "uk"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ve"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -345,4 +392,5 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
ALL_LOCALIZED_LANGS=yes
|
||||
PKGNAMESUFFIX= -alllangs
|
||||
.endif
|
||||
################################################################
|
||||
.endif
|
||||
|
|
|
@ -230,17 +230,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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -283,7 +283,7 @@ post-install:
|
|||
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
|
||||
@for app in base calc draw impress math printeradmin writer; do \
|
||||
${REINPLACE_CMD} -e "s/^Exec.*/Exec=${EXECBASE} -$${app} %U/" \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/$${app}.desktop ; \
|
||||
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/$${app}.desktop ; \
|
||||
done
|
||||
@${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
|
||||
@${RM} -f ${DESKTOPDIR}/${EXECBASE}
|
||||
|
|
|
@ -99,12 +99,13 @@ pre-fetch:
|
|||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
@${ECHO} "make LOCALIZED_LANG=xx"
|
||||
@${ECHO} "while xx can be one of the following"
|
||||
@${ECHO} "af ar be-BY bg br bn bn-BD bn-IN bs ca cs cy da de el"
|
||||
@${ECHO} "en-GB en-US en-ZA eo es et eu fa fi fr ga gl gu-IN he"
|
||||
@${ECHO} "hi-IN hr hu it ja km kn-IN ko lo lt lv mk ms ne nb nl"
|
||||
@${ECHO} "nn nr ns pa-IN pl pt pt-BR ru rw sk sl sh-YU sr-CS ss"
|
||||
@${ECHO} "st sv sw sw-TZ sx ta-IN th tn tr ts ve vi xh zh-CN"
|
||||
@${ECHO} "zh-TW zu"
|
||||
@${ECHO} "af ar as-IN be-BY bg br bn bn-BD bn-IN bs ca cs cy da"
|
||||
@${ECHO} "de el en-GB en-US en-ZA eo es et eu fa fi fr ga gl"
|
||||
@${ECHO} "gu-IN he hi-IN hr hu it ja km kn-IN ko ku lo lt lv mk"
|
||||
@${ECHO} "ms ml-IN mr-IN ne nb nl nn nr ns or-IN pa-IN pl pt"
|
||||
@${ECHO} "pt-BR ru rw sk sl sh-YU sr-CS ss st sv sw sw-TZ sx"
|
||||
@${ECHO} "te-IN ti-ER ta-IN th tn tr ts tg ur-IN uk ve vi xh"
|
||||
@${ECHO} "zh-CN zh-TW zu"
|
||||
@${ECHO} "Default: en-US"
|
||||
.endif
|
||||
.if !defined(WITH_GNUGCJ)
|
||||
|
|
|
@ -14,6 +14,11 @@ CATEGORIES+= arabic
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "as-IN"
|
||||
LANG_PKGNAME= as
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "be-BY"
|
||||
LANG_PKGNAME= be
|
||||
LANG_SUFFIX= BY
|
||||
|
@ -170,6 +175,10 @@ CATEGORIES+= korean
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ku"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "lo"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -190,6 +199,16 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ml-IN"
|
||||
LANG_PKGNAME= ml
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "mr-IN"
|
||||
LANG_PKGNAME= mr
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ne"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -214,6 +233,11 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "or-IN"
|
||||
LANG_PKGNAME= or
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "pa-IN"
|
||||
LANG_PKGNAME= pa
|
||||
LANG_SUFFIX= IN
|
||||
|
@ -295,6 +319,16 @@ LANG_PKGNAME= ta
|
|||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "te-IN"
|
||||
LANG_PKGNAME= te
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ti-IN"
|
||||
LANG_PKGNAME= ti
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "th"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -311,6 +345,19 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "tg"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ur-IN"
|
||||
LANG_PKGNAME= ur
|
||||
LANG_SUFFIX= IN
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "uk"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
################################################################
|
||||
.if ${LOCALIZED_LANG} == "ve"
|
||||
LANG_PKGNAME= ${LOCALIZED_LANG}
|
||||
.endif
|
||||
|
@ -345,4 +392,5 @@ LANG_PKGNAME= ${LOCALIZED_LANG}
|
|||
ALL_LOCALIZED_LANGS=yes
|
||||
PKGNAMESUFFIX= -alllangs
|
||||
.endif
|
||||
################################################################
|
||||
.endif
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue