commit:     c70c727c98b24ad8b44e05285b8785be15062af0
Author:     Marty E. Plummer <hanetzer <AT> startmail <DOT> com>
AuthorDate: Sun Apr 29 12:43:51 2018 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon May  7 20:56:25 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c70c727c

media-libs/libsdl2: enable cocoa on osx

Required for building on osx prefix, otherwise you get the following
build failures:

Undefined symbols for architecture x86_64:
  "_Cocoa_IsWindowInFullscreenSpace", referenced from:
      _SDL_UpdateFullscreenMode in SDL_video.o
      _SDL_OnWindowFocusLost in SDL_video.o
  "_Cocoa_Mtl_AddMetalView", referenced from:
      _METAL_CreateRenderer in SDL_render_metal.o
  "_Cocoa_SetWindowFullscreenSpace", referenced from:
      _SDL_UpdateFullscreenMode in SDL_video.o
ld: symbol(s) not found for architecture x86_64
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/8200

 media-libs/libsdl2/libsdl2-2.0.8-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-libs/libsdl2/libsdl2-2.0.8-r1.ebuild 
b/media-libs/libsdl2/libsdl2-2.0.8-r1.ebuild
index 40cd411567a..8ee6ce877f3 100644
--- a/media-libs/libsdl2/libsdl2-2.0.8-r1.ebuild
+++ b/media-libs/libsdl2/libsdl2-2.0.8-r1.ebuild
@@ -13,7 +13,7 @@ LICENSE="ZLIB"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~ppc ~ppc64 ~sparc x86"
 
-IUSE="cpu_flags_x86_3dnow alsa altivec custom-cflags dbus gles haptic 
libsamplerate +joystick cpu_flags_x86_mmx nas opengl oss pulseaudio +sound 
cpu_flags_x86_sse cpu_flags_x86_sse2 static-libs +threads tslib udev +video 
wayland X xinerama xscreensaver"
+IUSE="cpu_flags_x86_3dnow alsa altivec aqua custom-cflags dbus gles haptic 
libsamplerate +joystick cpu_flags_x86_mmx nas opengl oss pulseaudio +sound 
cpu_flags_x86_sse cpu_flags_x86_sse2 static-libs +threads tslib udev +video 
wayland X xinerama xscreensaver"
 REQUIRED_USE="
        alsa? ( sound )
        gles? ( video )
@@ -133,7 +133,7 @@ multilib_src_configure() {
                $(use_enable xscreensaver video-x11-scrnsaver)
                $(use_enable X video-x11-xshape)
                $(use_enable X video-x11-vm)
-               --disable-video-cocoa
+               $(use_enable aqua video-cocoa)
                --disable-video-directfb
                --disable-fusionsound
                --disable-fusionsound-shared

Reply via email to