diff options
author | flo <flo@FreeBSD.org> | 2013-03-24 04:20:22 +0800 |
---|---|---|
committer | flo <flo@FreeBSD.org> | 2013-03-24 04:20:22 +0800 |
commit | 0acd926e198ffe51075294850d5faf7bc63b2c6e (patch) | |
tree | 22cdf3b7cb0e78e4cf8f3ec8e31b7a8dd9ef3677 /mail | |
parent | 1b2797fcfef2c94863ac8018c3d5f86ee6ea48cb (diff) | |
download | freebsd-ports-gnome-0acd926e198ffe51075294850d5faf7bc63b2c6e.tar.gz freebsd-ports-gnome-0acd926e198ffe51075294850d5faf7bc63b2c6e.tar.zst freebsd-ports-gnome-0acd926e198ffe51075294850d5faf7bc63b2c6e.zip |
- convert to optionsng
- trim headers
- remove stale comments
- add common LANG_XX variables to bsd.options.desc.mk
Reviewed by: bapt
Diffstat (limited to 'mail')
-rw-r--r-- | mail/thunderbird-i18n/Makefile | 23 | ||||
-rw-r--r-- | mail/thunderbird-i18n/Makefile.lang | 139 | ||||
-rw-r--r-- | mail/thunderbird-i18n/Makefile.option | 48 |
3 files changed, 195 insertions, 15 deletions
diff --git a/mail/thunderbird-i18n/Makefile b/mail/thunderbird-i18n/Makefile index 8937b2353b00..07df4e6cea96 100644 --- a/mail/thunderbird-i18n/Makefile +++ b/mail/thunderbird-i18n/Makefile @@ -18,27 +18,20 @@ PLIST?= ${WRKDIR}/plist PLISTD?= ${WRKDIR}/plist_dirs PLISTF?= ${WRKDIR}/plist_files -.ifndef WITHOUT_SWITCHER -RUN_DEPENDS+= xpi-quick-locale-switcher>=0:${PORTSDIR}/www/xpi-quick-locale-switcher -.endif - NO_BUILD= yes USE_THUNDERBIRD= 17 USE_XPI= thunderbird linux-thunderbird +USE_SUBMAKE= yes -THUNDERBIRD_I18N_ALL= ar br ca cs da de en-GB en-US es-AR es-ES et eu fi fr \ - fy-NL ga-IE gd gl he hu is it ja ko lt nb-NO nl nn-NO \ - pl pt-BR pt-PT rm ru si sk sl sq sv-SE ta-LK tr uk zh-TW +.include "${.CURDIR}/Makefile.option" +.include <bsd.port.pre.mk> -.ifdef PACKAGE_BUILDING -THUNDERBIRD_I18N?= all -.else -THUNDERBIRD_I18N?= es-ES pt-BR ru ja de fr ko it +.ifndef WITHOUT_SWITCHER +RUN_DEPENDS+= xpi-quick-locale-switcher>=0:${PORTSDIR}/www/xpi-quick-locale-switcher .endif -.if ${THUNDERBIRD_I18N} == all -THUNDERBIRD_I18N_= ${THUNDERBIRD_I18N_ALL} -.endif +.include "${.CURDIR}/Makefile.lang" + THUNDERBIRD_I18N_?= ${THUNDERBIRD_I18N} WDIR= langpack-*@thunderbird.mozilla.org @@ -86,4 +79,4 @@ list-langs: perl -ne 'if(/.*href="([a-zA-Z-]+).xpi.*/){print "$$1 "}' .include "${.CURDIR}/../../www/xpi-adblock/Makefile.xpi" -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/mail/thunderbird-i18n/Makefile.lang b/mail/thunderbird-i18n/Makefile.lang new file mode 100644 index 000000000000..d878b7781c2c --- /dev/null +++ b/mail/thunderbird-i18n/Makefile.lang @@ -0,0 +1,139 @@ +# $FreeBSD$ + +THUNDERBIRD_I18N_ALL_= ar br ca cs da de en-GB en-US es-AR es-ES et eu fi fr \ + fy-NL ga-IE gd gl he hu is it ja ko lt nb-NO nl nn-NO \ + pl pt-BR pt-PT rm ru si sk sl sq sv-SE ta-LK tr uk zh-TW + +.if defined(THUNDERBIRD_I18N_ALL) || defined(PACKAGE_BUILDING) || target(package) +THUNDERBIRD_I18N= ${THUNDERBIRD_I18N_ALL_} +.else +.if ${PORT_OPTIONS:MLANG_AR} +THUNDERBIRD_I18N+= ar +.endif +.if ${PORT_OPTIONS:MLANG_BR} +THUNDERBIRD_I18N+= br +.endif +.if ${PORT_OPTIONS:MLANG_CA} +THUNDERBIRD_I18N+= ca +.endif +.if ${PORT_OPTIONS:MLANG_CS} +THUNDERBIRD_I18N+= cs +.endif +.if ${PORT_OPTIONS:MLANG_DA} +THUNDERBIRD_I18N+= da +.endif +.if ${PORT_OPTIONS:MLANG_DE} +THUNDERBIRD_I18N+= de +.endif +.if ${PORT_OPTIONS:MLANG_GB} +THUNDERBIRD_I18N+= en-GB +.endif +.if ${PORT_OPTIONS:MLANG_US} +THUNDERBIRD_I18N+= en-US +.endif +.if ${PORT_OPTIONS:MLANG_SA} +THUNDERBIRD_I18N+= es-AR +.endif +.if ${PORT_OPTIONS:MLANG_ES} +THUNDERBIRD_I18N+= es-ES +.endif +.if ${PORT_OPTIONS:MLANG_ET} +THUNDERBIRD_I18N+= et +.endif +.if ${PORT_OPTIONS:MLANG_EU} +THUNDERBIRD_I18N+= eu +.endif +.if ${PORT_OPTIONS:MLANG_FI} +THUNDERBIRD_I18N+= fi +.endif +.if ${PORT_OPTIONS:MLANG_FR} +THUNDERBIRD_I18N+= fr +.endif +.if ${PORT_OPTIONS:MLANG_FY} +THUNDERBIRD_I18N+= fy-NL +.endif +.if ${PORT_OPTIONS:MLANG_GA} +THUNDERBIRD_I18N+= ga-IE +.endif +.if ${PORT_OPTIONS:MLANG_GD} +THUNDERBIRD_I18N+= gd +.endif +.if ${PORT_OPTIONS:MLANG_GL} +THUNDERBIRD_I18N+= gl +.endif +.if ${PORT_OPTIONS:MLANG_HE} +THUNDERBIRD_I18N+= he +.endif +.if ${PORT_OPTIONS:MLANG_HU} +THUNDERBIRD_I18N+= hu +.endif +.if ${PORT_OPTIONS:MLANG_IS} +THUNDERBIRD_I18N+= is +.endif +.if ${PORT_OPTIONS:MLANG_IT} +THUNDERBIRD_I18N+= it +.endif +.if ${PORT_OPTIONS:MLANG_JA} +THUNDERBIRD_I18N+= ja +.endif +.if ${PORT_OPTIONS:MLANG_KO} +THUNDERBIRD_I18N+= ko +.endif +.if ${PORT_OPTIONS:MLANG_LT} +THUNDERBIRD_I18N+= lt +.endif +.if ${PORT_OPTIONS:MLANG_LV} +THUNDERBIRD_I18N+= lv +.endif +.if ${PORT_OPTIONS:MLANG_NB} +THUNDERBIRD_I18N+= nb-NO +.endif +.if ${PORT_OPTIONS:MLANG_NL} +THUNDERBIRD_I18N+= nl +.endif +.if ${PORT_OPTIONS:MLANG_NN} +THUNDERBIRD_I18N+= nn-NO +.endif +.if ${PORT_OPTIONS:MLANG_PL} +THUNDERBIRD_I18N+= pl +.endif +.if ${PORT_OPTIONS:MLANG_PBR} +THUNDERBIRD_I18N+= pt-BR +.endif +.if ${PORT_OPTIONS:MLANG_PT} +THUNDERBIRD_I18N+= pt-PT +.endif +.if ${PORT_OPTIONS:MLANG_RM} +THUNDERBIRD_I18N+= rm +.endif +.if ${PORT_OPTIONS:MLANG_RU} +THUNDERBIRD_I18N+= ru +.endif +.if ${PORT_OPTIONS:MLANG_SI} +THUNDERBIRD_I18N+= si +.endif +.if ${PORT_OPTIONS:MLANG_SK} +THUNDERBIRD_I18N+= sk +.endif +.if ${PORT_OPTIONS:MLANG_SL} +THUNDERBIRD_I18N+= sl +.endif +.if ${PORT_OPTIONS:MLANG_SQ} +THUNDERBIRD_I18N+= sq +.endif +.if ${PORT_OPTIONS:MLANG_SV} +THUNDERBIRD_I18N+= sv-SE +.endif +.if ${PORT_OPTIONS:MLANG_LK} +THUNDERBIRD_I18N+= ta-LK +.endif +.if ${PORT_OPTIONS:MLANG_TR} +THUNDERBIRD_I18N+= tr +.endif +.if ${PORT_OPTIONS:MLANG_UK} +THUNDERBIRD_I18N+= uk +.endif +.if ${PORT_OPTIONS:MLANG_TW} +THUNDERBIRD_I18N+= zh-TW +.endif +.endif diff --git a/mail/thunderbird-i18n/Makefile.option b/mail/thunderbird-i18n/Makefile.option new file mode 100644 index 000000000000..7b41d4d3a549 --- /dev/null +++ b/mail/thunderbird-i18n/Makefile.option @@ -0,0 +1,48 @@ +# $FreeBSD$ + +OPTIONS_DEFINE= LANG_AR \ + LANG_BR \ + LANG_CA \ + LANG_CS \ + LANG_DA \ + LANG_DE \ + LANG_GB \ + LANG_US \ + LANG_SA \ + LANG_ES \ + LANG_ET \ + LANG_EU \ + LANG_FI \ + LANG_FR \ + LANG_FY \ + LANG_GA \ + LANG_GD \ + LANG_GL \ + LANG_HE \ + LANG_HU \ + LANG_IS \ + LANG_IT \ + LANG_JA \ + LANG_KO \ + LANG_LT \ + LANG_LV \ + LANG_NB \ + LANG_NL \ + LANG_NN \ + LANG_PL \ + LANG_PBR \ + LANG_PT \ + LANG_RM \ + LANG_RU \ + LANG_SI \ + LANG_SK \ + LANG_SL \ + LANG_SQ \ + LANG_SV \ + LANG_LK \ + LANG_TR \ + LANG_UK \ + LANG_TW + +OPTIONS_DEFAULT=LANG_ES LANG_PBR LANG_RU LANG_JA LANG_DE LANG_FR LANG_KO \ + LANG_IT |