mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 22:17:12 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_PYTHON_PILLOW
|
||||
bool "python-pillow"
|
||||
select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime
|
||||
select BR2_PACKAGE_PYTHON3_ZLIB
|
||||
help
|
||||
Pillow is the "friendly" PIL fork by Alex Clark and
|
||||
Contributors. PIL is the Python Imaging Library by Fredrik
|
||||
Lundh and Contributors.
|
||||
|
||||
Pillow relies on external libraries to provide support
|
||||
various image formats. Select the corresponding package(s)
|
||||
to get this support. Pillow can use jpeg, zlib (for PNG),
|
||||
tiff, freetype, webp, and openjpeg (JPEG-2000).
|
||||
|
||||
https://pypi.python.org/pypi/Pillow/
|
||||
@@ -0,0 +1,6 @@
|
||||
# md5, sha256 https://pypi.org/project/pillow/10.3.0/#copy-hash-modal-125abe0d-59be-40cd-89a3-3e2f78136be0
|
||||
md5 6c21a12849ae42f93881f614d8f6f651 pillow-10.3.0.tar.gz
|
||||
sha256 9d2455fbf44c914840c793e89aa82d0e1763a14253a000743719ae5946814b2d pillow-10.3.0.tar.gz
|
||||
|
||||
# Locally computed sha256 checksums
|
||||
sha256 cf234c27a3f275f5a050f4df3946f8855704226fe4e7ca8b33928cbcecbced37 LICENSE
|
||||
@@ -0,0 +1,73 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-pillow
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_PILLOW_VERSION = 10.3.0
|
||||
PYTHON_PILLOW_SITE = https://files.pythonhosted.org/packages/ef/43/c50c17c5f7d438e836c169e343695534c38c77f60e7c90389bd77981bc21
|
||||
PYTHON_PILLOW_SOURCE = pillow-$(PYTHON_PILLOW_VERSION).tar.gz
|
||||
PYTHON_PILLOW_LICENSE = HPND
|
||||
PYTHON_PILLOW_LICENSE_FILES = LICENSE
|
||||
PYTHON_PILLOW_CPE_ID_VENDOR = python
|
||||
PYTHON_PILLOW_CPE_ID_PRODUCT = pillow
|
||||
PYTHON_PILLOW_SETUP_TYPE = setuptools
|
||||
|
||||
PYTHON_PILLOW_DEPENDENCIES = host-pkgconf
|
||||
PYTHON_PILLOW_BUILD_OPTS = -C--build-option=build_ext -C--build-option=--disable-platform-guessing
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
||||
PYTHON_PILLOW_DEPENDENCIES += freetype
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--enable-freetype
|
||||
else
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--disable-freetype
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JPEG),y)
|
||||
PYTHON_PILLOW_DEPENDENCIES += jpeg
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--enable-jpeg
|
||||
else
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--disable-jpeg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
||||
PYTHON_PILLOW_DEPENDENCIES += lcms2
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--enable-lcms
|
||||
else
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--disable-lcms
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXCB),y)
|
||||
PYTHON_PILLOW_DEPENDENCIES += libxcb
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--enable-xcb
|
||||
else
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--disable-xcb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
||||
PYTHON_PILLOW_DEPENDENCIES += openjpeg
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--enable-jpeg2000
|
||||
else
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--disable-jpeg2000
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TIFF),y)
|
||||
PYTHON_PILLOW_DEPENDENCIES += tiff
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--enable-tiff
|
||||
else
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--disable-tiff
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WEBP),y)
|
||||
PYTHON_PILLOW_DEPENDENCIES += webp
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--enable-webp
|
||||
ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--enable-webpmux
|
||||
else
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--disable-webpmux
|
||||
endif
|
||||
else
|
||||
PYTHON_PILLOW_BUILD_OPTS += -C--build-option=--disable-webp -C--build-option=--disable-webpmux
|
||||
endif
|
||||
|
||||
$(eval $(python-package))
|
||||
Reference in New Issue
Block a user