1# $FreeBSD$ 2 3LOCALES= af_ZA.ISO8859-1 \ 4 am_ET.UTF-8 \ 5 be_BY.CP1131 \ 6 be_BY.CP1251 \ 7 be_BY.ISO8859-5 \ 8 be_BY.UTF-8 \ 9 bg_BG.CP1251 \ 10 bg_BG.UTF-8 \ 11 ca_ES.ISO8859-1 \ 12 cs_CZ.ISO8859-2 \ 13 da_DK.ISO8859-1 \ 14 de_DE.ISO8859-1 \ 15 el_GR.ISO8859-7 \ 16 el_GR.UTF-8 \ 17 en_CA.ISO8859-1 \ 18 en_GB.ISO8859-1 \ 19 en_US.ISO8859-1 \ 20 es_ES.ISO8859-1 \ 21 et_EE.ISO8859-15 \ 22 eu_ES.ISO8859-1 \ 23 fi_FI.ISO8859-1 \ 24 fr_BE.ISO8859-1 \ 25 fr_CH.ISO8859-1 \ 26 fr_FR.ISO8859-1 \ 27 he_IL.UTF-8 \ 28 hi_IN.ISCII-DEV \ 29 hr_HR.ISO8859-2 \ 30 hu_HU.ISO8859-2 \ 31 hy_AM.ARMSCII-8 \ 32 hy_AM.UTF-8 \ 33 is_IS.ISO8859-1 \ 34 it_IT.ISO8859-1 \ 35 ja_JP.eucJP \ 36 ja_JP.SJIS \ 37 ja_JP.UTF-8 \ 38 kk_KZ.PT154 \ 39 kk_KZ.UTF-8 \ 40 ko_KR.UTF-8 \ 41 ko_KR.eucKR \ 42 lt_LT.ISO8859-13 \ 43 mn_MN.UTF-8 \ 44 nl_NL.ISO8859-1 \ 45 no_NO.ISO8859-1 \ 46 pl_PL.ISO8859-2 \ 47 pt_PT.ISO8859-1 \ 48 ro_RO.ISO8859-2 \ 49 ru_RU.CP1251 \ 50 ru_RU.CP866 \ 51 ru_RU.ISO8859-5 \ 52 ru_RU.KOI8-R \ 53 ru_RU.UTF-8 \ 54 sl_SI.ISO8859-2 \ 55 sr_YU.ISO8859-2 \ 56 sr_YU.ISO8859-5 \ 57 sr_YU.UTF-8 \ 58 sv_SE.ISO8859-1 \ 59 tr_TR.ISO8859-9 \ 60 uk_UA.CP1251 \ 61 uk_UA.ISO8859-5 \ 62 uk_UA.KOI8-U \ 63 uk_UA.UTF-8 \ 64 zh_CN.eucCN \ 65 zh_CN.GB18030 \ 66 zh_CN.GB2312 \ 67 zh_CN.UTF-8 \ 68 zh_TW.Big5 \ 69 zh_TW.UTF-8 70 71LOCALEDIR= /usr/share/locale 72 73.SUFFIXES: .src .out 74 75.src.out: 76 grep -v '^#' < ${.IMPSRC} > ${.TARGET} 77 78FILES= ${LOCALES:S/$/.out/} 79FILESNAME= LC_MESSAGES 80 81.for locale in ${LOCALES} 82FILESDIR_${locale}.out= ${LOCALEDIR}/${locale} 83.endfor 84 85CLEANFILES= ${FILES} 86 87CZ_LINKS= cs_CZ:sk_SK 88DE_LINKS= de_DE:de_AT de_DE:de_CH 89FR_LINKS= fr_FR:fr_CA 90GB_LINKS= en_GB:en_AU en_GB:en_NZ 91IT_LINKS= it_IT:it_CH 92NL_LINKS= nl_NL:nl_BE 93NO_LINKS= no_NO:nb_NO no_NO:nn_NO 94PT_LINKS= pt_PT:pt_BR 95 96ENCODINGS= Big5 Big5HKSCS CP949 eucKR GB2312 GBK \ 97 ISO8859-1 ISO8859-2 ISO8859-4 ISO8859-9 ISO8859-13 ISO8859-15 \ 98 US-ASCII UTF-8 99 100Big5_Big5HKSCS= zh_TW:zh_HK 101eucKR_CP949= ko_KR 102GB2312_GBK= zh_CN 103ISO8859-1_ISO8859-1= ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} ${IT_LINKS} \ 104 ${NL_LINKS} ${NO_LINKS} ${PT_LINKS} 105ISO8859-1_ISO8859-15= af_ZA ca_ES da_DK de_DE en_CA en_GB en_US es_ES \ 106 eu_ES fi_FI fr_BE fr_CH fr_FR is_IS it_IT nl_NL no_NO \ 107 pt_PT sv_SE \ 108 ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} ${IT_LINKS} \ 109 ${NL_LINKS} ${NO_LINKS} 110ISO8859-1_US-ASCII= ${GB_LINKS} en_CA en_GB en_US 111ISO8859-1_UTF-8= af_ZA ca_ES da_DK de_DE en_CA en_GB en_US es_ES eu_ES \ 112 fi_FI fr_BE fr_CH fr_FR is_IS it_IT nb_NO nl_NL nn_NO no_NO \ 113 pt_PT sv_SE 114ISO8859-2_ISO8859-2= ${CZ_LINKS} 115ISO8859-2_UTF-8= cs_CZ hr_HR hu_HU pl_PL ro_RO sl_SI 116ISO8859-9_UTF-8= tr_TR 117ISO8859-13_ISO8859-4= lt_LT 118ISO8859-13_UTF-8= lt_LT 119ISO8859-15_UTF-8= et_EE 120UTF-8_UTF-8= ${CZ_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} en_GB:en_IE \ 121 ${IT_LINKS} ${NL_LINKS} ${NO_LINKS} ${PT_LINKS} zh_TW:zh_HK 122 123SYMLINKS= 124.for enc1 in ${ENCODINGS} 125.for enc2 in ${ENCODINGS} 126.for lang_terr in ${${enc1}_${enc2}} 127SYMLINKS+= ../${lang_terr:C/:.*$//}.${enc1}/${FILESNAME} \ 128 ${LOCALEDIR}/${lang_terr:C/^.*://}.${enc2} 129.endfor 130.endfor 131.endfor 132 133beforeinstall: 134.for locale in ${LOCALES} 135.if exists(${DESTDIR}${LOCALEDIR}/${locale}/LC_MESSAGES/) 136 rm -rf ${DESTDIR}${LOCALEDIR}/${locale}/LC_MESSAGES 137.endif 138.endfor 139 140.include <bsd.prog.mk> 141