| 1 | |
|---|
| 2 | # This file is part of Mapnik (c++ mapping toolkit) |
|---|
| 3 | # |
|---|
| 4 | # Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon |
|---|
| 5 | # |
|---|
| 6 | # Mapnik is free software; you can redistribute it and/or |
|---|
| 7 | # modify it under the terms of the GNU Lesser General Public |
|---|
| 8 | # License as published by the Free Software Foundation; either |
|---|
| 9 | # version 2.1 of the License, or (at your option) any later version. |
|---|
| 10 | # |
|---|
| 11 | # This library is distributed in the hope that it will be useful, |
|---|
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 14 | # Lesser General Public License for more details. |
|---|
| 15 | # |
|---|
| 16 | # You should have received a copy of the GNU Lesser General Public |
|---|
| 17 | # License along with this library; if not, write to the Free Software |
|---|
| 18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 19 | # |
|---|
| 20 | # $Id$ |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | Import ('env') |
|---|
| 24 | |
|---|
| 25 | prefix = env['PREFIX'] |
|---|
| 26 | install_prefix = env['DESTDIR'] + '/' + prefix |
|---|
| 27 | |
|---|
| 28 | shape_src = Split( |
|---|
| 29 | """ |
|---|
| 30 | dbffile.cpp |
|---|
| 31 | shape.cpp |
|---|
| 32 | shape_featureset.cpp |
|---|
| 33 | shapefile.cpp |
|---|
| 34 | shape_index_featureset.cpp |
|---|
| 35 | shape_io.cpp |
|---|
| 36 | """ |
|---|
| 37 | ) |
|---|
| 38 | thread_suffix = '-mt' |
|---|
| 39 | if env['PLATFORM'] == 'FreeBSD': |
|---|
| 40 | thread_suffix = '' |
|---|
| 41 | |
|---|
| 42 | if env['THREADING'] == 'multi': |
|---|
| 43 | libraries = ['boost_iostreams%s%s' % (env['BOOST_APPEND'],thread_suffix) ] |
|---|
| 44 | else: |
|---|
| 45 | libraries = ['boost_iostreams%s' % (env['BOOST_APPEND']) ] |
|---|
| 46 | |
|---|
| 47 | if env['PLATFORM'] == 'Darwin': |
|---|
| 48 | libraries.append('mapnik') |
|---|
| 49 | libraries.append('icuuc') |
|---|
| 50 | libraries.append('icudata') |
|---|
| 51 | |
|---|
| 52 | shape_inputdriver = env.SharedLibrary('shape', SHLIBSUFFIX='.input', source=shape_src, SHLIBPREFIX='', LIBS = libraries) |
|---|
| 53 | |
|---|
| 54 | env.Install(install_prefix + '/' + env['LIBDIR_SCHEMA'] + '/mapnik/input', shape_inputdriver) |
|---|
| 55 | env.Alias('install', install_prefix + '/' + env['LIBDIR_SCHEMA'] + '/mapnik/input') |
|---|