@@ -6,7 +6,7 @@ LABEL authors="Matthew Hanson <matt.a.hanson@gmail.com>"
6
6
# install system libraries
7
7
RUN \
8
8
yum makecache fast; \
9
- yum install -y wget libpng-devel; \
9
+ yum install -y wget libpng-devel nasm ; \
10
10
yum install -y bash-completion --enablerepo=epel; \
11
11
yum clean all; \
12
12
yum autoremove
@@ -22,11 +22,13 @@ ENV \
22
22
NETCDF_VERSION=4.6.2 \
23
23
NGHTTP2_VERSION=1.35.1 \
24
24
OPENJPEG_VERSION=2.3.0 \
25
+ LIBJPEG_TURBO_VERSION=2.0.1 \
26
+ LIBPNG_VERSION=1.6.36 \
25
27
PKGCONFIG_VERSION=0.29.2 \
26
28
PROJ_VERSION=5.2.0 \
27
29
SZIP_VERSION=2.1.1 \
28
- WEBP_VERSION=1.0.0 \
29
- ZSTD_VERSION=1.3.4
30
+ WEBP_VERSION=1.0.1 \
31
+ ZSTD_VERSION=1.3.8
30
32
31
33
# Paths to things
32
34
ENV \
@@ -153,6 +155,24 @@ RUN \
153
155
make -j ${NPROC} install; \
154
156
cd ../..; rm -rf openjpeg
155
157
158
+ # png
159
+ RUN \
160
+ mkdir png; \
161
+ wget -qO- http://prdownloads.sourceforge.net/libpng/libpng-$LIBPNG_VERSION.tar.gz \
162
+ | tar xvz -C png --strip-components=1; cd png; \
163
+ CFLAGS="-O2 -Wl,-S" ./configure --prefix=$PREFIX; \
164
+ make -j $(NPROC) install; \
165
+ cd ..; rm -rf png
166
+
167
+ # jpeg_turbo
168
+ RUN \
169
+ mkdir jpeg; \
170
+ wget -qO- https://github.com/libjpeg-turbo/libjpeg-turbo/archive/${LIBJPEG_TURBO_VERSION}.tar.gz \
171
+ | tar xvz -C jpeg --strip-components=1; jpeg; \
172
+ cmake -G"Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$PREFIX .; \
173
+ make -j $(nproc) install; \
174
+ cd ..; rm -rf jpeg
175
+
156
176
# geotiff
157
177
RUN \
158
178
mkdir geotiff; \
@@ -179,6 +199,8 @@ RUN \
179
199
--with-netcdf=${PREFIX} \
180
200
--with-webp=${PREFIX} \
181
201
--with-zstd=${PREFIX} \
202
+ --with-jpeg=${PREFIX} \
203
+ --with-png=${PREFIX} \
182
204
--with-threads=yes \
183
205
--with-curl=${PREFIX}/bin/curl-config \
184
206
--without-python \
0 commit comments