You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
0c3c5e7701
Change jpeg port to install in a location that does not conflict with libjpeg-turbo or mozjpeg. Change all jpeg dependencies to use libjpeg-turbo by default while allowing mozjpeg as a drop-in replacement. Rev bump dependent ports due to differing library version. Fixes: https://trac.macports.org/ticket/38907
75 lines
2.5 KiB
Tcl
75 lines
2.5 KiB
Tcl
# -*- 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-game
|
|
version 2.0.1
|
|
revision 1
|
|
categories-append devel multimedia graphics
|
|
platforms darwin
|
|
license LGPL-2.1+
|
|
maintainers {jmr @jmroot} openmaintainer
|
|
description pygame, python modules for writing games
|
|
long_description Pygame is a set of Python modules designed for \
|
|
writing games. It is written on top of the excellent \
|
|
SDL library. This allows you to create fully featured \
|
|
games and multimedia programs in the python language. \
|
|
Pygame is highly portable and runs on nearly every \
|
|
platform and operating system.
|
|
homepage http://www.pygame.org/
|
|
|
|
python.rootname pygame
|
|
checksums md5 6353c0eb2367f70b8c8d07d3decc1e46 \
|
|
rmd160 3943e514f86be98f31a098582d43886b20f22a16 \
|
|
sha256 8b1e7b63f47aafcdd8849933b206778747ef1802bd3d526aca45ed77141e4001
|
|
|
|
python.versions 27 35 36 37 38 39
|
|
|
|
if {$subport ne $name} {
|
|
patchfiles patch-config_darwin.py.diff \
|
|
patch-disable_portmidi.diff
|
|
|
|
depends_build port:pkgconfig \
|
|
port:py${python.version}-setuptools
|
|
depends_lib port:py${python.version}-numpy \
|
|
path:include/turbojpeg.h:libjpeg-turbo \
|
|
port:libpng
|
|
|
|
use_configure yes
|
|
configure.env-append LOCALBASE=${prefix}
|
|
configure.cmd ${python.bin} setup.py
|
|
configure.args -config
|
|
|
|
post-destroot {
|
|
copy {*}[glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${subport}
|
|
xinstall -m 644 -W ${worksrcpath} README.rst \
|
|
${destroot}${prefix}/share/doc/${subport}
|
|
}
|
|
|
|
variant portmidi description {Enable MIDI support using portmidi} {
|
|
depends_lib-append port:portmidi
|
|
patchfiles-delete patch-disable_portmidi.diff
|
|
}
|
|
|
|
variant sdl2 description {Use SDL 2} {
|
|
configure.args-append -sdl2
|
|
}
|
|
|
|
if {!(${os.platform} eq "darwin" && ${os.major} <= 10)} {
|
|
default_variants +sdl2
|
|
}
|
|
|
|
if {[variant_isset sdl2]} {
|
|
depends_lib-append port:libsdl2_mixer \
|
|
port:libsdl2_image \
|
|
port:libsdl2_ttf
|
|
} else {
|
|
depends_lib-append port:libsdl_mixer \
|
|
port:libsdl_image \
|
|
port:libsdl_ttf
|
|
}
|
|
|
|
livecheck.type none
|
|
}
|