diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 18 | ||||
-rw-r--r-- | encodings/Makefile.am | 49 | ||||
-rw-r--r-- | encodings/large/Makefile.am | 29 | ||||
-rw-r--r-- | src/Makefile.am | 3 |
5 files changed, 99 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index ad9f262..4129ff1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,7 +19,7 @@ # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -SUBDIRS = src +SUBDIRS = src encodings pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = fontenc.pc diff --git a/configure.ac b/configure.ac index 4e4bf13..cf0cc3c 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,22 @@ AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_LIBTOOL +# mkfontscale + +AC_PATH_PROG(MKFONTSCALE, mkfontscale) +if [[ -z $MKFONTSCALE ]]; then + AC_MSG_ERROR([mkfontscale is needed to build fontenc. FIXME: when we + know where it is going to live, put a more informative + comment here]) +fi + +# gzip + +AC_PATH_PROG(GZIP, gzip) +if [[ -z $GZIP ]]; then + AC_MSG_ERROR([gzip is needed to compress font encodings]) +fi + # Check for dependencies PKG_CHECK_MODULES(DEP, x11) @@ -40,5 +56,7 @@ AC_SUBST(DEP_CFLAGS) AC_SUBST(DEP_LIBS) AC_OUTPUT([Makefile + encodings/Makefile + encodings/large/Makefile src/Makefile fontenc.pc]) diff --git a/encodings/Makefile.am b/encodings/Makefile.am new file mode 100644 index 0000000..21d21f6 --- /dev/null +++ b/encodings/Makefile.am @@ -0,0 +1,49 @@ +SUBDIRS = large + +encodingsdir = $(libdir)/X11/fonts/encodings + +ENCODING_FILES = \ + adobe-dingbats.enc \ + adobe-standard.enc \ + adobe-symbol.enc \ + ansi-1251.enc \ + armscii-8.enc \ + ascii-0.enc \ + dec-special.enc \ + ibm-cp437.enc \ + ibm-cp850.enc \ + ibm-cp852.enc \ + ibm-cp866.enc \ + iso8859-11.enc \ + iso8859-13.enc \ + iso8859-16.enc \ + iso8859-6.16.enc \ + iso8859-6.8x.enc \ + microsoft-cp1250.enc \ + microsoft-cp1251.enc \ + microsoft-cp1252.enc \ + microsoft-cp1253.enc \ + microsoft-cp1254.enc \ + microsoft-cp1255.enc \ + microsoft-cp1256.enc \ + microsoft-cp1257.enc \ + microsoft-cp1258.enc \ + microsoft-win3.1.enc \ + mulearabic-0.enc \ + mulearabic-1.enc \ + mulearabic-2.enc \ + mulelao-1.enc \ + suneu-greek.enc \ + tcvn-0.enc \ + tis620-2.enc \ + viscii1.1-1.enc + +EXTRA_DIST = $(ENCODING_FILES) + +COMPRESSED = $(foreach FILE, $(ENCODING_FILES), $(FILE).gz) + +$(COMPRESSED): %.enc.gz: %.enc + @GZIP@ -c < $< > $@ + +encodings_DATA = $(COMPRESSED) +CLEANFILES = $(COMPRESSED) diff --git a/encodings/large/Makefile.am b/encodings/large/Makefile.am new file mode 100644 index 0000000..929557b --- /dev/null +++ b/encodings/large/Makefile.am @@ -0,0 +1,29 @@ +encodingsdir = $(libdir)/X11/fonts/encodings + +ENCODING_FILES = \ + big5.eten-0.enc \ + big5hkscs-0.enc \ + cns11643-1.enc \ + cns11643-2.enc \ + cns11643-3.enc \ + gb18030-0.enc \ + gb18030.2000-0.enc \ + gb18030.2000-1.enc \ + gb2312.1980-0.enc \ + gbk-0.enc \ + jisx0201.1976-0.enc \ + jisx0208.1990-0.enc \ + jisx0212.1990-0.enc \ + ksc5601.1987-0.enc \ + ksc5601.1992-3.enc \ + sun.unicode.india-0.enc + +EXTRA_DIST = $(ENCODING_FILES) + +COMPRESSED = $(foreach FILE, $(ENCODING_FILES), $(FILE).gz) + +$(COMPRESSED): %.enc.gz: %.enc + @GZIP@ -c < $< > $@ + +encodings_DATA = $(COMPRESSED) +CLEANFILES = $(COMPRESSED) diff --git a/src/Makefile.am b/src/Makefile.am index 343b7cd..a6aafe0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,7 +2,8 @@ lib_LTLIBRARIES = libfontenc.la libfontenc_la_SOURCES = \ encparse.c \ - fontenc.c + fontenc.c \ + fontencI.h FONTDIR=${libdir}/X11/fonts FONTENCDEFS = -DFONT_ENCODINGS_DIRECTORY=\"$(FONTDIR)/encodings/encodings.dir\" |