summaryrefslogtreecommitdiff
path: root/app-emulation/vice/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
commit623ee73d661e5ed8475cb264511f683407d87365 (patch)
tree993eb27c93ec7a2d2d19550300d888fc1fed9e69 /app-emulation/vice/files
parentceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff)
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'app-emulation/vice/files')
-rw-r--r--app-emulation/vice/files/vice-pkg-config.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-emulation/vice/files/vice-pkg-config.patch b/app-emulation/vice/files/vice-pkg-config.patch
new file mode 100644
index 000000000000..d29eff252fb5
--- /dev/null
+++ b/app-emulation/vice/files/vice-pkg-config.patch
@@ -0,0 +1,29 @@
+https://sourceforge.net/p/vice-emu/patches/218/
+
+Index: configure.proto
+===================================================================
+--- a/configure.proto (revision 37525)
++++ b/configure.proto (working copy)
+@@ -1275,6 +1275,14 @@
+ fi
+
+ if test x"$found_sdl2" != "xyes"; then
++ PKG_CHECK_MODULES(SDL2, sdl2, [
++ use_sdl_prefix=no
++ use_sdl2_prefix=no
++ found_sdl2=yes
++ VICE_CFLAGS="$VICE_CFLAGS $SDL2_CFLAGS"
++ VICE_CXXFLAGS="$VICE_CXXFLAGS $SDL2_CFLAGS"
++ LIBS="$LIBS $SDL2_LIBS"
++ ], [
+ dnl Check for sdl2-config
+ if test x"$sdl2_config" != "xno"; then
+ user_CFLAGS="$CFLAGS"
+@@ -1311,6 +1319,7 @@
+ CFLAGS="$user_CFLAGS"
+ CXXFLAGS="$user_CXXFLAGS"
+ fi
++ ])
+ fi
+
+ dnl fail if SDL2 ui was requested, otherwise restore flags and continue