~ubuntu-branches/ubuntu/trusty/mapnik/trusty

« back to all changes in this revision

Viewing changes to src/SConscript

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2009-08-27 00:28:37 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090827002837-ztqzfg2rmclfh4i9
Tags: 0.6.1-0ubuntu1
* New upstream release.
* Change usr/lib to usr/lib* to enable build on 64 bits systems due to new
  configuration in SConstruct in :
  - debian/libmapnik-dev.install
  - debian/libmapnik0.6.install
  - debian/mapnik-plugin-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
prefix = env['PREFIX']
31
31
 
 
32
lib_dir = os.path.normpath(prefix + '/' + env['LIBDIR_SCHEMA'])
 
33
 
32
34
install_prefix = env['DESTDIR'] + '/' + prefix
33
35
 
34
 
libraries = env['LIBS']
35
 
 
 
36
filesystem = 'boost_filesystem%s' % env['BOOST_APPEND']
 
37
regex = 'boost_regex%s' % env['BOOST_APPEND']
 
38
 
 
39
libraries = ['freetype','ltdl','png','tiff','z','jpeg','proj','icuuc',filesystem,regex]
 
40
 
 
41
if '-DHAVE_CAIRO' in env['CXXFLAGS']:
 
42
    # add cairo and cairomm-1.0 to libs
 
43
    libraries.append([lib for lib in env['LIBS'] if lib.startswith('cairo')])
 
44
 
 
45
if env['XMLPARSER'] == 'libxml2':
 
46
    libraries.append('xml2')
 
47
 
 
48
if env['THREADING'] == 'multi':
 
49
    libraries.append('boost_thread%s' % env['BOOST_APPEND'])
 
50
        
 
51
if env['PLATFORM'] == 'Darwin':
 
52
    #libraries.append('icudata')
 
53
    if env['BOOST_SYSTEM_REQUIRED']:
 
54
        libraries.append('boost_system%s' % env['BOOST_APPEND'])
 
55
    
36
56
if env['INTERNAL_LIBAGG']:
37
57
    libraries.insert(0, 'agg')
38
58
 
39
59
if env['PLATFORM'] == 'Darwin':
40
 
    linkflags = '-Wl,-install_name,libmapnik.dylib'
 
60
    if env['FULL_LIB_PATH']:
 
61
        lib_path = '%s/libmapnik.dylib' % lib_dir
 
62
    else:
 
63
        lib_path = 'libmapnik.dylib'
 
64
    linkflags = '-Wl,-install_name,%s' % lib_path
 
65
    linkflags += ' -current_version 0.6.1 -compatibility_version 0.6.1'
41
66
elif env['PLATFORM'] == 'SunOS' and env['CXX'].startswith('CC'):
42
67
    linkflags = '-R. -h libmapnik.so'
43
68
else: # Linux and others
44
 
    linkflags = '-Wl,-rpath-link,. -Wl,-soname,libmapnik.so.' + ("%d.%d" % (ABI_VERSION[0],ABI_VERSION[1])) 
 
69
    linkflags = '-Wl,-rpath-link,. -Wl,-soname,libmapnik.so.' + ("%d.%d" % (ABI_VERSION[0],ABI_VERSION[1]))
45
70
 
46
71
source = Split(
47
72
    """