forked from geo-data/gdal-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall-gdal.sh
executable file
·51 lines (45 loc) · 1.08 KB
/
install-gdal.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
#!/bin/env sh
##
# Obtain, configure and install GDAL
#
checkout=`cat /tmp/gdal-checkout.txt`
# Checkout GDAL from github
cd / && \
svn checkout "https://svn.osgeo.org/gdal/${checkout}/" /tmp/gdal || exit 1
# Configure GDAL
cd /tmp/gdal/gdal && \
./configure --prefix=/usr/local \
--without-libtool \
--enable-debug \
--with-jpeg12 \
--with-python \
--with-poppler \
--with-podofo \
--with-spatialite \
--with-mysql \
--with-liblzma \
--with-webp \
--with-epsilon \
--with-gta \
--with-ecw=/usr/local \
--with-mrsid=/usr/local \
--with-mrsid-lidar=/usr/local \
--with-fgdb=/usr/local \
--with-libkml \
--with-openjpeg=/usr/local || exit 1
# Make and install
make && \
cd apps && \
make test_ogrsf && \
cd .. && \
cd swig/perl && \
make generate && \
make && \
cd ../.. && \
rm -f /usr/lib/libgdal.so* && \
make install && \
ldconfig && \
cd ../autotest/cpp && \
make || exit 1
# Create the test directory
mv /tmp/gdal/autotest /usr/local/share/gdal-autotest || exit 1