Ticket #45321: PBGS-repatch.diff

File PBGS-repatch.diff, 2.9 KB (added by RJVB (René Bertin), 4 months ago)

Fix port:phonon-backend-gstreamer (#8142ad6b5bc52b1f55903c48fc947f901244d55c)

  • audio/phonon-backend-gstreamer/Portfile

    diff --git a/audio/phonon-backend-gstreamer/Portfile b/audio/phonon-backend-gstreamer/Portfile
    index fea10cc34..dde53309f 100644
    a b checksums rmd160 43095bdb9fe8729fd795910188c46cdcb0eae12f \ 
    1818# ATTENTION: This renaming is suddenly needed, as the foldername skips "-backend" from version 4.8.2 to 4.9.0:
    1919worksrcdir          phonon-gstreamer-${version}
    2020
    21 # NOTE: There is now a variable called BUILD_X11RENDERER, which seems to control the building of the X11 renderer.
    22 #       Weird, but this variable's default value in gstreamer's CMakeLists.txt is set to TRUE, although FALSE is needed!
    23 patchfiles-append   patch-gstreamer_CMakeLists.txt.diff
     21patchfiles-append   patch-phononBGSTr-avoid-x11renderer.diff
    2422
    2523depends_lib-append  port:gstreamer1-gst-plugins-good
    2624
  • deleted file udio/phonon-backend-gstreamer/files/patch-gstreamer_CMakeLists.txt.diff

    diff --git a/audio/phonon-backend-gstreamer/files/patch-gstreamer_CMakeLists.txt.diff b/audio/phonon-backend-gstreamer/files/patch-gstreamer_CMakeLists.txt.diff
    deleted file mode 100644
    index 85cd3c222..000000000
    + -  
    1 --- gstreamer/CMakeLists.txt.orig       2016-04-18 06:25:19.000000000 +0200
    2 +++ gstreamer/CMakeLists.txt    2016-12-13 04:16:16.000000000 +0100
    3 @@ -88,7 +88,7 @@
    4      list(APPEND phonon_gstreamer_SRCS glrenderer.cpp)
    5  endif ()
    6  
    7 -set(BUILD_X11RENDERER TRUE)
    8 +set(BUILD_X11RENDERER FALSE)
    9  if (PHONON_BUILD_PHONON4QT5)
    10      if (Qt5X11Extras_FOUND)
    11          set(BUILD_X11RENDERER TRUE)
  • new file audio/phonon-backend-gstreamer/files/patch-phononBGSTr-avoid-x11renderer.diff

    diff --git a/audio/phonon-backend-gstreamer/files/patch-phononBGSTr-avoid-x11renderer.diff b/audio/phonon-backend-gstreamer/files/patch-phononBGSTr-avoid-x11renderer.diff
    new file mode 100644
    index 000000000..ae2487936
    - +  
     1diff --git gstreamer/CMakeLists.txt gstreamer/CMakeLists.txt
     2index cb01285..b7f542f 100644
     3--- gstreamer/CMakeLists.txt
     4+++ gstreamer/CMakeLists.txt
     5@@ -88,12 +88,12 @@ if (OPENGL_FOUND)
     6     list(APPEND phonon_gstreamer_SRCS glrenderer.cpp)
     7 endif ()
     8 
     9-set(BUILD_X11RENDERER TRUE)
     10+set(BUILD_X11RENDERER FALSE)
     11 if (PHONON_BUILD_PHONON4QT5)
     12     if (Qt5X11Extras_FOUND)
     13         set(BUILD_X11RENDERER TRUE)
     14     endif()
     15-elseif (NOT WIN32)
     16+elseif (NOT WIN32 AND NOT APPLE)
     17     set(BUILD_X11RENDERER TRUE)
     18 endif()
     19 
     20diff --git gstreamer/videowidget.cpp gstreamer/videowidget.cpp
     21index bd27b21..06e25a1 100644
     22--- gstreamer/videowidget.cpp
     23+++ gstreamer/videowidget.cpp
     24@@ -80,10 +80,12 @@ VideoWidget::~VideoWidget()
     25 
     26 void VideoWidget::updateWindowID()
     27 {
     28+#ifdef BUILD_X11RENDERER
     29     X11Renderer *render = dynamic_cast<X11Renderer*>(m_renderer);
     30     if (render) {
     31         render->setOverlay();
     32     }
     33+#endif
     34 }
     35 
     36 void Gstreamer::VideoWidget::syncX()