2016-06-03 10:16:00 +02:00
|
|
|
###########################################################################
|
|
|
|
# install.sh
|
|
|
|
# ---------------------
|
|
|
|
# Date : August 2015
|
|
|
|
# Copyright : (C) 2015 by Nyall Dawson
|
|
|
|
# Email : nyall dot dawson at gmail dot com
|
|
|
|
###########################################################################
|
|
|
|
# #
|
|
|
|
# This program is free software; you can redistribute it and/or modify #
|
|
|
|
# it under the terms of the GNU General Public License as published by #
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or #
|
|
|
|
# (at your option) any later version. #
|
|
|
|
# #
|
|
|
|
###########################################################################
|
|
|
|
|
2015-08-12 23:36:07 +10:00
|
|
|
mkdir build
|
2017-04-23 13:08:58 +02:00
|
|
|
pushd build
|
|
|
|
|
|
|
|
export PATH=/usr/local/opt/ccache/libexec:$PATH
|
|
|
|
HB=$(brew --prefix)
|
|
|
|
|
|
|
|
# force looking in HB/opt paths first, so headers in HB/include are not found first
|
|
|
|
prefixes="qt5
|
|
|
|
qt5-webkit
|
|
|
|
qscintilla2
|
|
|
|
qwt
|
|
|
|
qwtpolar
|
|
|
|
qca
|
|
|
|
qtkeychain
|
|
|
|
gdal2
|
|
|
|
gsl
|
|
|
|
geos
|
|
|
|
proj
|
|
|
|
libspatialite
|
|
|
|
spatialindex
|
|
|
|
fcgi
|
|
|
|
expat
|
|
|
|
sqlite
|
|
|
|
flex
|
2017-08-15 19:26:10 +02:00
|
|
|
bison
|
|
|
|
libzip"
|
2017-04-23 13:08:58 +02:00
|
|
|
|
|
|
|
full_prefixes=""
|
|
|
|
for p in ${prefixes}; do
|
|
|
|
full_prefixes+="${HB}/opt/${p};"
|
|
|
|
done
|
|
|
|
|
2015-08-12 23:36:07 +10:00
|
|
|
#no PGTEST for OSX - can't get postgres to start with brew install
|
2015-08-12 23:36:18 +10:00
|
|
|
#no APIDOC for OSX - doxygen tests and warnings are covered by linux build
|
|
|
|
#no deprecated-declarations warnings... requires QGIS ported to Cocoa
|
2016-06-23 16:16:51 +02:00
|
|
|
cmake \
|
2017-04-23 13:08:58 +02:00
|
|
|
-G 'Ninja' \
|
|
|
|
-DCMAKE_FIND_FRAMEWORK:STRING=LAST \
|
|
|
|
-DCMAKE_PREFIX_PATH:STRING=${full_prefixes} \
|
|
|
|
-DWITH_SERVER=OFF \
|
|
|
|
-DWITH_DESKTOP=OFF \
|
2016-06-23 16:16:51 +02:00
|
|
|
-DWITH_STAGED_PLUGINS=ON \
|
|
|
|
-DENABLE_MODELTEST=ON \
|
|
|
|
-DENABLE_PGTEST=OFF \
|
|
|
|
-DWITH_QWTPOLAR=OFF \
|
|
|
|
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \
|
|
|
|
..
|
2017-04-23 13:08:58 +02:00
|
|
|
|
|
|
|
popd
|