mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
Fix build with recent libcec 3.1.0 update; bump PORTREVISION
PR: 208161 Submitted by: mickael.maillot@gmail.com Approved by: woodsb02@gmail.com (maintainer)
This commit is contained in:
parent
0cbe6a273b
commit
7a3948d1d4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413473
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= plexhometheater
|
||||
PORTVERSION= 1.4.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
DISTVERSIONPREFIX=v
|
||||
DISTVERSIONSUFFIX=.469-47a90f01
|
||||
CATEGORIES= multimedia
|
||||
@ -103,7 +103,7 @@ CEC_DESC= Control plexhometheater over HDMI with TV remote
|
||||
|
||||
OPTIONS_DEFAULT= CEC LIRC
|
||||
|
||||
CEC_BUILD_DEPENDS= libcec>=2.2.0:multimedia/libcec
|
||||
CEC_BUILD_DEPENDS= libcec>=3.0.0:multimedia/libcec
|
||||
CEC_LIB_DEPENDS= libcec.so:multimedia/libcec
|
||||
CEC_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_CEC:BOOL=true
|
||||
|
||||
|
@ -0,0 +1,38 @@
|
||||
--- xbmc/peripherals/devices/PeripheralCecAdapter.cpp.orig 2015-05-11 09:54:22 UTC
|
||||
+++ xbmc/peripherals/devices/PeripheralCecAdapter.cpp
|
||||
@@ -44,7 +44,7 @@ using namespace ANNOUNCEMENT;
|
||||
using namespace CEC;
|
||||
using namespace std;
|
||||
|
||||
-#define CEC_LIB_SUPPORTED_VERSION 0x2100
|
||||
+#define CEC_LIB_SUPPORTED_VERSION LIBCEC_VERSION_TO_UINT(3, 0, 0)
|
||||
|
||||
/* time in seconds to ignore standby commands from devices after the screensaver has been activated */
|
||||
#define SCREENSAVER_TIMEOUT 10
|
||||
@@ -282,7 +282,7 @@ bool CPeripheralCecAdapter::InitialiseFe
|
||||
}
|
||||
else
|
||||
{
|
||||
- CLog::Log(LOGDEBUG, "%s - using libCEC v%s", __FUNCTION__, m_cecAdapter->ToString((cec_server_version)m_configuration.serverVersion));
|
||||
+ CLog::Log(LOGDEBUG, "%s - using libCEC v%s", __FUNCTION__, m_cecAdapter->VersionToString(m_configuration.serverVersion).c_str());
|
||||
SetVersionInfo(m_configuration);
|
||||
}
|
||||
|
||||
@@ -295,7 +295,7 @@ bool CPeripheralCecAdapter::InitialiseFe
|
||||
|
||||
void CPeripheralCecAdapter::SetVersionInfo(const libcec_configuration &configuration)
|
||||
{
|
||||
- m_strVersionInfo.Format("libCEC %s - firmware v%d", m_cecAdapter->ToString((cec_server_version)configuration.serverVersion), configuration.iFirmwareVersion);
|
||||
+ m_strVersionInfo.Format("libCEC %s - firmware v%d", m_cecAdapter->VersionToString(configuration.serverVersion).c_str(), configuration.iFirmwareVersion);
|
||||
|
||||
// append firmware build date
|
||||
if (configuration.iFirmwareBuildDate != CEC_FW_BUILD_UNKNOWN)
|
||||
@@ -1303,7 +1303,7 @@ void CPeripheralCecAdapter::SetConfigura
|
||||
void CPeripheralCecAdapter::SetConfigurationFromSettings(void)
|
||||
{
|
||||
// client version matches the version of libCEC that we originally used the API from
|
||||
- m_configuration.clientVersion = CEC_CLIENT_VERSION_2_2_0;
|
||||
+ m_configuration.clientVersion = LIBCEC_VERSION_TO_UINT(3, 0, 0);
|
||||
|
||||
// device name 'XBMC'
|
||||
snprintf(m_configuration.strDeviceName, 13, "%s", GetSettingString("device_name").c_str());
|
Loading…
Reference in New Issue
Block a user