1# $FreeBSD$ 2 3LOCALES= bg_BG.CP1251 \ 4 be_BY.CP1131 \ 5 be_BY.CP1251 \ 6 be_BY.ISO8859-5 \ 7 ca_ES.ISO8859-1 \ 8 ca_ES.ISO8859-15 \ 9 cs_CZ.ISO8859-2 \ 10 de_DE.ISO8859-1 \ 11 de_DE.ISO8859-15 \ 12 el_GR.ISO8859-7 \ 13 es_ES.ISO8859-1 \ 14 es_ES.ISO8859-15 \ 15 et_EE.ISO8859-15 \ 16 hi_IN.ISCII-DEV \ 17 hy_AM.ARMSCII-8 \ 18 is_IS.ISO8859-1 \ 19 is_IS.ISO8859-15 \ 20 kk_KZ.PT154 \ 21 la_LN.ISO8859-1 \ 22 la_LN.ISO8859-15 \ 23 la_LN.ISO8859-2 \ 24 la_LN.ISO8859-4 \ 25 la_LN.US-ASCII \ 26 no_NO.ISO8859-1 \ 27 no_NO.ISO8859-15 \ 28 lt_LT.ISO8859-4 \ 29 lt_LT.ISO8859-13 \ 30 pl_PL.ISO8859-2 \ 31 ru_RU.CP1251 \ 32 ru_RU.CP866 \ 33 ru_RU.ISO8859-5 \ 34 ru_RU.KOI8-R \ 35 sl_SI.ISO8859-2 \ 36 sr_YU.ISO8859-5 \ 37 sv_SE.ISO8859-1 \ 38 sv_SE.ISO8859-15 \ 39 tr_TR.ISO8859-9 \ 40 uk_UA.CP1251 \ 41 uk_UA.ISO8859-5 \ 42 uk_UA.KOI8-U 43 44LOCALEDIR= /usr/share/locale 45 46.SUFFIXES: .src .out 47 48.src.out: 49 colldef -I ${.CURDIR} -o ${.TARGET} ${.IMPSRC} 50 51FILES= ${LOCALES:S/$/.out/} 52FILESNAME= LC_COLLATE 53 54.for locale in ${LOCALES} 55FILESDIR_${locale}.out= ${LOCALEDIR}/${locale} 56.if exists(${.CURDIR}/map.${locale:E}) 57${locale}.out: map.${locale:E} 58.endif 59.endfor 60 61CLEANFILES= ${FILES} 62 63ENCODINGS= Big5 Big5HKSCS CP949 eucCN eucJP eucKR GB18030 GB2312 GBK \ 64 ISO8859-1 ISO8859-2 ISO8859-15 SJIS US-ASCII UTF-8 65 66ISO8859-1_Big5= is_IS:zh_TW 67ISO8859-1_ISO8859-1= ${ISO8859-15_ISO8859-15} pt_PT:pt_BR 68 69LATIN1LINKS= af_ZA da_DK en_AU en_CA en_GB en_NZ en_US eu_ES fi_FI \ 70 fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL pt_PT 71ISO8859-15_ISO8859-15= \ 72 de_DE:de_AT de_DE:de_CH \ 73 no_NO:nb_NO no_NO:nn_NO \ 74 ${LATIN1LINKS:C/^/la_LN:/} 75 76LATIN2LINKS= hr_HR hu_HU ro_RO sr_YU 77ISO8859-2_ISO8859-2= ${LATIN2LINKS:C/^/la_LN:/} cs_CZ:sk_SK 78 79US-ASCII_Big5HKSCS= la_LN:zh_HK 80US-ASCII_CP949= la_LN:ko_KR 81US-ASCII_eucCN= la_LN:zh_CN 82US-ASCII_eucJP= la_LN:ja_JP 83US-ASCII_eucKR= la_LN:ko_KR 84US-ASCII_GB18030= la_LN:zh_CN 85US-ASCII_GB2312= la_LN:zh_CN 86US-ASCII_GBK= la_LN:zh_CN 87US-ASCII_SJIS= la_LN:ja_JP 88 89ASCIILINKS= en_AU en_CA en_GB en_NZ en_US 90US-ASCII_US-ASCII= ${ASCIILINKS:C/^/la_LN:/} 91 92UTF8LINKS= af_ZA am_ET be_BY bg_BG ca_ES cs_CZ da_DK de_AT de_CH \ 93 de_DE el_GR en_AU en_CA en_GB en_IE en_NZ en_US es_ES \ 94 et_EE eu_ES fi_FI fr_BE \ 95 fr_CA fr_CH fr_FR he_IL hr_HR hu_HU hy_AM is_IS it_CH it_IT \ 96 ja_JP kk_KZ ko_KR lt_LT mn_MN \ 97 nb_NO nl_BE nl_NL nn_NO no_NO pl_PL pt_BR pt_PT \ 98 ro_RO ru_RU sk_SK sl_SI sr_YU sv_SE tr_TR uk_UA zh_CN zh_HK \ 99 zh_TW 100US-ASCII_UTF-8= ${UTF8LINKS:C/^/la_LN:/} 101 102SYMLINKS= 103.for enc1 in ${ENCODINGS} 104.for enc2 in ${ENCODINGS} 105.for lang_terr in ${${enc1}_${enc2}} 106SYMLINKS+= ../${lang_terr:C/:.*$//}.${enc1}/${FILESNAME} \ 107 ${LOCALEDIR}/${lang_terr:C/^.*://}.${enc2} 108.endfor 109.endfor 110.endfor 111 112.include <bsd.prog.mk> 113