[cantarell-fonts] build: Add --disable-source-rebuild configure option



commit eb910dbcd6e9a7b9ce0b88093260c2bebd8aa9e6
Author: Colin Walters <walters verbum org>
Date:   Fri Sep 14 11:09:22 2012 -0400

    build: Add --disable-source-rebuild configure option
    
    For GNOME-OSTree, this lets us avoid pulling in fontforge for now.

 configure.ac    |    5 +++++
 otf/Makefile.am |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index eb1b017..09ac79e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,11 @@ AC_INIT([cantarell-fonts], [0.0.10],
 
 AM_INIT_AUTOMAKE([1.9 tar-ustar foreign dist-bzip2 no-dist-gzip])
 
+AC_ARG_ENABLE(source-rebuild,
+	    AS_HELP_STRING([--disable-source-rebuild], [Do not rebuild from source using fontforge]),,
+	    enable_source_rebuild=yes)
+AM_CONDITIONAL(SOURCE_REBUILD, test x$enable_source_rebuild != xno)
+
 PKG_PROG_PKG_CONFIG([0.19])
 AC_PROG_SED
 
diff --git a/otf/Makefile.am b/otf/Makefile.am
index 6cfb8b9..b9ea8e9 100644
--- a/otf/Makefile.am
+++ b/otf/Makefile.am
@@ -4,8 +4,10 @@ font_DATA = \
 	Cantarell-Regular.otf		\
 	Cantarell-Bold.otf
 
+if SOURCE_REBUILD
 %.otf: $(top_srcdir)/src/%.sfd
 	/usr/bin/env fontforge -script $(top_srcdir)/scripts/generate.sh "$^"
+endif
 
 EXTRA_DIST = $(font_DATA)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]