Updated the mason builds so that plugins will find the libmapnik.dylib in certain situations

This commit is contained in:
Blake Thompson 2015-05-01 14:01:29 -05:00
parent b48bf5f48e
commit 1fd964d175

View file

@ -16,7 +16,8 @@ function mason_compile {
if [[ `uname` == 'Darwin' ]]; then
install_name_tool -id @loader_path/libmapnik.dylib ${MASON_PREFIX}"/lib/libmapnik.dylib";
for f in ${MASON_PREFIX}"/lib/mapnik/input/*.input"; do
install_name_tool -id @loader_pather/input/`basename $f` $f;
install_name_tool -id plugins/input/`basename $f` $f;
install_name_tool -change ${MASON_PREFIX}"/lib/libmapnik.dylib" @loader_path/../../libmapnik.dylib $f;
done;
fi;
python -c "data=open('$MASON_PREFIX/bin/mapnik-config','r').read();open('$MASON_PREFIX/bin/mapnik-config','w').write(data.replace('$HERE','.'))"