# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup python 1.0 name py-imagecodecs epoch 1 version 2024.9.22 revision 1 categories-append graphics license BSD maintainers {mps @Schamschula} openmaintainer description Image transformation, compression, and decompression codecs long_description {*}${description} homepage https://github.com/cgohlke/imagecodecs/ checksums rmd160 12beb6d8104470769bbd6d85c06d37571e848dcf \ sha256 fea0801b4008d25e971918d991397a351bbe76276cfa98eed2de54cb87e894a3 \ size 9483739 python.versions 39 310 311 312 if {${name} ne ${subport}} { platforms {darwin >= 17} depends_build-append \ path:bin/cython-${python.branch}:py${python.version}-cython \ port:py${python.version}-setuptools depends_lib-append \ port:blosc \ port:brotli \ port:brunsli \ port:bzip2 \ port:cfitsio \ port:charls \ port:giflib5 \ port:libaec \ port:libjpeg-turbo \ port:libjxl \ port:openjpeg \ port:py${python.version}-numpy \ port:py${python.version}-pyobjc \ port:snappy \ port:tiff \ port:webp \ port:zopfli \ port:zstd post-extract { # DOS to UNIX line endings so we can patch. reinplace -W ${worksrcpath} "s|\r||g" \ setup.py } patchfiles patch-setup.py.diff post-patch { reinplace "s|%PREFIX%|${prefix}|g" \ ${worksrcpath}/setup.py } }