root/trunk/fonts/SConscript

Revision 414, 1.0 kB (checked in by pavlenko, 2 years ago)

Added DESTDIR option which is used as an additional prefix for the purposes of
installing files. It is useful for binary distributions (eg
RPM etc). Thanks to Dominic Hargreaves!

Line 
1#  This file is part of Mapnik (c++ mapping toolkit)
2#  Copyright (C) 2005 Artem Pavlenko, Jean-Francois Doyon
3#
4#  Mapnik is free software; you can redistribute it and/or
5#  modify it under the terms of the GNU General Public License
6#  as published by the Free Software Foundation; either version 2
7#  of the License, or any later version.
8#
9#  This program is distributed in the hope that it will be useful,
10#  but WITHOUT ANY WARRANTY; without even the implied warranty of
11#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12#  GNU General Public License for more details.
13#
14#  You should have received a copy of the GNU General Public License
15#  along with this program; if not, write to the Free Software
16#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17#
18# $Id$
19
20import glob
21
22Import('env')
23
24prefix = env['PREFIX']
25install_prefix = env['DESTDIR'] + '/' + prefix
26
27includes = glob.glob('*/*.ttf')
28env.Alias(target='install', source=env.Install(install_prefix+'/' + env['LIBDIR_SCHEMA'] + '/mapnik/fonts', includes))
Note: See TracBrowser for help on using the browser.