Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions library_builders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tests/test_library_builders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ if [ -z "$IS_MACOS" ]; then
fi
suppress build_new_zlib
suppress build_hdf5
rm jpeg-stamp
suppress build_libjpeg_turbo
suppress get_modern_cmake

[ ${MB_PYTHON_VERSION+x} ] || ingest "\$MB_PYTHON_VERSION is not set"
Expand Down