From 6d0e010473980839dddb090f92dffd5fbd4e86e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= Date: Tue, 12 Jan 2021 15:21:21 +0100 Subject: [PATCH] python-imagecodecs: add charls dependency --- mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch | 9 +++++++-- mingw-w64-python-imagecodecs/PKGBUILD | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch b/mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch index be8bbd86eb..1a57443e48 100644 --- a/mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch +++ b/mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch @@ -1,6 +1,6 @@ diff -Naur imagecodecs-2021.1.11_orig/setup.py imagecodecs-2021.1.11/setup.py --- imagecodecs-2021.1.11_orig/setup.py 2021-01-12 05:06:22.000000000 +0100 -+++ imagecodecs-2021.1.11/setup.py 2021-01-12 11:06:37.866632200 +0100 ++++ imagecodecs-2021.1.11/setup.py 2021-01-12 15:05:51.063607600 +0100 @@ -179,7 +179,7 @@ """Customize build for common platforms: recent Debian, arch...""" import platform @@ -10,7 +10,12 @@ diff -Naur imagecodecs-2021.1.11_orig/setup.py imagecodecs-2021.1.11/setup.py del EXTENSIONS['jpeg12'] # jpeg12 requires custom build del EXTENSIONS['lerc'] # LERC library not commonly available del EXTENSIONS['lz4f'] # requires static linking -@@ -191,13 +191,10 @@ +@@ -187,17 +187,14 @@ + if 'arch' in platform.platform(): + del EXTENSIONS['zopfli'] # zopfli/zopfli.h does not exist + else: +- del EXTENSIONS['jpegls'] # CharLS 2.1 library not commonly available ++ # del EXTENSIONS['jpegls'] # CharLS 2.1 library not commonly available del EXTENSIONS['jpegxl'] # Brunsli library not commonly available del EXTENSIONS['zfp'] # ZFP library not commonly available diff --git a/mingw-w64-python-imagecodecs/PKGBUILD b/mingw-w64-python-imagecodecs/PKGBUILD index 6f2b7ca2a3..d89e8419b5 100644 --- a/mingw-w64-python-imagecodecs/PKGBUILD +++ b/mingw-w64-python-imagecodecs/PKGBUILD @@ -11,6 +11,7 @@ url="https://github.com/cgohlke/imagecodecs" license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-blosc" "${MINGW_PACKAGE_PREFIX}-brotli" + "${MINGW_PACKAGE_PREFIX}-charls" "${MINGW_PACKAGE_PREFIX}-jxrlib" "${MINGW_PACKAGE_PREFIX}-lcms2" "${MINGW_PACKAGE_PREFIX}-libaec" @@ -32,7 +33,7 @@ source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/cgohlke/imagecodecs "0003-mingw-fix-setup.patch") sha256sums=('5a52cf0368055dc9b1f98948deb245e2bbf23b40b74c8a03226a2d9044470754' 'de24ec8970281639f8daf396477c9fbd34a12723c82568cd411247b074729425' - 'e84f5747fc44a519f4440f4fff817ae570fa76b678c26661820576cab763db34') + '4ac16ec6fe8e25de4766866ed30f968ae629b6b667ae07ef0e98429f75a32a4b') prepare() { cd "${srcdir}"