1# $FreeBSD$ 2 3NOMAN=YES 4CLEANFILES+= ${LOCALES:S/$/.out/g} 5 6LOCALES= bg_BG.CP1251 \ 7 cs_CZ.ISO8859-2 \ 8 de_DE.ISO8859-1 \ 9 de_DE.ISO8859-15 \ 10 el_GR.ISO8859-7 \ 11 es_ES.ISO8859-1 \ 12 es_ES.ISO8859-15 \ 13 et_EE.ISO8859-15 \ 14 hi_IN.ISCII-DEV \ 15 is_IS.ISO8859-1 \ 16 is_IS.ISO8859-15 \ 17 la_LN.ISO8859-1 \ 18 la_LN.ISO8859-15 \ 19 la_LN.ISO8859-2 \ 20 la_LN.ISO8859-4 \ 21 la_LN.US-ASCII \ 22 lt_LT.ISO8859-4 \ 23 ru_RU.CP866 \ 24 ru_RU.ISO8859-5 \ 25 ru_RU.KOI8-R \ 26 sv_SE.ISO8859-1 \ 27 sv_SE.ISO8859-15 \ 28 uk_UA.ISO8859-5 \ 29 uk_UA.KOI8-U 30 31LOCALEDIR= ${DESTDIR}/usr/share/locale 32 33ASCIILINKS= en_AU.US-ASCII en_CA.US-ASCII en_GB.US-ASCII en_NZ.US-ASCII \ 34 en_US.US-ASCII ko_KR.eucKR ja_JP.eucJP ja_JP.SJIS zh_CN.eucCN 35DELINKS= de_AT de_CH 36ZHLINKS= zh_TW.Big5 37 38LATIN1LINKS= af_ZA da_DK en_AU en_CA en_GB en_NZ en_US fi_FI \ 39 fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL no_NO \ 40 pt_PT 41 42LATIN2LINKS= hr_HR hu_HU pl_PL ro_RO sl_SI 43 44.SUFFIXES: .src .out 45 46.src.out: 47 colldef -I ${.CURDIR} -o ${.TARGET} ${.IMPSRC} 48 49all: ${LOCALES:S/$/.out/g} 50 51bg_BG.CP1251.out: map.CP1251 52cs_CZ.ISO8859-2.out: map.ISO8859-2 53de_DE.ISO8859-15.out: map.ISO8859-15 54de_DE.ISO8859-1.out: map.ISO8859-1 55el_GR.ISO8859-7.out: map.ISO8859-7 56es_ES.ISO8859-15.out: map.ISO8859-15 57es_ES.ISO8859-1.out: map.ISO8859-1 58et_EE.ISO8859-15.out: map.ISO8859-15 59hi_IN.ISCII-DEV.out: map.ISCII-DEV 60is_IS.ISO8859-15.out: map.ISO8859-15 61is_IS.ISO8859-1.out: map.ISO8859-1 62la_LN.ISO8859-15.out: map.ISO8859-15 63la_LN.ISO8859-1.out: map.ISO8859-1 64la_LN.ISO8859-4.out: map.ISO8859-4 65lt_LT.ISO8859-4.out: map.ISO8859-4 66ru_RU.CP866.out: map.CP866 67ru_RU.ISO8859-5.out: map.ISO8859-5 68ru_RU.KOI8-R.out: map.KOI8-R 69sv_SE.ISO8859-15.out: map.ISO8859-15 70sv_SE.ISO8859-1.out: map.ISO8859-1 71uk_UA.ISO8859-5.out: map.ISO8859-5 72uk_UA.KOI8-U.out: map.KOI8-U 73 74afterinstall: 75.for locale in ${LOCALES} 76 ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} \ 77 ${locale}.out ${LOCALEDIR}/${locale}/LC_COLLATE 78.endfor 79.for link in ${ASCIILINKS} 80 ln -fs ../la_LN.US-ASCII/LC_COLLATE \ 81 ${LOCALEDIR}/${link}/LC_COLLATE 82.endfor 83.for link in ${ZHLINKS} 84 ln -fs ../is_IS.ISO8859-1/LC_COLLATE \ 85 ${LOCALEDIR}/${link}/LC_COLLATE 86.endfor 87.for link in ${LATIN1LINKS} 88 ln -fs ../la_LN.ISO8859-1/LC_COLLATE \ 89 ${LOCALEDIR}/${link}.ISO8859-1/LC_COLLATE 90 ln -fs ../la_LN.ISO8859-15/LC_COLLATE \ 91 ${LOCALEDIR}/${link}.ISO8859-15/LC_COLLATE 92.endfor 93.for link in ${LATIN2LINKS} 94 ln -fs ../la_LN.ISO8859-2/LC_COLLATE \ 95 ${LOCALEDIR}/${link}.ISO8859-2/LC_COLLATE 96.endfor 97.for link in ${DELINKS} 98 ln -fs ../de_DE.ISO8859-1/LC_COLLATE \ 99 ${LOCALEDIR}/${link}.ISO8859-1/LC_COLLATE 100 ln -fs ../de_DE.ISO8859-15/LC_COLLATE \ 101 ${LOCALEDIR}/${link}.ISO8859-15/LC_COLLATE 102.endfor 103 ln -fs ../cs_CZ.ISO8859-2/LC_COLLATE \ 104 ${LOCALEDIR}/sk_SK.ISO8859-2/LC_COLLATE 105 106.include <bsd.prog.mk> 107