diff --git a/develop/mapnik/mapnik.conf b/develop/mapnik/mapnik.conf index 5d9645a5a..c39af0492 100644 --- a/develop/mapnik/mapnik.conf +++ b/develop/mapnik/mapnik.conf @@ -14,8 +14,22 @@ makeopt= makeinstopt= -hook_add inmake 5 "scons $sconsopt prefix=/$prefix; scons prefix=/$prefix install" +hook_add inmake 5 "scons $sconsopt PREFIX=/$prefix; scons PREFIX=/$prefix install" for x in thread filesystem regex serialization; do var_append extraconfopt ' ' "--with-boost-$x=boost_${x}-mt" done + +fix_sconstructlib() { + local x + + if [[ "$libdir" != */lib ]]; then + x='lib64' + else + x='lib' + fi + + sed -i -e "s,LIBDIR_SCHEMA=.*$,LIBDIR_SCHEMA= '$x',g" SConstruct +} + +hook_add premake 3 fix_sconstructlib