fix relative paths in mapnik-config for fonts/plugins
This commit is contained in:
parent
6c12904eda
commit
a9953fb385
1 changed files with 6 additions and 6 deletions
12
bin/build.py
12
bin/build.py
|
@ -45,10 +45,10 @@ CONFIG_MAPNIK_DEFINES='%(defines)s'
|
||||||
CONFIG_MAPNIK_LIBNAME='%(mapnik_libname)s'
|
CONFIG_MAPNIK_LIBNAME='%(mapnik_libname)s'
|
||||||
CONFIG_MAPNIK_LIBPATH="%(mapnik_libpath)s"
|
CONFIG_MAPNIK_LIBPATH="%(mapnik_libpath)s"
|
||||||
CONFIG_DEP_LIBS='%(dep_libs)s'
|
CONFIG_DEP_LIBS='%(dep_libs)s'
|
||||||
CONFIG_MAPNIK_LDFLAGS='%(ldflags)s'
|
CONFIG_MAPNIK_LDFLAGS="%(ldflags)s"
|
||||||
CONFIG_MAPNIK_INCLUDE="${CONFIG_PREFIX}/include -I${CONFIG_PREFIX}/include/mapnik/agg"
|
CONFIG_MAPNIK_INCLUDE="${CONFIG_PREFIX}/include -I${CONFIG_PREFIX}/include/mapnik/agg"
|
||||||
CONFIG_DEP_INCLUDES='%(dep_includes)s'
|
CONFIG_DEP_INCLUDES="%(dep_includes)s"
|
||||||
CONFIG_CXXFLAGS='%(cxxflags)s'
|
CONFIG_CXXFLAGS="%(cxxflags)s"
|
||||||
CONFIG_CXX='%(cxx)s'
|
CONFIG_CXX='%(cxx)s'
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
@ -105,12 +105,12 @@ else:
|
||||||
# for fonts and input plugins we should try
|
# for fonts and input plugins we should try
|
||||||
# to store the relative path, if feasible
|
# to store the relative path, if feasible
|
||||||
fontspath = config_env['MAPNIK_FONTS']
|
fontspath = config_env['MAPNIK_FONTS']
|
||||||
lib_root = os.path.join(config_env['INSTALL_PREFIX'], config_env['LIBDIR_SCHEMA'])
|
lib_root = os.path.join(config_env['PREFIX'], config_env['LIBDIR_SCHEMA'])
|
||||||
if lib_root in fontspath:
|
if lib_root in fontspath:
|
||||||
fontspath = "${CONFIG_PREFIX}/" + os.path.relpath(fontspath,config_env['INSTALL_PREFIX'])
|
fontspath = "${CONFIG_PREFIX}/" + os.path.relpath(fontspath,config_env['PREFIX'])
|
||||||
inputpluginspath = config_env['MAPNIK_INPUT_PLUGINS']
|
inputpluginspath = config_env['MAPNIK_INPUT_PLUGINS']
|
||||||
if lib_root in inputpluginspath:
|
if lib_root in inputpluginspath:
|
||||||
inputpluginspath = "${CONFIG_PREFIX}/" + os.path.relpath(inputpluginspath,config_env['INSTALL_PREFIX'])
|
inputpluginspath = "${CONFIG_PREFIX}/" + os.path.relpath(inputpluginspath,config_env['PREFIX'])
|
||||||
|
|
||||||
lib_path = "${CONFIG_PREFIX}/" + config_env['LIBDIR_SCHEMA']
|
lib_path = "${CONFIG_PREFIX}/" + config_env['LIBDIR_SCHEMA']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue