Merge branch 'master' of github.com:mapbox/llmr-native

This commit is contained in:
Konstantin Käfer
2014-04-11 15:18:13 -04:00

View File

@@ -1,8 +1,13 @@
#!/bin/sh
set -e -u
if [ ! `which aclocal` ] || [ ! `which automake` ] || [ ! `which autoconf` ] || [ ! `which glibtool` ]; then
echo 'autotools commands not found: run "brew install autoconf automake libtool" before continuing'
exit 1
fi
if [ ! -d 'mapnik-packaging' ]; then
git clone --depth=0 https://github.com/mapnik/mapnik-packaging.git
git clone --depth=1 https://github.com/mapnik/mapnik-packaging.git
fi
cd mapnik-packaging/osx/
@@ -36,9 +41,12 @@ source MacOSX.sh
if [ ! -f out/build-cpp11-libcpp-x86_64/lib/libuv.a ] ; then ./scripts/build_libuv.sh ; fi
if [ ! -f out/build-cpp11-libcpp-x86_64/lib/libssl.a ] ; then ./scripts/build_openssl.sh ; fi
if [ ! -f out/build-cpp11-libcpp-x86_64/lib/libcurl.a ] ; then ./scripts/build_curl.sh ; fi
if [ ! -d out/build-cpp11-libcpp-x86_64/include/boost ] ; then ./scripts/build_boost.sh `pwd`/../../src/ `pwd`/../../linux/ ; fi
echo ' ...done'
./scripts/make_universal.sh
cd ../../
./configure --pkg-config-root=`pwd`/mapnik-packaging/osx/out/build-cpp11-libcpp-universal/lib/pkgconfig
./configure \
--pkg-config-root=`pwd`/mapnik-packaging/osx/out/build-cpp11-libcpp-universal/lib/pkgconfig \
--boost=`pwd`/mapnik-packaging/osx/out/build-cpp11-libcpp-universal/