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