media-libs/libgroove: fix build with libsdl2-2.0.6.
authorDiogo Pereira <sir.suriv@gmail.com>
Sun, 10 Dec 2017 01:22:13 +0000 (01:22 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Tue, 12 Dec 2017 20:01:11 +0000 (21:01 +0100)
Reported-by: Toralf Förster <toralf@gentoo.org>
Closes: https://bugs.gentoo.org/634470
Closes: https://github.com/gentoo/gentoo/pull/6496
Package-Manager: Portage-2.3.13, Repoman-2.3.3

media-libs/libgroove/files/libgroove-4.3.0_sdl2_include_dir.patch [new file with mode: 0644]
media-libs/libgroove/libgroove-4.3.0-r1.ebuild

diff --git a/media-libs/libgroove/files/libgroove-4.3.0_sdl2_include_dir.patch b/media-libs/libgroove/files/libgroove-4.3.0_sdl2_include_dir.patch
new file mode 100644 (file)
index 0000000..7967c23
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a1e8541..80a96c2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -208,7 +208,7 @@ else()
+   endif()
+   add_dependencies(grooveplayer groove)
+   target_link_libraries(grooveplayer LINK_PRIVATE ${SDL2_LIBRARY})
+-  include_directories(${SDL2_INCLUDE_DIR})
++  include_directories(${SDL2_INCLUDE_DIR} "${SDL2_INCLUDE_DIR}/SDL2")
+ 
+   install(FILES "grooveplayer/player.h" DESTINATION "include/grooveplayer")
+   install(TARGETS grooveplayer DESTINATION lib)
index 2b555731b7e250fbde2172d9b69f577dc1212462..2cfafff6daefc251fd027b25510af2eb6611ecd2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -22,6 +22,7 @@ DEPEND="libav? ( media-video/libav )
 RDEPEND="${DEPEND}"
 
 PATCHES=( "${FILESDIR}/${P}_cflags.patch"
+       "${FILESDIR}/${P}_sdl2_include_dir.patch"
        "${FILESDIR}/${P}_GNUInstallDirs.patch" )
 
 src_configure() {