2012-04-22 22:38:32 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include "${.CURDIR}/../libreoffice/Makefile.common"
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 1
|
2014-06-08 21:51:27 +02:00
|
|
|
UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX}
|
2012-04-22 22:38:32 +02:00
|
|
|
PKGNAMESUFFIX= -i18n
|
2014-06-08 21:51:27 +02:00
|
|
|
DISTFILES= #none
|
2012-04-22 22:38:32 +02:00
|
|
|
MASTER_SITES= #none
|
|
|
|
EXTRACT_ONLY= #none
|
|
|
|
|
|
|
|
COMMENT= Localized interface for libreoffice
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2014-06-13 01:43:05 +02:00
|
|
|
LO_LANG_ALL= af am ar as ast be bg bn bn_IN bo br brx bs ca ca_valencia \
|
|
|
|
cs cy da de dgo dz el en_GB en_ZA eo es et eu fa fi fr ga \
|
|
|
|
gd gl gu he hi hr hu id is it ja ka kk km kmr_Latn kn ko \
|
|
|
|
kok ks lb lo lt lv mai mk ml mn mni mr my nb ne nl nn nr \
|
|
|
|
nso oc om or pa_IN pl pt_BR pt ro ru rw sa_IN sat sd si \
|
|
|
|
sid sk sl sq sr sr_Latn ss st sv sw_TZ ta te tg th tn tr \
|
|
|
|
ts tt ug uk uz ve vi xh zh_CN zh_TW zu
|
2012-04-22 22:38:32 +02:00
|
|
|
|
|
|
|
ar_PORT= arabic/${PORTNAME}
|
|
|
|
de_PORT= german/${PORTNAME}
|
|
|
|
fr_PORT= french/${PORTNAME}
|
|
|
|
he_PORT= hebrew/${PORTNAME}
|
|
|
|
hu_PORT= hungarian/${PORTNAME}
|
|
|
|
ja_PORT= japanese/${PORTNAME}
|
|
|
|
ko_PORT= korean/${PORTNAME}
|
|
|
|
pl_PORT= polish/${PORTNAME}
|
|
|
|
pt_BR_PORT= portuguese/${PORTNAME}-pt_BR
|
|
|
|
pt_PORT= portuguese/${PORTNAME}
|
|
|
|
ru_PORT= russian/${PORTNAME}
|
|
|
|
uk_PORT= ukrainian/${PORTNAME}
|
|
|
|
zh_CN_PORT= chinese/${PORTNAME}-zh_CN
|
|
|
|
zh_TW_PORT= chinese/${PORTNAME}-zh_TW
|
2012-04-24 16:24:00 +02:00
|
|
|
vi_PORT= vietnamese/${PORTNAME}
|
2012-04-22 22:38:32 +02:00
|
|
|
|
2012-05-31 10:47:41 +02:00
|
|
|
OPTIONS_DEFINE= ALL
|
|
|
|
ALL_DESC= All locatizations data
|
|
|
|
OPTIONS_DEFAULT= ALL
|
2012-04-22 22:38:32 +02:00
|
|
|
|
|
|
|
.for lang in ${LO_LANG_ALL}
|
|
|
|
${lang}_DETECT?= ${PREFIX}/lib/${PORTNAME}/readmes/README_${lang:S/_/-/}
|
|
|
|
${lang}_PORT?= editors/${PORTNAME}-${lang}
|
|
|
|
${lang}_NAME?= ${lang}
|
2012-05-31 10:47:41 +02:00
|
|
|
OPTIONS_DEFINE+= ${lang}
|
|
|
|
${lang}_DESC= ${${lang}_NAME} localization data
|
2012-04-22 22:38:32 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-04-24 11:31:07 +02:00
|
|
|
.for lang in ${LO_LANG_ALL}
|
2012-06-09 19:41:23 +02:00
|
|
|
.if ${PORT_OPTIONS:MALL} || ${PORT_OPTIONS:M${lang}}
|
2012-04-22 22:38:32 +02:00
|
|
|
RUN_DEPENDS+= ${${lang}_DETECT}:${PORTSDIR}/${${lang}_PORT}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${DO_NADA}
|
|
|
|
|
2012-10-26 22:24:07 +02:00
|
|
|
all-lang-list:
|
|
|
|
.for lang in ${LO_LANG_ALL}
|
|
|
|
@${ECHO} ${lang}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
all-help-list:
|
|
|
|
.for lang in ${LO_LANG_ALL}
|
|
|
|
@${EGREP} -q '^[:blank:]*LO_HAS_HELPPACK[:blank:]*=' \
|
|
|
|
${.CURDIR}/../../${${lang}_PORT}/Makefile && ${ECHO} "${lang}" \
|
|
|
|
|| true
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
all-makesum:
|
|
|
|
.for lang in ${LO_LANG_ALL}
|
|
|
|
@cd ${.CURDIR}/../../${${lang}_PORT} && ${MAKE} makesum
|
|
|
|
.endfor
|
|
|
|
|
2012-04-22 22:38:32 +02:00
|
|
|
.include <bsd.port.mk>
|