PortSystem 1.0 PortGroup python 1.0 name py-SDL2 version 0.9.16 categories-append devel multimedia license public-domain platforms {darwin any} supported_archs noarch maintainers {jmr @jmroot} openmaintainer description a python wrapper around the SDL2 library long_description \ PySDL2 is a wrapper around the SDL2 library and as such similar to the \ discontinued PySDL project. In contrast to PySDL, it has no licensing \ restrictions, nor does it rely on C code, but uses ctypes instead. python.rootname PySDL2 homepage https://pypi.org/project/${python.rootname} checksums md5 b497f7f3562b665eb7c2c418ce701f5c \ rmd160 acfb33680442d60226d0cdb97bb0fed26c636b94 \ sha256 1027406badbecdd30fe56e800a5a76ad7d7271a3aec0b7acf780ee26a00f2d40 python.versions 27 37 38 39 310 311 312 if {$subport ne $name} { depends_build port:py${python.version}-setuptools depends_lib-append port:libsdl2 \ port:libsdl2_image \ port:libsdl2_mixer \ port:libsdl2_ttf if {${python.version} >= 36} { python.pep517 yes } patchfiles dll.py.patch post-patch { reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/sdl2/dll.py } livecheck.type none }