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