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