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