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