2016-06-20 21:30:30 +03:00
|
|
|
# Script for building Pillow dependencies on OSX
|
2014-07-04 15:55:11 +04:00
|
|
|
source terryfy/library_installers.sh
|
|
|
|
|
2016-06-20 21:30:30 +03:00
|
|
|
# Compiler
|
|
|
|
export CC=clang
|
|
|
|
export CXX=clang++
|
|
|
|
|
2014-07-04 15:55:11 +04:00
|
|
|
# Package versions for fresh source builds
|
2016-02-10 14:41:38 +03:00
|
|
|
FT_VERSION=2.6.3
|
2016-06-16 16:56:00 +03:00
|
|
|
PNG_VERSION=1.6.23
|
2014-07-04 15:55:11 +04:00
|
|
|
ZLIB_VERSION=1.2.8
|
2016-01-22 01:17:17 +03:00
|
|
|
JPEG_VERSION=9b
|
2015-06-25 13:34:37 +03:00
|
|
|
OPENJPEG_VERSION=2.1.0
|
2015-09-14 12:48:08 +03:00
|
|
|
TIFF_VERSION=4.0.6
|
2015-06-25 13:34:37 +03:00
|
|
|
LCMS_VERSION=2.7
|
2016-01-05 05:27:47 +03:00
|
|
|
WEBP_VERSION=0.5.0
|
2014-06-28 20:30:10 +04:00
|
|
|
|
2014-06-30 14:58:20 +04:00
|
|
|
# Need cmake for openjpeg
|
|
|
|
brew install cmake
|
|
|
|
# Need pkg-config for freetype to find libpng
|
|
|
|
brew install pkg-config
|
|
|
|
# Set up build
|
2014-06-28 20:30:10 +04:00
|
|
|
clean_builds
|
2014-07-04 15:55:11 +04:00
|
|
|
clean_submodule Pillow
|
|
|
|
standard_install zlib $ZLIB_VERSION .tar.xz
|
|
|
|
standard_install jpeg $JPEG_VERSION .tar.gz jpegsrc.v
|
|
|
|
standard_install tiff $TIFF_VERSION
|
|
|
|
standard_install libpng $PNG_VERSION
|
|
|
|
standard_install lcms2 $LCMS_VERSION
|
|
|
|
WEBP_EXTRAS="--enable-libwebpmux --enable-libwebpdemux"
|
|
|
|
standard_install libwebp $WEBP_VERSION .tar.gz libwebp- "$WEBP_EXTRAS"
|
2016-06-21 03:51:04 +03:00
|
|
|
standard_install openjpeg $OPENJPEG_VERSION .tar.gz openjpeg- cmake
|
2014-06-28 20:30:10 +04:00
|
|
|
# Fix openjpeg library install id
|
2014-06-30 14:58:20 +04:00
|
|
|
# https://code.google.com/p/openjpeg/issues/detail?id=367
|
2016-06-21 03:51:04 +03:00
|
|
|
install_name_tool -id $PWD/build/lib/libopenjp2.7.dylib build/lib/libopenjp2.2.1.0.dylib
|
2014-07-04 15:55:11 +04:00
|
|
|
standard_install freetype $FT_VERSION .tar.gz freetype- "--with-harfbuzz=no"
|