multimedia/kodi-devel: Unbreak WAYLAND option

This commit is contained in:
Tobias Kortkamp 2018-03-25 15:36:43 +00:00
parent 4cd4110a9a
commit e0eee5ee79
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=465525
3 changed files with 31 additions and 21 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= kodi PORTNAME= kodi
DISTVERSION= 18.0.g201803211302 DISTVERSION= 18.0.g201803211302
PORTREVISION= 1
CATEGORIES= multimedia CATEGORIES= multimedia
PKGNAMESUFFIX?= -devel PKGNAMESUFFIX?= -devel
@ -73,14 +74,13 @@ CONFIGURE_ENV= OPENSSL_LIBS="-L${OPENSSLLIB}" OPENSSL_CFLAGS="-I${OPENSSLINC}"
KODIARCH_i386= x86 KODIARCH_i386= x86
KODIARCH_amd64= x86_64 KODIARCH_amd64= x86_64
PLIST_SUB= ARCH=${KODIARCH_${ARCH}:U${ARCH}} OPSYS=${OPSYS:tl} \ PLIST_SUB= ARCH=${KODIARCH_${ARCH}:U${ARCH}} OPSYS=${OPSYS:tl}
WAYLAND="@comment "
OPTIONS_DEFINE= AVAHI CEC DBUS LIBBLURAY MYSQL NFS SMB SSH UPNP VAAPI \ OPTIONS_DEFINE= AVAHI CEC DBUS LIBBLURAY MYSQL NFS SMB SSH UPNP VAAPI \
VDPAU WEBSERVER VDPAU WEBSERVER
OPTIONS_DEFAULT= LIBBLURAY SNDIO SSH UPNP VAAPI VDPAU WEBSERVER X11 OPTIONS_DEFAULT= LIBBLURAY SNDIO SSH UPNP VAAPI VDPAU WEBSERVER X11
OPTIONS_SINGLE= PLATFORM OPTIONS_SINGLE= PLATFORM
OPTIONS_SINGLE_PLATFORM= GBM RPI X11 OPTIONS_SINGLE_PLATFORM= GBM RPI WAYLAND X11
OPTIONS_EXCLUDE_amd64= RPI OPTIONS_EXCLUDE_amd64= RPI
OPTIONS_EXCLUDE_i386= RPI OPTIONS_EXCLUDE_i386= RPI
OPTIONS_SUB= yes OPTIONS_SUB= yes
@ -95,7 +95,6 @@ CEC_DESC= CEC adapter support
GBM_DESC= GBM support (requires a kernel with evdev support) GBM_DESC= GBM support (requires a kernel with evdev support)
PLATFORM_DESC= Platform PLATFORM_DESC= Platform
RPI_DESC= Raspberry Pi support RPI_DESC= Raspberry Pi support
WAYLAND_DESC= Wayland support (broken)
AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app
AVAHI_CMAKE_BOOL= ENABLE_AVAHI AVAHI_CMAKE_BOOL= ENABLE_AVAHI
@ -154,7 +153,6 @@ VAAPI_CMAKE_BOOL= ENABLE_VAAPI
VDPAU_LIB_DEPENDS= libvdpau.so:multimedia/libvdpau VDPAU_LIB_DEPENDS= libvdpau.so:multimedia/libvdpau
VDPAU_CMAKE_BOOL= ENABLE_VDPAU VDPAU_CMAKE_BOOL= ENABLE_VDPAU
# Not enabled: Requires default WAYLAND in graphics/mesa-libs and missing graphics/waylandpp port
WAYLAND_BUILD_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols WAYLAND_BUILD_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols
WAYLAND_CMAKE_ON= -DCORE_PLATFORM_NAME:STRING="wayland" \ WAYLAND_CMAKE_ON= -DCORE_PLATFORM_NAME:STRING="wayland" \
-DWAYLAND_RENDER_SYSTEM:STRING="gl" -DWAYLAND_RENDER_SYSTEM:STRING="gl"

View File

@ -24,15 +24,6 @@
else() else()
message(WARNING "unknown CPU: ${CPU}") message(WARNING "unknown CPU: ${CPU}")
endif() endif()
--- cmake/treedata/freebsd/subdirs.txt.orig 2018-01-05 00:21:32 UTC
+++ cmake/treedata/freebsd/subdirs.txt
@@ -9,4 +9,6 @@ xbmc/storage/linux storage/linux
xbmc/filesystem/posix filesystem/posix
xbmc/utils/posix utils_posix
xbmc/platform/posix posix
+xbmc/cores/RetroPlayer/process/rbpi cores/RetroPlayer/process/rbpi
+xbmc/cores/VideoPlayer/Process/rbpi cores/VideoPlayer/Process/rbpi
xbmc/freebsd freebsdsupport
--- xbmc/windowing/rpi/WinSystemRpi.cpp.orig 2018-02-09 09:50:14 UTC --- xbmc/windowing/rpi/WinSystemRpi.cpp.orig 2018-02-09 09:50:14 UTC
+++ xbmc/windowing/rpi/WinSystemRpi.cpp +++ xbmc/windowing/rpi/WinSystemRpi.cpp
@@ -32,9 +32,16 @@ @@ -32,9 +32,16 @@

View File

@ -1,13 +1,34 @@
--- cmake/modules/FindWaylandpp.cmake.orig 2018-03-21 13:02:45 UTC
+++ cmake/modules/FindWaylandpp.cmake
@@ -10,7 +10,7 @@
# WAYLANDPP_DEFINITIONS - the waylandpp definitions
# WAYLANDPP_SCANNER - path to wayland-scanner++
-pkg_check_modules(WAYLANDPP wayland-client++ wayland-egl++ wayland-cursor++)
+pkg_check_modules(WAYLANDPP wayland-client++ wayland-client-extra++ wayland-egl++ wayland-cursor++)
pkg_check_modules(PC_WAYLANDPP_SCANNER wayland-scanner++)
if(WAYLANDPP_FOUND)
pkg_get_variable(PC_WAYLANDPP_PKGDATADIR wayland-client++ pkgdatadir)
--- cmake/treedata/freebsd/subdirs.txt.orig 2018-03-21 13:02:45 UTC
+++ cmake/treedata/freebsd/subdirs.txt
@@ -9,4 +9,7 @@ xbmc/storage/linux storage/linux
xbmc/filesystem/posix filesystem/posix
xbmc/utils/posix utils_posix
xbmc/platform/posix posix
+xbmc/cores/RetroPlayer/process/rbpi cores/RetroPlayer/process/rbpi
+xbmc/cores/VideoPlayer/Process/rbpi cores/VideoPlayer/Process/rbpi
xbmc/freebsd freebsdsupport
+xbmc/windowing/linux windowing/linux
--- xbmc/windowing/wayland/ShellSurfaceXdgShell.h.orig 2018-03-21 13:02:45 UTC --- xbmc/windowing/wayland/ShellSurfaceXdgShell.h.orig 2018-03-21 13:02:45 UTC
+++ xbmc/windowing/wayland/ShellSurfaceXdgShell.h +++ xbmc/windowing/wayland/ShellSurfaceXdgShell.h
@@ -22,6 +22,7 @@ @@ -23,6 +23,7 @@
#include "Connection.h"
#include "ShellSurface.h" #include "ShellSurface.h"
+#include <wayland-client-protocol.hpp>
#include <wayland-extra-protocols.hpp> #include <wayland-extra-protocols.hpp>
+#include <wayland-client-protocol-extra.hpp>
namespace KODI namespace KODI
{
--- xbmc/windowing/wayland/WinSystemWayland.cpp.orig 2018-03-21 13:02:45 UTC --- xbmc/windowing/wayland/WinSystemWayland.cpp.orig 2018-03-21 13:02:45 UTC
+++ xbmc/windowing/wayland/WinSystemWayland.cpp +++ xbmc/windowing/wayland/WinSystemWayland.cpp
@@ -1331,7 +1331,7 @@ void CWinSystemWayland::PrepareFramePresentation() @@ -1331,7 +1331,7 @@ void CWinSystemWayland::PrepareFramePresentation()
@ -21,11 +42,11 @@
m_presentationFeedbackHandlers.Invoke(tv, refresh, m_syncOutputID, m_syncOutputRefreshRate, msc); m_presentationFeedbackHandlers.Invoke(tv, refresh, m_syncOutputID, m_syncOutputRefreshRate, msc);
--- xbmc/windowing/wayland/WinSystemWayland.h.orig 2018-03-21 13:02:45 UTC --- xbmc/windowing/wayland/WinSystemWayland.h.orig 2018-03-21 13:02:45 UTC
+++ xbmc/windowing/wayland/WinSystemWayland.h +++ xbmc/windowing/wayland/WinSystemWayland.h
@@ -28,6 +28,7 @@ @@ -30,6 +30,7 @@
#include <set>
#include <wayland-client.hpp> #include <wayland-client.hpp>
+#include <wayland-client-protocol.hpp>
#include <wayland-cursor.hpp> #include <wayland-cursor.hpp>
#include <wayland-extra-protocols.hpp> #include <wayland-extra-protocols.hpp>
+#include <wayland-client-protocol-extra.hpp>
#include "Connection.h"
#include "Output.h"