pyodide/packages/Pillow/meta.yaml

31 lines
802 B
YAML
Raw Normal View History

2020-12-15 09:18:39 +00:00
package:
name: Pillow
version: 9.1.1
2020-12-15 09:18:39 +00:00
source:
sha256: 7502539939b53d7565f3d11d87c78e7ec900d3c72945d4ee0e2f250d598309a0
url: https://files.pythonhosted.org/packages/43/6e/59853546226ee6200f9ba6e574d11604b60ad0754d2cbd1c8f3246b70418/Pillow-9.1.1.tar.gz
2020-12-15 09:18:39 +00:00
patches:
- patches/0001-Enable-image-formats.patch
2020-12-15 09:18:39 +00:00
extras:
- - src/setup.cfg
2020-12-15 09:18:39 +00:00
- ./setup.cfg
build:
script: |
export LIBWEBP_INCLUDE_PATH=$(pkg-config --cflags-only-I --dont-define-prefix libwebp)
export LIBWEBP_LIBRARY_PATH=$(pkg-config --libs-only-L --dont-define-prefix libwebp)
cflags: |
-s USE_ZLIB=1
-s USE_LIBJPEG=1
-s USE_FREETYPE=1
-s SIDE_MODULE=1
$(LIBWEBP_INCLUDE_PATH)
ldflags: |
-ljpeg
$(LIBWEBP_LIBRARY_PATH)
requirements:
run:
- libwebp
2020-12-15 09:18:39 +00:00
test:
imports:
- PIL