media-video/kmplayer: backport patch from upstream fixing build with kde-base/kdelibs...
authorMichael Palimaka <kensington@gentoo.org>
Thu, 27 Aug 2015 13:19:24 +0000 (23:19 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 27 Aug 2015 13:19:42 +0000 (23:19 +1000)
Gentoo-bug: 558928

Package-Manager: portage-2.2.20.1

media-video/kmplayer/files/kmplayer-0.11.3d-kdelibs-4.14.11.patch [new file with mode: 0644]
media-video/kmplayer/kmplayer-0.11.3d-r3.ebuild

diff --git a/media-video/kmplayer/files/kmplayer-0.11.3d-kdelibs-4.14.11.patch b/media-video/kmplayer/files/kmplayer-0.11.3d-kdelibs-4.14.11.patch
new file mode 100644 (file)
index 0000000..f6206c2
--- /dev/null
@@ -0,0 +1,66 @@
+From 4be412db53ce6342103836163c7b809f36d88a03 Mon Sep 17 00:00:00 2001
+From: David Faure <faure@kde.org>
+Date: Sun, 26 Jul 2015 17:29:49 +0200
+Subject: [PATCH] set cmake_min_req to 2.8.9 to match kdelibs4 policy; fix
+ build accordingly
+
+(working around the lack of ${KDE4_KMEDIAPLAYER_LIBS})
+
+CCMAIL: kde-buildsystem@kde.org
+---
+ CMakeLists.txt     | 1 +
+ src/CMakeLists.txt | 8 +++++---
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 43d78ab..ff94308 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,3 +1,4 @@
++cmake_minimum_required(VERSION 2.8.9)
+ project(kmplayer)
+ cmake_policy(VERSION 2.6)
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 01180df..ac230ef 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -13,7 +13,7 @@ IF (KMPLAYER_WITH_CAIRO)
+     MESSAGE("have cairo cflags:${optionalCFlags} ldflags:${optionalLinkFlags}")
+ endif (KMPLAYER_WITH_CAIRO)
+-add_definitions(-DQT3_SUPPORT -DKDE3_SUPPORT -DKMPLAYER_VERSION_STRING=\\"${KMPLAYER_VERSION_STRING}\\")
++add_definitions(-DQT3_SUPPORT -DKDE3_SUPPORT -DKMPLAYER_VERSION_STRING="\\\"${KMPLAYER_VERSION_STRING}\\\"")
+ ADD_DEFINITIONS(${CAIROCFlags})
+@@ -73,6 +73,7 @@ SET_TARGET_PROPERTIES(kmplayercommon PROPERTIES COMPILE_FLAGS
+     "${CAIROCflags} ${GLibDBusCflags}")
+ target_link_libraries(kmplayercommon
++   LINK_PRIVATE
+   ${CAIROLinkFlags}
+   ${GLibDBusLinkFlags}
+   ${KDE4_KPARTS_LIBS}
+@@ -81,7 +82,7 @@ target_link_libraries(kmplayercommon
+   ${X11_X11_LIB}
+   ${EXPAT_LIBRARIES}
+   ${KDE4_SOLID_LIBS}
+-  kmediaplayer
++  ${KDE4_TARGET_PREFIX}kmediaplayer
+ )
+ install(TARGETS kmplayercommon ${INSTALL_TARGETS_DEFAULT_ARGS} )
+@@ -93,7 +94,8 @@ set(kmplayerpart_SRCS kmplayer_part.cpp)
+ kde4_add_plugin(kmplayerpart WITH_PREFIX ${kmplayerpart_SRCS})
+ target_link_libraries(kmplayerpart
+-  kmplayercommon kmediaplayer
++  kmplayercommon
++  ${KDE4_TARGET_PREFIX}kmediaplayer
+   ${KDE4_KPARTS_LIBS}
+   ${KDE4_KDEUI_LIBS}
+   ${QT_QT3SUPPORT_LIBRARY}
+-- 
+2.4.6
+
index f9dc8fb5419c453ff26ace2f6378065fa3dd4f65..1aa27fa1738f83f5ea21681a973dfb1473d4cedd 100644 (file)
@@ -38,6 +38,8 @@ RDEPEND="${DEPEND}
        media-video/mplayer
 "
 
+PATCHES=( "${FILESDIR}/${P}-kdelibs-4.14.11.patch" )
+
 src_prepare() {
        use npp && epatch "${FILESDIR}/${PN}-flash.patch"
        sed -e '/add_subdirectory(icons)/d' \