From 125e927908d442b751f262bb9257df66d327d59e Mon Sep 17 00:00:00 2001 From: Jean-Francois Doyon Date: Fri, 3 Mar 2006 00:18:08 +0000 Subject: [PATCH] Fix the build process to install the included free ttf fonts. --- SConstruct | 4 ++++ fonts/SConscript | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 fonts/SConscript diff --git a/SConstruct b/SConstruct index 379f89041..17b0476d4 100644 --- a/SConstruct +++ b/SConstruct @@ -156,3 +156,7 @@ if 'raster' in inputplugins: # Build the core library SConscript('src/SConscript') + +# Install some free default fonts + +SConscript('fonts/SConscript') diff --git a/fonts/SConscript b/fonts/SConscript new file mode 100644 index 000000000..63810a92b --- /dev/null +++ b/fonts/SConscript @@ -0,0 +1,27 @@ +# This file is part of Mapnik (c++ mapping toolkit) +# Copyright (C) 2005 Artem Pavlenko, Jean-Francois Doyon +# +# Mapnik is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# $Id$ + +import glob + +Import('env') + +prefix = env['PREFIX'] + +includes = glob.glob('*/*.ttf') +env.Alias(target='install', source=env.Install(prefix+'/lib/mapnik/fonts', includes))