# -*- 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                pympress
version             1.8.5
revision            0

categories          graphics python
supported_archs     noarch
platforms           {darwin any}
license             GPL-2
maintainers         {@flyingsamson tuxcad.de:flyingsamson} openmaintainer
description         PDF presentation tool
long_description    ${name} is a {*}${description} designed for dual-screen \
                    setups such as presentations and public talks

checksums           rmd160  b464197f407c0e94044d9a4003ece90ed2f1cb65 \
                    sha256  29bd39115d05f254da993abba42d54a0e9187f4e2ce7c363324b15136c530bf6 \
                    size    233617

python.default_version \
                    312

depends_build-append \
                    port:py${python.version}-babel

depends_run-append  path:lib/libcairo.dylib:cairo \
                    path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
                    path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:libyaml \
                    path:lib/pkgconfig/poppler.pc:poppler \
                    port:py${python.version}-gobject3

variant media description "Enable media playback capability" {
    depends_run-append \
                    port:gstreamer1 \
                    port:gstreamer1-gst-plugins-base \
                    port:gstreamer1-gst-plugins-good \
                    port:gstreamer1-gst-libav
    notes "
The installed 'media' variant of this port installs the most common video and
audio codecs to allow playing media contents embedded into a presentation. If
you need further codecs, install additional gstreamer-plugin ports (e.g.,
gstreamer1-gst-plugins-ugly or gstreamer1-gst-plugins-bad).
"
}

if (![variant_isset media]) {
    notes "
The installed variant of the port does not enforce the installation of any
video or audio codecs required to play media content embedded into a
presentation. If you require that feature, either install the '+media' variant
of this port, which will ensure that the most common video and audio codecs are
installed alongside pympress, or install the gstreamer-plugin ports that
provide the codecs that you need manually (e.g., gstreamer1-gst-plugins-good).
"
}

default_variants    +media
