<pre style='margin:0'>
Aljaž Srebrnič (g5pw) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5aec5c382542e60b4e9243f7161803e6fcc60585">https://github.com/macports/macports-ports/commit/5aec5c382542e60b4e9243f7161803e6fcc60585</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5aec5c382542e60b4e9243f7161803e6fcc60585
</span>Author: Torsten Maehne <Torsten.Maehne@gmx.de>
AuthorDate: Wed Mar 11 16:38:04 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> pdfpc: Add video variant
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Previously, movie playback was only working for the x11 variant. Now,
</span><span style='display:block; white-space:pre;color:#404040;'> it is working as well for the quartz variant. However, movie playback
</span><span style='display:block; white-space:pre;color:#404040;'> relies on gstreamer1, which not everyone may want to
</span><span style='display:block; white-space:pre;color:#404040;'> install. Therefore, this is made optional with this new variant.
</span>---
graphics/pdfpc/Portfile | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/pdfpc/Portfile b/graphics/pdfpc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 05cbbc6..2425105 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/pdfpc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/pdfpc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup active_variants 1.1
</span> PortGroup cmake 1.1
github.setup pdfpc pdfpc 4.4.0 v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
maintainers {gmx.de:Torsten.Maehne @maehne} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -39,6 +39,8 @@ checksums rmd160 ae78dbb12ec2f639705a09ecd67055b17599ea0e \
</span> sha256 04de35626c415ad4105dd9fb75e92b3f05c5e83a3728b1676ee1ef2e6581d03c \
size 7733169
<span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args -DMOVIES=off
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> pre-configure {
if {![variant_isset quartz] && ![variant_isset x11]} {
error "Either +x11 or +quartz is required"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,19 +49,25 @@ pre-configure {
</span>
variant quartz conflicts x11 {
require_active_variants port:gtk3 quartz
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -DMOVIES=off
</span> }
variant x11 conflicts quartz {
require_active_variants port:gtk3 x11
<span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant video description {Enable video playback using gstreamer1} {
</span> depends_lib-append port:gstreamer1 \
port:gstreamer1-gst-plugins-base \
port:gstreamer1-gst-plugins-good
require_active_variants port:gstreamer1-gst-plugins-good gtk3
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete -DMOVIES=off
</span> }
if {![variant_isset quartz]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants +x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +x11 +video
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +video
</span> }
livecheck.type regex
</pre><pre style='margin:0'>
</pre>