Commit b6d4dbf9 authored by Andrew Murray's avatar Andrew Murray
Browse files

Added build_libjpeg_turbo

parent 3903f7f2
......@@ -159,6 +159,18 @@ function build_jpeg {
touch jpeg-stamp
}
function build_libjpeg_turbo {
if [ -e jpeg-stamp ]; then return; fi
local cmake=$(get_modern_cmake)
fetch_unpack https://download.sourceforge.net/libjpeg-turbo/libjpeg-turbo-${JPEGTURBO_VERSION}.tar.gz
(cd libjpeg-turbo-${JPEGTURBO_VERSION} \
&& $cmake -G"Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR=/usr/local/lib . \
&& make install)
# Prevent build_jpeg
touch jpeg-stamp
}
function build_libpng {
build_zlib
build_simple libpng $LIBPNG_VERSION https://download.sourceforge.net/libpng
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment