summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2018-01-06 18:53:27 +0900
committerAkira TAGOH <akira@tagoh.org>2018-01-06 18:55:00 +0900
commit97488fd72577a86ffd52bbb42d781bad0dd723cf (patch)
tree6ee27e06ccf100736e06061ea4d6a962c1deb88a
parent030e2e4e9473532de5ef6bf4c7905bdf653dc6ef (diff)
export GETTEXTDATADIR to refer the local .its/.loc file instead of using --its option
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac1
-rw-r--r--its/Makefile.am6
-rw-r--r--its/fontconfig.its (renamed from src/fontconfig.its)0
-rw-r--r--its/fontconfig.loc (renamed from src/fontconfig.loc)0
-rw-r--r--po-conf/Makevars4
-rw-r--r--po-conf/POTFILES.in34
-rw-r--r--src/Makefile.am5
8 files changed, 44 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am
index 00ea568a..cc3024e6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,7 +24,7 @@
SUBDIRS=fontconfig fc-case fc-lang src \
fc-cache fc-cat fc-conflist fc-list fc-match \
fc-pattern fc-query fc-scan fc-validate conf.d \
- po po-conf test
+ its po po-conf test
if ENABLE_DOCS
SUBDIRS += doc
endif
diff --git a/configure.ac b/configure.ac
index c48180fd..e80479e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -778,6 +778,7 @@ fc-scan/Makefile
fc-validate/Makefile
doc/Makefile
doc/version.sgml
+its/Makefile
po/Makefile.in
po-conf/Makefile.in
test/Makefile
diff --git a/its/Makefile.am b/its/Makefile.am
new file mode 100644
index 00000000..87e77a1a
--- /dev/null
+++ b/its/Makefile.am
@@ -0,0 +1,6 @@
+gettextitsdir = $(datadir)/gettext/its
+gettextits_DATA = \
+ fontconfig.its \
+ fontconfig.loc
+
+-include $(top_srcdir)/git.mk
diff --git a/src/fontconfig.its b/its/fontconfig.its
index 9f359222..9f359222 100644
--- a/src/fontconfig.its
+++ b/its/fontconfig.its
diff --git a/src/fontconfig.loc b/its/fontconfig.loc
index 5bc4f6ce..5bc4f6ce 100644
--- a/src/fontconfig.loc
+++ b/its/fontconfig.loc
diff --git a/po-conf/Makevars b/po-conf/Makevars
index 84118216..abbd2209 100644
--- a/po-conf/Makevars
+++ b/po-conf/Makevars
@@ -8,7 +8,7 @@ subdir = po-conf
top_builddir = ..
# These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --its=$(top_srcdir)/src/fontconfig.its
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
@@ -77,4 +77,4 @@ PO_DEPENDS_ON_POT = yes
# externally.
DIST_DEPENDS_ON_UPDATE_PO = yes
-
+$(DOMAIN).pot-update: export GETTEXTDATADIR = $(top_srcdir)
diff --git a/po-conf/POTFILES.in b/po-conf/POTFILES.in
index e69de29b..f4846ac2 100644
--- a/po-conf/POTFILES.in
+++ b/po-conf/POTFILES.in
@@ -0,0 +1,34 @@
+conf.d/10-autohint.conf
+conf.d/10-hinting-full.conf
+conf.d/10-hinting-medium.conf
+conf.d/10-hinting-none.conf
+conf.d/10-hinting-slight.conf
+conf.d/10-no-sub-pixel.conf
+conf.d/10-scale-bitmap-fonts.conf
+conf.d/10-sub-pixel-bgr.conf
+conf.d/10-sub-pixel-rgb.conf
+conf.d/10-sub-pixel-vbgr.conf
+conf.d/10-sub-pixel-vrgb.conf
+conf.d/10-unhinted.conf
+conf.d/11-lcdfilter-default.conf
+conf.d/11-lcdfilter-legacy.conf
+conf.d/11-lcdfilter-light.conf
+conf.d/20-unhint-small-vera.conf
+conf.d/25-unhint-nonlatin.conf
+conf.d/30-metric-aliases.conf
+conf.d/40-nonlatin.conf
+conf.d/45-generic.conf
+conf.d/45-latin.conf
+conf.d/49-sansserif.conf
+conf.d/50-user.conf
+conf.d/51-local.conf
+conf.d/60-generic.conf
+conf.d/60-latin.conf
+conf.d/65-fonts-persian.conf
+conf.d/65-khmer.conf
+conf.d/65-nonlatin.conf
+conf.d/69-unifont.conf
+conf.d/70-no-bitmaps.conf
+conf.d/70-yes-bitmaps.conf
+conf.d/80-delicious.conf
+conf.d/90-synthetic.conf
diff --git a/src/Makefile.am b/src/Makefile.am
index d6c4931b..80780b62 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -218,9 +218,4 @@ fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES)
echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@
@ ! $(GREP) -q FcERROR $@ || ($(RM) $@; false)
-gettextitsdir = $(datadir)/gettext/its
-gettextits_DATA = \
- fontconfig.its \
- fontconfig.loc
-
-include $(top_srcdir)/git.mk