/
Portfile
74 lines (58 loc) · 2.42 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- 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-Pillow
version 9.5.0
revision 1
categories-append devel
license BSD
python.versions 27 37 38 39 310 311 312
python.pep517 no
maintainers {stromnov @stromnov} openmaintainer
description Python Imaging Library (fork)
long_description {*}${description}
homepage https://github.com/python-imaging/Pillow
checksums rmd160 15a9b4178db7e5995d94650021cdc58631a15226 \
sha256 bf548479d336726d7a0eceb6e767e179fbde37833ae42794602631a070d630f1 \
size 50488147
if {${name} ne ${subport}} {
if {${python.version} == 27} {
conflicts py${python.version}-pil
version 6.2.2
revision 0
checksums md5 46cad14f0044a5ac4b2d801271528893 \
rmd160 22b39d6d4dff18415340df080e1b598ee204a97e \
sha256 db9ff0c251ed066d367f53b64827cc9e18ccea001b986d08c265e53625dab950 \
size 37811273
patchfiles-append patch-setup.py_v6.2.1.diff
} else {
patchfiles-append patch-setup.py.diff
build.args-append --disable-raqm \
--disable-imagequant \
--disable-xcb
variant raqm description {build with raqm feature} {
build.args-delete --disable-raqm
depends_lib-append port:libraqm
}
variant x11 {
build.args-delete --disable-xcb
depends_lib-append port:xorg-libxcb
}
}
build.target build_ext
depends_build-append \
port:py${python.version}-setuptools
depends_lib-append port:py${python.version}-tkinter \
port:py${python.version}-olefile \
port:zlib \
path:include/turbojpeg.h:libjpeg-turbo \
port:tiff \
port:lcms2 \
port:webp \
port:openjpeg \
port:freetype
post-patch {
reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/setup.py
}
livecheck.type none
}