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