PACKAGE=	locales
LOCALEDIR=	${SHAREDIR}/locale
FILESNAME=	LC_TIME
.SUFFIXES:	.src .out

.src.out:
	grep -v -E '^(#$$|#[ ])' < ${.IMPSRC} > ${.TARGET}

LOCALES+=	af_ZA.UTF-8
LOCALES+=	am_ET.UTF-8
LOCALES+=	ar_JO.UTF-8
LOCALES+=	ar_MA.UTF-8
LOCALES+=	ar_SA.UTF-8
LOCALES+=	be_BY.CP1131
LOCALES+=	be_BY.CP1251
LOCALES+=	be_BY.ISO8859-5
LOCALES+=	be_BY.UTF-8
LOCALES+=	bg_BG.CP1251
LOCALES+=	bg_BG.UTF-8
LOCALES+=	ca_IT.ISO8859-15
LOCALES+=	ca_IT.UTF-8
LOCALES+=	cs_CZ.ISO8859-2
LOCALES+=	cs_CZ.UTF-8
LOCALES+=	da_DK.ISO8859-15
LOCALES+=	da_DK.UTF-8
LOCALES+=	de_AT.ISO8859-15
LOCALES+=	de_AT.UTF-8
LOCALES+=	de_DE.ISO8859-15
LOCALES+=	de_DE.UTF-8
LOCALES+=	el_GR.ISO8859-7
LOCALES+=	el_GR.UTF-8
LOCALES+=	en_CA.UTF-8
LOCALES+=	en_GB.UTF-8
LOCALES+=	en_IE.UTF-8
LOCALES+=	en_PH.UTF-8
LOCALES+=	en_SG.UTF-8
LOCALES+=	en_US.UTF-8
LOCALES+=	en_ZA.UTF-8
LOCALES+=	es_AR.ISO8859-1
LOCALES+=	es_CR.UTF-8
LOCALES+=	es_ES.ISO8859-15
LOCALES+=	es_ES.UTF-8
LOCALES+=	es_MX.ISO8859-1
LOCALES+=	es_MX.UTF-8
LOCALES+=	et_EE.ISO8859-15
LOCALES+=	et_EE.UTF-8
LOCALES+=	eu_ES.UTF-8
LOCALES+=	fa_AF.UTF-8
LOCALES+=	fa_IR.UTF-8
LOCALES+=	fi_FI.ISO8859-15
LOCALES+=	fi_FI.UTF-8
LOCALES+=	fr_BE.ISO8859-15
LOCALES+=	fr_BE.UTF-8
LOCALES+=	fr_CA.ISO8859-15
LOCALES+=	fr_CA.UTF-8
LOCALES+=	fr_CH.ISO8859-15
LOCALES+=	fr_CH.UTF-8
LOCALES+=	fr_FR.ISO8859-15
LOCALES+=	fr_FR.UTF-8
LOCALES+=	ga_IE.UTF-8
LOCALES+=	he_IL.UTF-8
LOCALES+=	hi_IN.ISCII-DEV
LOCALES+=	hi_IN.UTF-8
LOCALES+=	hr_HR.ISO8859-2
LOCALES+=	hr_HR.UTF-8
LOCALES+=	hu_HU.ISO8859-2
LOCALES+=	hu_HU.UTF-8
LOCALES+=	hy_AM.ARMSCII-8
LOCALES+=	hy_AM.UTF-8
LOCALES+=	is_IS.ISO8859-15
LOCALES+=	is_IS.UTF-8
LOCALES+=	it_CH.ISO8859-15
LOCALES+=	it_CH.UTF-8
LOCALES+=	it_IT.ISO8859-15
LOCALES+=	it_IT.UTF-8
LOCALES+=	ja_JP.SJIS
LOCALES+=	ja_JP.UTF-8
LOCALES+=	ja_JP.eucJP
LOCALES+=	kk_KZ.UTF-8
LOCALES+=	ko_KR.UTF-8
LOCALES+=	ko_KR.eucKR
LOCALES+=	lt_LT.ISO8859-13
LOCALES+=	lt_LT.UTF-8
LOCALES+=	lv_LV.ISO8859-13
LOCALES+=	lv_LV.UTF-8
LOCALES+=	mn_MN.UTF-8
LOCALES+=	nb_NO.ISO8859-15
LOCALES+=	nb_NO.UTF-8
LOCALES+=	nl_BE.UTF-8
LOCALES+=	nl_NL.UTF-8
LOCALES+=	nn_NO.ISO8859-15
LOCALES+=	nn_NO.UTF-8
LOCALES+=	pl_PL.ISO8859-2
LOCALES+=	pl_PL.UTF-8
LOCALES+=	pt_BR.ISO8859-1
LOCALES+=	pt_BR.UTF-8
LOCALES+=	pt_PT.ISO8859-15
LOCALES+=	pt_PT.UTF-8
LOCALES+=	ro_RO.ISO8859-2
LOCALES+=	ro_RO.UTF-8
LOCALES+=	ru_RU.CP1251
LOCALES+=	ru_RU.CP866
LOCALES+=	ru_RU.ISO8859-5
LOCALES+=	ru_RU.KOI8-R
LOCALES+=	ru_RU.UTF-8
LOCALES+=	se_FI.UTF-8
LOCALES+=	se_NO.UTF-8
LOCALES+=	sk_SK.ISO8859-2
LOCALES+=	sk_SK.UTF-8
LOCALES+=	sl_SI.ISO8859-2
LOCALES+=	sl_SI.UTF-8
LOCALES+=	sr_RS.ISO8859-5
LOCALES+=	sr_RS.UTF-8
LOCALES+=	sr_RS.ISO8859-2
LOCALES+=	sr_RS.UTF-8@latin
LOCALES+=	sv_FI.ISO8859-15
LOCALES+=	sv_FI.UTF-8
LOCALES+=	sv_SE.ISO8859-15
LOCALES+=	sv_SE.UTF-8
LOCALES+=	tr_TR.ISO8859-9
LOCALES+=	tr_TR.UTF-8
LOCALES+=	uk_UA.CP1251
LOCALES+=	uk_UA.ISO8859-5
LOCALES+=	uk_UA.KOI8-U
LOCALES+=	uk_UA.UTF-8
LOCALES+=	zh_CN.GB2312
LOCALES+=	zh_CN.GBK
LOCALES+=	zh_CN.UTF-8
LOCALES+=	zh_CN.eucCN
LOCALES+=	zh_HK.UTF-8
LOCALES+=	zh_TW.Big5
LOCALES+=	zh_TW.UTF-8



SAME+=		af_ZA.UTF-8 af_ZA.ISO8859-15
SAME+=		af_ZA.UTF-8 af_ZA.ISO8859-1
SAME+=		ar_SA.UTF-8 ar_QA.UTF-8
SAME+=		ar_SA.UTF-8 ar_EG.UTF-8
SAME+=		ar_SA.UTF-8 ar_AE.UTF-8
SAME+=		ca_IT.ISO8859-15 ca_IT.ISO8859-1
SAME+=		ca_IT.ISO8859-15 ca_FR.ISO8859-15
SAME+=		ca_IT.ISO8859-15 ca_FR.ISO8859-1
SAME+=		ca_IT.ISO8859-15 ca_ES.ISO8859-15
SAME+=		ca_IT.ISO8859-15 ca_ES.ISO8859-1
SAME+=		ca_IT.ISO8859-15 ca_AD.ISO8859-15
SAME+=		ca_IT.ISO8859-15 ca_AD.ISO8859-1
SAME+=		ca_IT.UTF-8 ca_FR.UTF-8
SAME+=		ca_IT.UTF-8 ca_ES.UTF-8
SAME+=		ca_IT.UTF-8 ca_AD.UTF-8
SAME+=		da_DK.ISO8859-15 da_DK.ISO8859-1
SAME+=		de_AT.ISO8859-15 de_AT.ISO8859-1
SAME+=		de_DE.ISO8859-15 de_DE.ISO8859-1
SAME+=		de_DE.ISO8859-15 de_CH.ISO8859-15
SAME+=		de_DE.ISO8859-15 de_CH.ISO8859-1
SAME+=		de_DE.UTF-8 de_CH.UTF-8
SAME+=		en_PH.UTF-8 en_HK.UTF-8
SAME+=		en_PH.UTF-8 en_HK.ISO8859-1
SAME+=		en_PH.UTF-8 en_AU.UTF-8
SAME+=		en_PH.UTF-8 en_AU.US-ASCII
SAME+=		en_PH.UTF-8 en_AU.ISO8859-15
SAME+=		en_PH.UTF-8 en_AU.ISO8859-1
SAME+=		en_CA.UTF-8 en_CA.US-ASCII
SAME+=		en_CA.UTF-8 en_CA.ISO8859-15
SAME+=		en_CA.UTF-8 en_CA.ISO8859-1
SAME+=		en_GB.UTF-8 en_GB.US-ASCII
SAME+=		en_GB.UTF-8 en_GB.ISO8859-15
SAME+=		en_GB.UTF-8 en_GB.ISO8859-1
SAME+=		en_IE.UTF-8 en_IE.ISO8859-15
SAME+=		en_IE.UTF-8 en_IE.ISO8859-1
SAME+=		en_SG.UTF-8 en_SG.ISO8859-1
SAME+=		en_SG.UTF-8 en_NZ.UTF-8
SAME+=		en_SG.UTF-8 en_NZ.US-ASCII
SAME+=		en_SG.UTF-8 en_NZ.ISO8859-15
SAME+=		en_SG.UTF-8 en_NZ.ISO8859-1
SAME+=		en_US.UTF-8 en_US.US-ASCII
SAME+=		en_US.UTF-8 en_US.ISO8859-15
SAME+=		en_US.UTF-8 en_US.ISO8859-1
SAME+=		en_ZA.UTF-8 en_ZA.US-ASCII
SAME+=		en_ZA.UTF-8 en_ZA.ISO8859-15
SAME+=		en_ZA.UTF-8 en_ZA.ISO8859-1
SAME+=		es_CR.UTF-8 es_AR.UTF-8
SAME+=		es_ES.ISO8859-15 es_ES.ISO8859-1
SAME+=		et_EE.ISO8859-15 et_EE.ISO8859-1
SAME+=		eu_ES.UTF-8 eu_ES.ISO8859-15
SAME+=		eu_ES.UTF-8 eu_ES.ISO8859-1
SAME+=		fi_FI.ISO8859-15 fi_FI.ISO8859-1
SAME+=		fr_BE.ISO8859-15 fr_BE.ISO8859-1
SAME+=		fr_CA.ISO8859-15 fr_CA.ISO8859-1
SAME+=		fr_CH.ISO8859-15 fr_CH.ISO8859-1
SAME+=		fr_FR.ISO8859-15 fr_FR.ISO8859-1
SAME+=		is_IS.ISO8859-15 is_IS.ISO8859-1
SAME+=		it_CH.ISO8859-15 it_CH.ISO8859-1
SAME+=		it_IT.ISO8859-15 it_IT.ISO8859-1
SAME+=		nb_NO.ISO8859-15 nb_NO.ISO8859-1
SAME+=		nl_BE.UTF-8 nl_BE.ISO8859-15
SAME+=		nl_BE.UTF-8 nl_BE.ISO8859-1
SAME+=		nl_NL.UTF-8 nl_NL.ISO8859-15
SAME+=		nl_NL.UTF-8 nl_NL.ISO8859-1
SAME+=		nn_NO.ISO8859-15 nn_NO.ISO8859-1
SAME+=		pt_PT.ISO8859-15 pt_PT.ISO8859-1
SAME+=		sv_FI.ISO8859-15 sv_FI.ISO8859-1
SAME+=		sv_SE.ISO8859-15 sv_SE.ISO8859-1
SAME+=		zh_CN.GBK zh_CN.GB18030
SAME+=		ko_KR.eucKR ko_KR.CP949	# legacy (same charset)

FILES=		${LOCALES:S/$/.out/}
CLEANFILES=	${FILES}

.for f t in ${SAME}
DIRS+=		LOCALEDIR_$t
LOCALEDIR_$t=	${LOCALEDIR}/$t
LOCALEDIR_$tPACKAGE=	locales
SYMLINKS+=	../$f/${FILESNAME} \
    ${LOCALEDIR}/$t/${FILESNAME}
.endfor

.for f in ${LOCALES}
FILESDIR_${f}.out= ${LOCALEDIR}/${f}
FILESDIR_${f}.outPACKAGE=	locales
.endfor

.include <bsd.prog.mk>
