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