commit:     44408c23a81c88f99ab2ea6a94bae01f1a3e2f19
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  5 23:23:34 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr  5 23:24:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44408c23

games-util/antimicro: include SDL 2 patch

Not clear why this doesn't happen for me, but it happened
for toralf and a user, which is good enough. Patch is
straightforward.

Thanks-to: Tim Barnes <tim.barnes <AT> gmail.com>
Closes: https://bugs.gentoo.org/649242
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-util/antimicro/antimicro-2.23.ebuild                   |  1 +
 games-util/antimicro/files/antimicro-2.23-SDL2-include.patch | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/games-util/antimicro/antimicro-2.23.ebuild 
b/games-util/antimicro/antimicro-2.23.ebuild
index 13efec5688b..1363ec031a9 100644
--- a/games-util/antimicro/antimicro-2.23.ebuild
+++ b/games-util/antimicro/antimicro-2.23.ebuild
@@ -31,6 +31,7 @@ BDEPEND="
 PATCHES=(
        "${FILESDIR}"/${P}-linking-errors.patch
        "${FILESDIR}"/${PN}-2.23-no-compress-man-page.patch
+       "${FILESDIR}"/${PN}-2.23-SDL2-include.patch
 )
 
 src_prepare() {

diff --git a/games-util/antimicro/files/antimicro-2.23-SDL2-include.patch 
b/games-util/antimicro/files/antimicro-2.23-SDL2-include.patch
new file mode 100644
index 00000000000..a71e9b4b862
--- /dev/null
+++ b/games-util/antimicro/files/antimicro-2.23-SDL2-include.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/649242
+Thanks-to: Tim Barnes
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -585,6 +585,7 @@
+     endif(WITH_XTEST)
+ 
+     if(USE_SDL_2)
++        include_directories(${SDL2_INCLUDE_DIRS})
+         list(APPEND LIBS ${SDL2_LIBRARIES})
+     else()
+         list(APPEND LIBS ${SDL_LIBRARIES})

Reply via email to