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 ja_JP.SJIS \ 42 zh_TW.Big5 \ 43 zh_CN.eucCN 44 45LOCALEDIR= ${DESTDIR}/usr/share/locale 46 47ASCIILINKS= en_CA en_GB en_US 48LATIN15LINKS= af_ZA da_DK de_DE en_CA en_GB en_US es_ES fi_FI fr_BE fr_CH \ 49 fr_FR is_IS it_IT nl_NL no_NO pt_PT sv_SE 50 51GB_LINKS= en_AU en_NZ 52FR_LINKS= fr_CA 53DE_LINKS= de_AT de_CH 54CZ_LINKS= sk_SK 55IT_LINKS= it_CH 56NL_LINKS= nl_BE 57PT_LINKS= pt_BR 58 59.SUFFIXES: .src .out 60 61.src.out: 62 grep -v '^#' < ${.IMPSRC} > ${.TARGET} 63 64all: ${LOCALES:S/$/.out/g} 65 66afterinstall: 67# HACK: remove LC_MESSAGES directories before installing LC_MESSAGES file 68 -rm -rf ${LOCALEDIR}/*/LC_MESSAGES 69.for lang in ${LOCALES} 70 ${INSTALL} ${COPY} -m 644 -o ${BINOWN} -g ${BINGRP} ${lang}.out \ 71 ${LOCALEDIR}/${lang}/LC_MESSAGES 72.endfor 73.for link in ${LATIN15LINKS} 74 ln -sf ../${link}.ISO8859-1/LC_MESSAGES \ 75 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES 76.endfor 77.for link in ${GB_LINKS} 78 ln -sf ../en_GB.ISO8859-1/LC_MESSAGES \ 79 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES 80 ln -sf ../en_GB.ISO8859-1/LC_MESSAGES \ 81 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES 82 ln -sf ../en_GB.ISO8859-1/LC_MESSAGES \ 83 ${LOCALEDIR}/${link}.US-ASCII/LC_MESSAGES 84.endfor 85.for link in ${FR_LINKS} 86 ln -sf ../fr_FR.ISO8859-1/LC_MESSAGES \ 87 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES 88 ln -sf ../fr_FR.ISO8859-1/LC_MESSAGES \ 89 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES 90.endfor 91.for link in ${DE_LINKS} 92 ln -sf ../de_DE.ISO8859-1/LC_MESSAGES \ 93 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES 94 ln -sf ../de_DE.ISO8859-1/LC_MESSAGES \ 95 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES 96.endfor 97.for link in ${IT_LINKS} 98 ln -sf ../it_IT.ISO8859-1/LC_MESSAGES \ 99 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES 100 ln -sf ../it_IT.ISO8859-1/LC_MESSAGES \ 101 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES 102.endfor 103.for link in ${NL_LINKS} 104 ln -sf ../nl_NL.ISO8859-1/LC_MESSAGES \ 105 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES 106 ln -sf ../nl_NL.ISO8859-1/LC_MESSAGES \ 107 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES 108.endfor 109.for link in ${CZ_LINKS} 110 ln -sf ../cs_CZ.ISO8859-2/LC_MESSAGES \ 111 ${LOCALEDIR}/${link}.ISO8859-2/LC_MESSAGES 112.endfor 113.for link in ${PT_LINKS} 114 ln -sf ../pt_PT.ISO8859-1/LC_MESSAGES \ 115 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES 116.endfor 117.for link in ${ASCIILINKS} 118 ln -sf ../${link}.ISO8859-1/LC_MESSAGES \ 119 ${LOCALEDIR}/${link}.US-ASCII/LC_MESSAGES 120.endfor 121 122.include <bsd.prog.mk> 123