avoid hardcoding prefix that mapnik-config knows about and rather determine on the fly based on where it is installed (helps with package building and should be harmless otherwise)
This commit is contained in:
parent
c5837ea2b7
commit
98a145acd0
1 changed files with 1 additions and 2 deletions
|
@ -17,7 +17,7 @@ config_variables = '''#!/bin/sh
|
||||||
|
|
||||||
## variables
|
## variables
|
||||||
|
|
||||||
CONFIG_PREFIX=%(prefix)s
|
CONFIG_PREFIX="$( cd "$( dirname $( dirname "${BASH_SOURCE[0]}" ))" && pwd )"
|
||||||
CONFIG_MAPNIK_LIBNAME=%(mapnik_libname)s
|
CONFIG_MAPNIK_LIBNAME=%(mapnik_libname)s
|
||||||
CONFIG_MAPNIK_INCLUDE=${CONFIG_PREFIX}/include
|
CONFIG_MAPNIK_INCLUDE=${CONFIG_PREFIX}/include
|
||||||
CONFIG_MAPNIK_LIB=${CONFIG_PREFIX}/%(libdir_schema)s
|
CONFIG_MAPNIK_LIB=${CONFIG_PREFIX}/%(libdir_schema)s
|
||||||
|
@ -74,7 +74,6 @@ else:
|
||||||
git_revision = stdin.strip()
|
git_revision = stdin.strip()
|
||||||
|
|
||||||
configuration = {
|
configuration = {
|
||||||
"prefix": config_env['PREFIX'],
|
|
||||||
"mapnik_libname": 'mapnik',
|
"mapnik_libname": 'mapnik',
|
||||||
"libdir_schema": config_env['LIBDIR_SCHEMA'],
|
"libdir_schema": config_env['LIBDIR_SCHEMA'],
|
||||||
"ldflags": ldflags,
|
"ldflags": ldflags,
|
||||||
|
|
Loading…
Reference in a new issue