1997-03-01 00:28:08 +00:00
|
|
|
|
2021-08-03 15:02:16 +00:00
|
|
|
PACKAGE= locales
|
2015-10-27 23:35:02 +00:00
|
|
|
LOCALEDIR= ${SHAREDIR}/locale
|
2004-10-16 19:51:34 +00:00
|
|
|
FILESNAME= LC_COLLATE
|
2015-08-08 01:45:53 +00:00
|
|
|
.SUFFIXES: .src .LC_COLLATE
|
2017-11-03 13:52:34 +00:00
|
|
|
MAPLOC= ${.CURDIR}/../../tools/tools/locale/etc/final-maps
|
2015-08-08 01:45:53 +00:00
|
|
|
|
Add collation version support to querylocale(3).
Provide a way to ask for an opaque version string for a locale_t, so
that potential changes in sort order can be detected. Similar to
ICU's ucol_getVersion() and Windows' GetNLSVersionEx(), this API is
intended to allow databases to detect when text order-based indexes
might need to be rebuilt.
The CLDR version is extracted from CLDR source data by the Makefile
under tools/tools/locale, written into the machine-generated Makefile
under shared/colldef, passed to localedef -V, and then written into
LC_COLLATE file headers. The initial version is 34.0.
tools/tools/locale was recently updated to pull down 35.0, but the
output hasn't been committed under share/colldef yet, so that will
provide the first observable change when it happens. Other versioning
schemes are possible in future, because the format is unspecified.
Reviewed by: bapt, 0mp, kib, yuripv (albeit a long time ago)
Differential Revision: https://reviews.freebsd.org/D17166
2020-11-08 02:50:34 +00:00
|
|
|
CLDR_VERSION= "34.0"
|
|
|
|
|
2018-10-20 20:51:05 +00:00
|
|
|
.include <bsd.endian.mk>
|
|
|
|
|
2015-08-08 01:45:53 +00:00
|
|
|
.src.LC_COLLATE:
|
2018-10-20 20:51:05 +00:00
|
|
|
localedef ${LOCALEDEF_ENDIAN} -D -U -i ${.IMPSRC} \
|
Add collation version support to querylocale(3).
Provide a way to ask for an opaque version string for a locale_t, so
that potential changes in sort order can be detected. Similar to
ICU's ucol_getVersion() and Windows' GetNLSVersionEx(), this API is
intended to allow databases to detect when text order-based indexes
might need to be rebuilt.
The CLDR version is extracted from CLDR source data by the Makefile
under tools/tools/locale, written into the machine-generated Makefile
under shared/colldef, passed to localedef -V, and then written into
LC_COLLATE file headers. The initial version is 34.0.
tools/tools/locale was recently updated to pull down 35.0, but the
output hasn't been committed under share/colldef yet, so that will
provide the first observable change when it happens. Other versioning
schemes are possible in future, because the format is unspecified.
Reviewed by: bapt, 0mp, kib, yuripv (albeit a long time ago)
Differential Revision: https://reviews.freebsd.org/D17166
2020-11-08 02:50:34 +00:00
|
|
|
-V ${CLDR_VERSION} \
|
2016-07-03 18:21:11 +00:00
|
|
|
-f ${MAPLOC}/map.${.TARGET:T:R:E:C/@.*//} ${.OBJDIR}/${.IMPSRC:T:R}
|
2015-08-08 01:45:53 +00:00
|
|
|
|
2021-07-22 17:02:49 +00:00
|
|
|
LOCALES_MAPPED+= af_ZA.ISO8859-1 af_ZA.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= be_BY.ISO8859-5 be_BY.CP1251
|
|
|
|
LOCALES_MAPPED+= be_BY.ISO8859-5 be_BY.CP1131
|
|
|
|
LOCALES_MAPPED+= ru_RU.KOI8-R ru_RU.ISO8859-5
|
2021-08-03 12:37:26 +00:00
|
|
|
LOCALES_MAPPED+= ru_RU.KOI8-R ru_RU.CP866
|
2021-07-22 17:02:49 +00:00
|
|
|
LOCALES_MAPPED+= ru_RU.KOI8-R ru_RU.CP1251
|
|
|
|
LOCALES_MAPPED+= ru_RU.KOI8-R bg_BG.CP1251
|
|
|
|
LOCALES_MAPPED+= ca_IT.ISO8859-15 ca_IT.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= ca_IT.ISO8859-15 ca_FR.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= ca_IT.ISO8859-15 ca_FR.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= ca_IT.ISO8859-15 ca_ES.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= ca_IT.ISO8859-15 ca_ES.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= ca_IT.ISO8859-15 ca_AD.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= ca_IT.ISO8859-15 ca_AD.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 pt_PT.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 pt_BR.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 nl_NL.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 nl_NL.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 nl_BE.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 nl_BE.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 it_IT.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 it_IT.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 it_CH.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 it_CH.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 fr_FR.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 fr_FR.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 fr_CH.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 fr_CH.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 fr_BE.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 fr_BE.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 eu_ES.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 eu_ES.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_ZA.US-ASCII
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_ZA.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_ZA.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_US.US-ASCII
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_US.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_US.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_SG.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_NZ.US-ASCII
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_NZ.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_NZ.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_IE.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_IE.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_HK.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_GB.US-ASCII
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_GB.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_GB.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_CA.US-ASCII
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_CA.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_CA.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_AU.US-ASCII
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_AU.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 en_AU.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 de_DE.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 de_DE.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 de_CH.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 de_CH.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 de_AT.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= pt_PT.ISO8859-15 de_AT.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= es_MX.ISO8859-1 es_ES.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= es_MX.ISO8859-1 es_ES.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= es_MX.ISO8859-1 es_AR.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= et_EE.ISO8859-15 et_EE.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= fi_FI.ISO8859-15 fi_FI.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= fr_CA.ISO8859-15 fr_CA.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= is_IS.ISO8859-15 is_IS.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= sv_SE.ISO8859-15 sv_SE.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= sv_SE.ISO8859-15 sv_FI.ISO8859-15
|
|
|
|
LOCALES_MAPPED+= sv_SE.ISO8859-15 sv_FI.ISO8859-1
|
|
|
|
LOCALES_MAPPED+= uk_UA.KOI8-U uk_UA.ISO8859-5
|
|
|
|
LOCALES_MAPPED+= uk_UA.KOI8-U uk_UA.CP1251
|
2016-04-16 17:55:11 +00:00
|
|
|
|
2021-07-22 17:02:49 +00:00
|
|
|
LOCALES+= ko_KR.eucKR
|
|
|
|
LOCALES+= lt_LT.ISO8859-13
|
|
|
|
LOCALES+= lv_LV.ISO8859-13
|
|
|
|
LOCALES+= pl_PL.ISO8859-2
|
|
|
|
LOCALES+= ro_RO.ISO8859-2
|
|
|
|
LOCALES+= sl_SI.ISO8859-2
|
|
|
|
LOCALES+= sv_SE.ISO8859-15
|
|
|
|
LOCALES+= tr_TR.ISO8859-9
|
|
|
|
LOCALES+= uk_UA.KOI8-U
|
|
|
|
LOCALES+= ja_JP.SJIS
|
|
|
|
LOCALES+= is_IS.ISO8859-15
|
|
|
|
LOCALES+= hy_AM.ARMSCII-8
|
|
|
|
LOCALES+= hi_IN.ISCII-DEV
|
|
|
|
LOCALES+= fr_CA.ISO8859-15
|
|
|
|
LOCALES+= fi_FI.ISO8859-15
|
|
|
|
LOCALES+= et_EE.ISO8859-15
|
|
|
|
LOCALES+= es_MX.ISO8859-1
|
|
|
|
LOCALES+= af_ZA.ISO8859-1
|
2022-04-05 07:12:24 +00:00
|
|
|
LOCALES+= be_BY.ISO8859-5
|
2021-07-22 17:02:49 +00:00
|
|
|
LOCALES+= pt_PT.ISO8859-15
|
|
|
|
LOCALES+= el_GR.ISO8859-7
|
|
|
|
LOCALES+= ru_RU.KOI8-R
|
2022-04-05 07:12:24 +00:00
|
|
|
LOCALES+= ca_IT.ISO8859-15
|
2016-04-16 17:55:11 +00:00
|
|
|
LOCALES+= cs_CZ.ISO8859-2
|
|
|
|
LOCALES+= da_DK.ISO8859-1
|
|
|
|
LOCALES+= da_DK.ISO8859-15
|
|
|
|
LOCALES+= hr_HR.ISO8859-2
|
|
|
|
LOCALES+= hu_HU.ISO8859-2
|
|
|
|
LOCALES+= nb_NO.ISO8859-1
|
|
|
|
LOCALES+= nb_NO.ISO8859-15
|
|
|
|
LOCALES+= sk_SK.ISO8859-2
|
2016-12-18 04:17:13 +00:00
|
|
|
LOCALES+= sr_RS.ISO8859-2
|
|
|
|
LOCALES+= sr_RS.ISO8859-5
|
2016-07-03 18:21:11 +00:00
|
|
|
LOCALES+= zh_CN.GB2312
|
|
|
|
LOCALES+= zh_CN.eucCN
|
2017-04-20 18:21:50 +00:00
|
|
|
LOCALES+= zh_TW.Big5
|
2016-12-18 04:17:13 +00:00
|
|
|
LOCALES+= zh_CN.GB18030
|
|
|
|
LOCALES+= zh_CN.GBK
|
|
|
|
LOCALES+= ja_JP.eucJP
|
|
|
|
LOCALES+= nn_NO.ISO8859-15
|
|
|
|
LOCALES+= nn_NO.ISO8859-1
|
2016-04-16 17:55:11 +00:00
|
|
|
|
2015-12-18 21:34:28 +00:00
|
|
|
SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset)
|
2015-08-08 01:45:53 +00:00
|
|
|
|
|
|
|
FILES= ${LOCALES:S/$/.LC_COLLATE/}
|
2004-10-16 19:51:34 +00:00
|
|
|
CLEANFILES= ${FILES}
|
|
|
|
|
2015-12-18 21:34:28 +00:00
|
|
|
.for f t in ${SAME}
|
2021-08-03 16:00:45 +00:00
|
|
|
DIRS+= LOCALEDIR_$t
|
2021-08-06 12:36:06 +00:00
|
|
|
LOCALEDIR_${t}PACKAGE= locales
|
2021-08-03 16:00:45 +00:00
|
|
|
LOCALEDIR_$t= ${LOCALEDIR}/$t
|
2015-12-18 21:34:28 +00:00
|
|
|
SYMLINKS+= ../$f/${FILESNAME} \
|
|
|
|
${LOCALEDIR}/$t/${FILESNAME}
|
1999-01-21 19:41:38 +00:00
|
|
|
.endfor
|
2015-08-08 01:45:53 +00:00
|
|
|
|
|
|
|
.for f in ${LOCALES}
|
|
|
|
FILESDIR_${f}.LC_COLLATE= ${LOCALEDIR}/${f}
|
2021-08-06 12:36:06 +00:00
|
|
|
FILESDIR_${f}.LC_COLLATEPACKAGE= locales
|
2004-03-27 08:14:15 +00:00
|
|
|
.endfor
|
1995-11-03 14:53:53 +00:00
|
|
|
|
2016-04-16 17:55:11 +00:00
|
|
|
.for f t in ${LOCALES_MAPPED}
|
|
|
|
FILES+= $t.LC_COLLATE
|
2016-04-16 19:39:51 +00:00
|
|
|
FILESDIR_$t.LC_COLLATE= ${LOCALEDIR}/$t
|
2021-08-06 12:36:06 +00:00
|
|
|
FILESDIR_${t}.LC_COLLATEPACKAGE= locales
|
2016-04-16 17:55:11 +00:00
|
|
|
$t.LC_COLLATE: ${.CURDIR}/$f.src
|
2018-10-20 20:51:05 +00:00
|
|
|
localedef ${LOCALEDEF_ENDIAN} -D -U -i ${.ALLSRC} \
|
Add collation version support to querylocale(3).
Provide a way to ask for an opaque version string for a locale_t, so
that potential changes in sort order can be detected. Similar to
ICU's ucol_getVersion() and Windows' GetNLSVersionEx(), this API is
intended to allow databases to detect when text order-based indexes
might need to be rebuilt.
The CLDR version is extracted from CLDR source data by the Makefile
under tools/tools/locale, written into the machine-generated Makefile
under shared/colldef, passed to localedef -V, and then written into
LC_COLLATE file headers. The initial version is 34.0.
tools/tools/locale was recently updated to pull down 35.0, but the
output hasn't been committed under share/colldef yet, so that will
provide the first observable change when it happens. Other versioning
schemes are possible in future, because the format is unspecified.
Reviewed by: bapt, 0mp, kib, yuripv (albeit a long time ago)
Differential Revision: https://reviews.freebsd.org/D17166
2020-11-08 02:50:34 +00:00
|
|
|
-V ${CLDR_VERSION} \
|
2016-07-03 18:21:11 +00:00
|
|
|
-f ${MAPLOC}/map.${.TARGET:T:R:E:C/@.*//} \
|
2016-04-16 17:55:11 +00:00
|
|
|
${.OBJDIR}/${.TARGET:T:R}
|
|
|
|
.endfor
|
|
|
|
|
1995-11-03 14:53:53 +00:00
|
|
|
.include <bsd.prog.mk>
|