mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
install harfbuzz
This commit is contained in:
parent
1ce6762c29
commit
557562b6e6
18
config.sh
18
config.sh
|
@ -5,6 +5,7 @@ ARCHIVE_SDIR=pillow-depends-master
|
|||
|
||||
# Package versions for fresh source builds
|
||||
FREETYPE_VERSION=2.10.4
|
||||
HARFBUZZ_VERSION=2.7.4
|
||||
LIBPNG_VERSION=1.6.37
|
||||
ZLIB_VERSION=1.2.11
|
||||
JPEG_VERSION=9d
|
||||
|
@ -17,6 +18,21 @@ LIBWEBP_VERSION=1.1.0
|
|||
BZIP2_VERSION=1.0.8
|
||||
LIBXCB_VERSION=1.14
|
||||
|
||||
# workaround for multibuild bug with .tar.xz
|
||||
function untar {
|
||||
local in_fname=$1
|
||||
if [ -z "$in_fname" ];then echo "in_fname not defined"; exit 1; fi
|
||||
local extension=${in_fname##*.}
|
||||
case $extension in
|
||||
tar) tar -xf $in_fname ;;
|
||||
gz|tgz) tar -zxf $in_fname ;;
|
||||
bz2) tar -jxf $in_fname ;;
|
||||
zip) unzip -qq $in_fname ;;
|
||||
xz) unxz -c $in_fname | tar -xf - ;;
|
||||
*) echo Did not recognize extension $extension; exit 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
function pre_build {
|
||||
# Any stuff that you need to do before you start building the wheels
|
||||
# Runs in the root directory of this repository.
|
||||
|
@ -69,6 +85,8 @@ function pre_build {
|
|||
build_freetype
|
||||
fi
|
||||
|
||||
build_simple harfbuzz $HARFBUZZ_VERSION https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION tar.xz --with-freetype=yes --with-glib=no
|
||||
|
||||
# Append licenses
|
||||
for filename in dependency_licenses/*; do
|
||||
echo -e "\n\n----\n\n$(basename $filename | cut -f 1 -d '.')\n" | cat >> Pillow/LICENSE
|
||||
|
|
Loading…
Reference in New Issue
Block a user