1# $FreeBSD$ 2# 3 4NOMAN=YES 5CLEANFILES+= ${LOCALES:S/$/.out/g} 6 7LOCALES= bg_BG.CP1251 \ 8 be_BY.CP1131 \ 9 be_BY.CP1251 \ 10 be_BY.ISO8859-5 \ 11 ca_ES.ISO8859-1 \ 12 ca_ES.ISO8859-15 \ 13 cs_CZ.ISO8859-2 \ 14 de_DE.ISO8859-1 \ 15 de_DE.ISO8859-15 \ 16 el_GR.ISO8859-7 \ 17 es_ES.ISO8859-1 \ 18 es_ES.ISO8859-15 \ 19 et_EE.ISO8859-15 \ 20 hi_IN.ISCII-DEV \ 21 hy_AM.ARMSCII-8 \ 22 is_IS.ISO8859-1 \ 23 is_IS.ISO8859-15 \ 24 kk_KZ.PT154 \ 25 la_LN.ISO8859-1 \ 26 la_LN.ISO8859-15 \ 27 la_LN.ISO8859-2 \ 28 la_LN.ISO8859-4 \ 29 la_LN.US-ASCII \ 30 lt_LT.ISO8859-4 \ 31 lt_LT.ISO8859-13 \ 32 pl_PL.ISO8859-2 \ 33 ru_RU.CP1251 \ 34 ru_RU.CP866 \ 35 ru_RU.ISO8859-5 \ 36 ru_RU.KOI8-R \ 37 sl_SI.ISO8859-2 \ 38 sr_YU.ISO8859-5 \ 39 sv_SE.ISO8859-1 \ 40 sv_SE.ISO8859-15 \ 41 uk_UA.ISO8859-5 \ 42 uk_UA.KOI8-U 43 44LOCALEDIR= ${DESTDIR}/usr/share/locale 45 46ASCIILINKS= am_ET.UTF-8 en_AU.US-ASCII en_CA.US-ASCII en_GB.US-ASCII \ 47 en_NZ.US-ASCII en_US.US-ASCII ko_KR.CP949 ko_KR.eucKR \ 48 ja_JP.eucJP ja_JP.SJIS tr_TR.ISO8859-9 zh_CN.eucCN \ 49 zh_CN.GB18030 zh_CN.GB2312 zh_CN.GBK zh_HK.Big5HKSCS 50DELINKS= de_AT de_CH 51ZHLINKS= zh_TW.Big5 52 53LATIN1LINKS= af_ZA da_DK en_AU en_CA en_GB en_NZ en_US fi_FI \ 54 fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL no_NO \ 55 pt_PT 56 57LATIN2LINKS= hr_HR hu_HU ro_RO sr_YU 58 59UTF8LINKS= af_ZA be_BY bg_BG ca_ES cs_CZ da_DK de_AT de_CH de_DE el_GR \ 60 en_AU en_CA en_GB en_IE en_NZ en_US es_ES et_EE fi_FI fr_BE \ 61 fr_CA fr_CH fr_FR he_IL hr_HR hu_HU hy_AM is_IS it_CH it_IT \ 62 ja_JP kk_KZ ko_KR lt_LT nl_BE nl_NL no_NO pl_PL pt_BR pt_PT \ 63 ro_RO ru_RU sk_SK sl_SI sr_YU sv_SE tr_TR uk_UA zh_CN zh_HK \ 64 zh_TW 65 66.SUFFIXES: .src .out 67 68.src.out: 69 colldef -I ${.CURDIR} -o ${.TARGET} ${.IMPSRC} 70 71all: ${LOCALES:S/$/.out/g} 72 73be_BY.CP1131.out: map.CP1131 74be_BY.CP1251.out: map.CP1251 75be_BY.ISO8859-5.out: map.ISO8859-5 76bg_BG.CP1251.out: map.CP1251 77ca_ES.ISO8859-15.out: map.ISO8859-15 78ca_ES.ISO8859-1.out: map.ISO8859-1 79cs_CZ.ISO8859-2.out: map.ISO8859-2 80de_DE.ISO8859-15.out: map.ISO8859-15 81de_DE.ISO8859-1.out: map.ISO8859-1 82el_GR.ISO8859-7.out: map.ISO8859-7 83es_ES.ISO8859-15.out: map.ISO8859-15 84es_ES.ISO8859-1.out: map.ISO8859-1 85et_EE.ISO8859-15.out: map.ISO8859-15 86hi_IN.ISCII-DEV.out: map.ISCII-DEV 87hy_AM.ARMSCII-8.out: map.ARMSCII-8 88is_IS.ISO8859-15.out: map.ISO8859-15 89is_IS.ISO8859-1.out: map.ISO8859-1 90kk_KZ.PT154.out: map.PT154 91la_LN.ISO8859-15.out: map.ISO8859-15 92la_LN.ISO8859-1.out: map.ISO8859-1 93la_LN.ISO8859-2.out: map.ISO8859-2 94la_LN.ISO8859-4.out: map.ISO8859-4 95lt_LT.ISO8859-4.out: map.ISO8859-4 96lt_LT.ISO8859-13.out: map.ISO8859-13 97pl_PL.ISO8859-2.out: map.ISO8859-2 98ru_RU.CP1251.out: map.CP1251 99ru_RU.CP866.out: map.CP866 100ru_RU.ISO8859-5.out: map.ISO8859-5 101ru_RU.KOI8-R.out: map.KOI8-R 102sl_SI.ISO8859-2.out: map.ISO8859-2 103sr_YU.ISO8859-5.out: map.ISO8859-5 104sv_SE.ISO8859-15.out: map.ISO8859-15 105sv_SE.ISO8859-1.out: map.ISO8859-1 106uk_UA.ISO8859-5.out: map.ISO8859-5 107uk_UA.KOI8-U.out: map.KOI8-U 108 109afterinstall: 110.for locale in ${LOCALES} 111 ${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} \ 112 ${locale}.out ${LOCALEDIR}/${locale}/LC_COLLATE 113.endfor 114.for link in ${ASCIILINKS} 115 ln -fs ../la_LN.US-ASCII/LC_COLLATE \ 116 ${LOCALEDIR}/${link}/LC_COLLATE 117.endfor 118.for link in ${ZHLINKS} 119 ln -fs ../is_IS.ISO8859-1/LC_COLLATE \ 120 ${LOCALEDIR}/${link}/LC_COLLATE 121.endfor 122.for link in ${LATIN1LINKS} 123 ln -fs ../la_LN.ISO8859-1/LC_COLLATE \ 124 ${LOCALEDIR}/${link}.ISO8859-1/LC_COLLATE 125 ln -fs ../la_LN.ISO8859-15/LC_COLLATE \ 126 ${LOCALEDIR}/${link}.ISO8859-15/LC_COLLATE 127.endfor 128.for link in ${LATIN2LINKS} 129 ln -fs ../la_LN.ISO8859-2/LC_COLLATE \ 130 ${LOCALEDIR}/${link}.ISO8859-2/LC_COLLATE 131.endfor 132.for link in ${DELINKS} 133 ln -fs ../de_DE.ISO8859-1/LC_COLLATE \ 134 ${LOCALEDIR}/${link}.ISO8859-1/LC_COLLATE 135 ln -fs ../de_DE.ISO8859-15/LC_COLLATE \ 136 ${LOCALEDIR}/${link}.ISO8859-15/LC_COLLATE 137.endfor 138 ln -fs ../cs_CZ.ISO8859-2/LC_COLLATE \ 139 ${LOCALEDIR}/sk_SK.ISO8859-2/LC_COLLATE 140 ln -fs ../pt_PT.ISO8859-1/LC_COLLATE \ 141 ${LOCALEDIR}/pt_BR.ISO8859-1/LC_COLLATE 142.for link in ${UTF8LINKS} 143 ln -fs ../la_LN.US-ASCII/LC_COLLATE \ 144 ${LOCALEDIR}/${link}.UTF-8/LC_COLLATE 145.endfor 146 147.include <bsd.prog.mk> 148