Changeset 701 for trunk/SConstruct

Show
Ignore:
Timestamp:
06/29/08 06:40:08 (6 months ago)
Author:
artem
Message:

applied font fallbacj patch from Beau Gunderson

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r679 r701  
    4646opts.Add(PathOption('PNG_INCLUDES', 'Search path for libpng include files', '/usr/include')) 
    4747opts.Add(PathOption('PNG_LIBS','Search path for libpng include files','/usr/' + LIBDIR_SCHEMA)) 
    48 opts.Add(PathOption('JPEG_INCLUDES', 'Search path for libjpeg include files', '/usr/include')) 
    49 opts.Add(PathOption('JPEG_LIBS', 'Search path for libjpeg library files', '/usr/' + LIBDIR_SCHEMA)) 
     48opts.Add(PathOption('JPEG_INCLUDES', 'Search path for libjpeg include files', '/usr/local/include')) 
     49opts.Add(PathOption('JPEG_LIBS', 'Search path for libjpeg library files', '/usr/local/' + LIBDIR_SCHEMA)) 
    5050opts.Add(PathOption('TIFF_INCLUDES', 'Search path for libtiff include files', '/usr/include')) 
    5151opts.Add(PathOption('TIFF_LIBS', 'Search path for libtiff library files', '/usr/' + LIBDIR_SCHEMA)) 
    5252opts.Add(PathOption('PGSQL_INCLUDES', 'Search path for PostgreSQL include files', '/usr/include')) 
    5353opts.Add(PathOption('PGSQL_LIBS', 'Search path for PostgreSQL library files', '/usr/' + LIBDIR_SCHEMA)) 
    54 opts.Add(PathOption('PROJ_INCLUDES', 'Search path for PROJ.4 include files', '/usr/local/include')) 
    55 opts.Add(PathOption('PROJ_LIBS', 'Search path for PROJ.4 library files', '/usr/local/' + LIBDIR_SCHEMA)) 
     54opts.Add(PathOption('PROJ_INCLUDES', 'Search path for PROJ.4 include files', '/opt/proj4/include')) 
     55opts.Add(PathOption('PROJ_LIBS', 'Search path for PROJ.4 library files', '/opt/proj4/' + LIBDIR_SCHEMA)) 
    5656opts.Add(PathOption('GDAL_INCLUDES', 'Search path for GDAL include files', '/usr/include')) 
    5757opts.Add(PathOption('GDAL_LIBS', 'Search path for GDAL library files', '/usr/' + LIBDIR_SCHEMA)) 
    5858opts.Add(PathOption('PYTHON','Python executable', sys.executable)) 
    59 opts.Add(ListOption('INPUT_PLUGINS','Input drivers to include','all',['postgis','shape','raster','gdal'])) 
     59opts.Add(ListOption('INPUT_PLUGINS','Input drivers to include','all',['postgis','shape','raster','gdal','osm'])) 
    6060opts.Add(ListOption('BINDINGS','Language bindings to build','all',['python'])) 
    6161opts.Add(BoolOption('DEBUG', 'Compile a debug version of mapnik', 'False')) 
     
    155155 
    156156BOOST_LIBSHEADERS = [ 
    157     # ['system', 'boost/system/system_error.hpp', True], # uncomment this on Darwin + boost_1_35 
     157    ['system', 'boost/system/system_error.hpp', True], # uncomment this on Darwin + boost_1_35 
    158158    ['filesystem', 'boost/filesystem/operations.hpp', True], 
    159159    ['regex', 'boost/regex.hpp', True], 
     
    179179else: 
    180180    env['BOOST_APPEND']='' 
     181 
    181182     
    182183for count, libinfo in enumerate(BOOST_LIBSHEADERS): 
    183184    if  env['THREADING'] == 'multi' : 
    184         if not conf.CheckLibWithHeader('boost_%s%s%s' % (libinfo[0],env['BOOST_APPEND'],thread_suffix), libinfo[1], 'C++') and libinfo[2] : 
     185        if not conf.CheckLibWithHeader('boost_%s%s%s' % (libinfo[0],thread_suffix,env['BOOST_APPEND']), libinfo[1], 'C++') and libinfo[2] : 
    185186            color_print(1,'Could not find header or shared library for boost %s, exiting!' % libinfo[0]) 
    186187            Exit(1) 
     
    204205 
    205206# Build shapeindex and remove its dependency from the LIBS 
    206 if 'boost_program_options%s%s' % (env['BOOST_APPEND'],thread_suffix) in env['LIBS']: 
     207# if 'boost_program_options%s%s-1_35' % (env['BOOST_APPEND'],thread_suffix) in env['LIBS']: 
     208if 'boost_program_options-mt-1_35' in env['LIBS']: 
    207209    SConscript('utils/shapeindex/SConscript') 
    208     env['LIBS'].remove('boost_program_options%s%s' % (env['BOOST_APPEND'],thread_suffix)) 
     210    env['LIBS'].remove('boost_program_options-mt-1_35') 
    209211 
    210212# Build the input plug-ins 
     213 
    211214if 'postgis' in inputplugins and 'pq' in env['LIBS']: 
    212215    SConscript('plugins/input/postgis/SConscript') 
     
    222225    SConscript('plugins/input/gdal/SConscript') 
    223226 
    224 if 'gigabase' in inputplugins and 'gigabase_r' in env['LIBS']: 
    225     SConscript('plugins/input/gigabase/SConscript') 
     227if 'osm' in inputplugins : 
     228    SConscript('plugins/input/osm/SConscript') 
    226229 
    227230# Build the Python bindings.