summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-10-07 20:06:32 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-10-07 20:06:32 -0700
commit6e3050400a87993616fceec7ab8188b89a6b4156 (patch)
tree48e546065b06f74b3c8cd373a207698b69384dec
parent4c32e24528294394f0fb8f095bf9aa860c75b5df (diff)
Migrate to xorg macros 1.3 & font-util 1.1 macros
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--Makefile.am11
-rw-r--r--configure.ac33
2 files changed, 18 insertions, 26 deletions
diff --git a/Makefile.am b/Makefile.am
index d369f30..7bfc2d5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,13 +23,13 @@ FONT_FILES = \
proof9x16
BDF_FILES = $(FONT_FILES:%=%.bdf)
-PCF_FILES = $(FONT_FILES:%=%.pcf.gz)
+PCF_FILES = $(FONT_FILES:%=%.pcf$(COMPRESS_SUFFIX))
-SUFFIXES = .bdf .pcf.gz
+SUFFIXES = .bdf .pcf$(COMPRESS_SUFFIX)
-.bdf.pcf.gz:
+.bdf.pcf$(COMPRESS_SUFFIX):
@rm -f $@
- $(BDFTOPCF) -t $< | gzip > $@
+ $(AM_V_GEN)$(BDFTOPCF) -t $< | $(COMPRESS) > $@
fontdir = @FONTDIR@
font_DATA = $(PCF_FILES)
@@ -38,10 +38,9 @@ CLEANFILES = $(font_DATA)
EXTRA_DIST = $(BDF_FILES)
install-data-hook:
- @rm -f $(DESTDIR)$(fontdir)/fonts.scale
- $(MKFONTSCALE) $(DESTDIR)$(fontdir)
@rm -f $(DESTDIR)$(fontdir)/font.dir
$(MKFONTDIR) $(DESTDIR)$(fontdir)
+ @RUN_FCCACHE@
distuninstallcheck:
@:
diff --git a/configure.ac b/configure.ac
index 9ce93f2..aaaed3d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,28 +26,21 @@ AC_INIT(font-winitzki-cyrillic, [1.0.0], [https://bugs.freedesktop.org/enter_bug
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_MAINTAINER_MODE
-# Require xorg-macros: XORG_CHANGELOG
-m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])])
-XORG_MACROS_VERSION(1.2)
-AC_PROG_INSTALL
-AC_PATH_PROG(BDFTOPCF, bdftopcf)
-AC_PATH_PROG(MKFONTSCALE, mkfontscale)
-if test x"$MKFONTSCALE" = x; then
- AC_MSG_ERROR([mkfontscale is required to build winitzki-cyrillic fonts.])
-fi
-AC_PATH_PROG(MKFONTDIR, mkfontdir)
-if test x"$MKFONTDIR" = x; then
- AC_MSG_ERROR([mkfontdir is required to build winitzki-cyrillic fonts.])
-fi
+# Require xorg-macros: XORG_DEFAULT_OPTIONS
+m4_ifndef([XORG_MACROS_VERSION],
+ [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.3)
+XORG_DEFAULT_OPTIONS
+
+AC_PROG_INSTALL
-fontdir=${libdir}/X11/fonts/cyrillic
-AC_ARG_WITH(fontdir, AC_HELP_STRING([--with-fontdir=<pathname>],
- [Path to install fonts]), [fontdir="$withval"])
-FONTDIR="$fontdir"
-AC_SUBST(FONTDIR)
+# Require X.Org's font util macros 1.1 or later
+m4_ifndef([XORG_FONT_MACROS_VERSION],
+ [m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])])
+XORG_FONT_MACROS_VERSION(1.1)
-XORG_RELEASE_VERSION
-XORG_CHANGELOG
+XORG_FONTDIR([cyrillic])
+XORG_FONT_BDF_UTILS
AC_OUTPUT([Makefile])