-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.sh
61 lines (55 loc) · 1.64 KB
/
configure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#! /bin/bash
export PREFIX=$(python -c 'import sys; print sys.prefix')
export PATH=$PREFIX/bin:/usr/bin:/bin:/usr/sbin:/etc:/usr/lib
export CC=$(which clang)
export CXX=$(which clang++)
if [ $(uname) == Darwin ]; then
export GRASS_PYTHON=$(which pythonw)
else
export GRASS_PYTHON=$(which python)
fi
CONFIGURE_FLAGS="\
--prefix=$PREFIX \
--with-freetype \
--with-freetype-includes=$PREFIX/include/freetype2 \
--with-freetype-libs=$PREFIX/lib \
--with-gdal=$PREFIX/bin/gdal-config \
--with-gdal-libs=$PREFIX/lib \
--with-proj=$PREFIX/bin/proj \
--with-proj-includes=$PREFIX/include \
--with-proj-libs=$PREFIX/lib \
--with-proj-share=$PREFIX/share/proj \
--with-geos=$PREFIX/bin/geos-config \
--with-jpeg-includes=$PREFIX/include \
--with-jpeg-libs=/$PREFIX/lib \
--with-png-includes=$PREFIX/include \
--with-png-libs=$PREFIX/lib \
--with-tiff-includes=$PREFIX/include \
--with-tiff-libs=$PREFIX/lib \
--without-postgres \
--without-mysql \
--with-sqlite \
--with-sqlite-libs=$PREFIX/lib \
--with-sqlite-includes=$PREFIX/include \
--with-fftw-includes=$PREFIX/include \
--with-fftw-libs=$PREFIX/lib \
--with-cxx \
--with-cairo \
--with-cairo-includes=$PREFIX/include/cairo \
--with-cairo-libs=$PREFIX/lib \
--with-cairo-ldflags="-lcairo" \
--without-readline \
--enable-64bit \
--with-libs=$PREFIX/lib \
--with-includes=$PREFIX/include \
"
if [ $(uname) == Darwin ]; then
CONFIGURE_FLAGS="\
$CONFIGURE_FLAGS \
--with-opengl=aqua \
"
# --enable-macosx-app \
# --with-opencl \
# --with-macosx-sdk=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
fi
./configure $CONFIGURE_FLAGS