2018-02-05 13:38:02 +01:00
|
|
|
#!/usr/bin/env bash
|
2016-06-03 10:16:00 +02:00
|
|
|
###########################################################################
|
|
|
|
# package.sh
|
|
|
|
# ---------------------
|
|
|
|
# Date : April 2013
|
|
|
|
# Copyright : (C) 2013 by Juergen E. Fischer
|
|
|
|
# Email : jef at norbit dot de
|
|
|
|
###########################################################################
|
|
|
|
# #
|
|
|
|
# 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. #
|
|
|
|
# #
|
|
|
|
###########################################################################
|
|
|
|
|
2013-04-06 18:29:33 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
[ -d build ] || mkdir build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake -D BUILDNAME="cygwin" \
|
|
|
|
-D SITE="qgis.org" \
|
|
|
|
-D PEDANTIC=TRUE \
|
|
|
|
-D WITH_GRASS=FALSE \
|
|
|
|
-D WITH_SPATIALITE=TRUE \
|
|
|
|
-D WITH_QSPATIALITE=TRUE \
|
2014-11-28 16:00:53 +01:00
|
|
|
-D WITH_SERVER=TRUE \
|
2013-04-06 18:29:33 +02:00
|
|
|
-D WITH_ORACLE=FALSE \
|
|
|
|
-D CMAKE_LEGACY_CYGWIN_WIN32=0 \
|
|
|
|
-D PYUIC4_PROGRAM=/usr/lib/python2.7/site-packages/PyQt4/pyuic4 \
|
|
|
|
-D PYRCC4_PROGRAM=/usr/lib/python2.7/site-packages/PyQt4/pyrcc4.exe \
|
|
|
|
-D ENABLE_TESTS=YES \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
2014-05-20 08:18:55 +02:00
|
|
|
-D WITH_CUSTOM_WIDGETS=TRUE \
|
2013-04-06 18:29:33 +02:00
|
|
|
../../..
|
|
|
|
|
|
|
|
make -j8
|
|
|
|
make test
|
|
|
|
make install
|