Skip to content

Commit 6d93de5

Browse files
committed
fix proj
1 parent ffdfb0e commit 6d93de5

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

base/gdal3.1/Dockerfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ WORKDIR /opt
1212

1313
# versions of packages
1414
ENV \
15+
LIBTIFF_VERSION=4.1.0 \
1516
HDF4_VERSION=4.2.15 \
1617
HDF5_VERSION=1.12.0 \
1718
NETCDF_VERSION=4.7.4 \
@@ -127,15 +128,15 @@ RUN mkdir /tmp/netcdf \
127128

128129
# postgres
129130
RUN mkdir /tmp/postgres \
130-
&& curl -sfL https://ftp.postgresql.org/pub/source/v${PG_VERSION}/postgresql-${PG_VERSION}.tar.gz | tar zxf - -C /tmp/postgres --strip-components=1 \
131+
&& curl -sfL https://ftp.postgresql.org/pub/source/v${PG_VERSION}/postgresql-${PG_VERSION}.tar.gz | tar zxf - -C /tmp/postgres --strip-components=1 \
131132
&& cd /tmp/postgres \
132133
&& CFLAGS="-O2 -Wl,-S" CXXFLAGS="-O2 -Wl,-S" ./configure --prefix=$PREFIX --with-openssl \
133134
&& make -j $(nproc) --silent && make install && make clean \
134135
&& rm -rf /tmp/postgres
135136

136137
# sqlite
137138
RUN mkdir /tmp/sqlite \
138-
&& curl -sfL https://www.sqlite.org/2020/sqlite-autoconf-3330000.tar.gz | tar zxf - -C /tmp/sqlite --strip-components=1 \
139+
&& curl -sfL https://www.sqlite.org/2020/sqlite-autoconf-3330000.tar.gz | tar zxf - -C /tmp/sqlite --strip-components=1 \
139140
&& cd /tmp/sqlite \
140141
&& CFLAGS="-O2 -Wl,-S" CXXFLAGS="-O2 -Wl,-S" ./configure --prefix=$PREFIX --disable-static \
141142
&& make -j $(nproc) --silent && make install && make clean \
@@ -147,6 +148,14 @@ ENV \
147148
SQLITE3_CFLAGS="$CFLAGS -I${PREFIX}/include" \
148149
PATH=${PREFIX}/bin/:$PATH
149150

151+
# libtiff
152+
RUN mkdir /tmp/libtiff \
153+
&& curl -sfL https://download.osgeo.org/libtiff/tiff-${LIBTIFF_VERSION}.tar.gz | tar zxf - -C /tmp/libtiff --strip-components=1 \
154+
&& cd /tmp/libtiff \
155+
&& CFLAGS="-O2 -Wl,-S" CXXFLAGS="-O2 -Wl,-S" ./configure --prefix=$PREFIX \
156+
&& make -j $(nproc) --silent && make install && make clean \
157+
&& rm -rf /tmp/libtiff
158+
150159
################################################################################
151160
# BUILD SPECIFIC
152161
# OSGEO
@@ -175,7 +184,7 @@ ENV PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/
175184

176185
# gdal
177186
# Use latest commits from Github instead of release
178-
# "release/3.1" is the up to date 3.1.0 github branch
187+
# "release/3.1" is the up to date 3.1.3 github branch
179188
RUN mkdir /tmp/gdal \
180189
&& curl -sfL https://github.com/OSGeo/gdal/archive/release/3.1.tar.gz | tar zxf - -C /tmp/gdal --strip-components=2
181190

@@ -190,12 +199,12 @@ RUN cd /tmp/gdal \
190199
--with-expat \
191200
--with-hdf4=$PREFIX \
192201
--with-hdf5=$PREFIX \
202+
--with-libtiff=$PREFIX \
193203
--with-hide-internal-symbols=yes \
194204
--with-geos=$PREFIX/bin/geos-config \
195205
--with-geotiff=internal \
196206
--with-rename-internal-libgeotiff-symbols \
197207
--with-jpeg=$PREFIX \
198-
--with-libtiff=internal \
199208
--with-rename-internal-libtiff-symbols \
200209
--with-netcdf=$PREFIX \
201210
--with-openjpeg \

0 commit comments

Comments
 (0)