python-Pillow: cross compilation support
This commit is contained in:
parent
4986720f78
commit
cdf05ede33
1 changed files with 11 additions and 7 deletions
|
@ -1,15 +1,14 @@
|
||||||
# Template file for 'python-Pillow'
|
# Template file for 'python-Pillow'
|
||||||
pkgname=python-Pillow
|
pkgname=python-Pillow
|
||||||
version=3.0.0
|
version=3.0.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="Pillow-${version}"
|
wrksrc="Pillow-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools python-tkinter python3.4-tkinter"
|
||||||
makedepends="
|
makedepends="python-devel python3.4-devel python-tkinter python3.4-tkinter
|
||||||
python-devel python3.4-devel python-tkinter python3.4-tkinter
|
libjpeg-turbo-devel libopenjpeg2-devel zlib-devel tiff-devel freetype-devel
|
||||||
libjpeg-turbo-devel libopenjpeg2-devel zlib-devel tiff-devel
|
lcms2-devel libwebp-devel tk-devel"
|
||||||
freetype-devel lcms2-devel libwebp-devel tk-devel"
|
|
||||||
pycompile_module="PIL"
|
pycompile_module="PIL"
|
||||||
short_desc="Python Imaging Library (PIL) fork (Python2)"
|
short_desc="Python Imaging Library (PIL) fork (Python2)"
|
||||||
_short_desc="${short_desc/Python2/Python3.4}"
|
_short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
@ -18,7 +17,12 @@ homepage="https://github.com/python-pillow/Pillow"
|
||||||
license="PIL"
|
license="PIL"
|
||||||
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
|
||||||
checksum=ad50bef540fe5518a4653c3820452a881b6a042cb0f8bb7657c491c6bd3654bb
|
checksum=ad50bef540fe5518a4653c3820452a881b6a042cb0f8bb7657c491c6bd3654bb
|
||||||
nocross=yes
|
|
||||||
|
subpackages="python-Pillow-devel python3.4-Pillow-devel python-Pillow-tk
|
||||||
|
python3.4-Pillow-tk python3.4-Pillow"
|
||||||
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
|
subpackages+=" python-Pillow-qt python3.4-Pillow-qt"
|
||||||
|
fi
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
sed -i '/^#!\//,1d' PIL/OleFileIO.py
|
sed -i '/^#!\//,1d' PIL/OleFileIO.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue