public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libsdl2/
Date: Sat,  3 Nov 2018 11:33:44 +0000 (UTC)	[thread overview]
Message-ID: <1541244800.046604e293c61b449639b42f7f09da1bdc38c209.chewi@gentoo> (raw)

commit:     046604e293c61b449639b42f7f09da1bdc38c209
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  3 11:31:55 2018 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Nov  3 11:33:20 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=046604e2

media-libs/libsdl2: Add vulkan support via USE flag

This now enables the "loadso" option unconditionally, partly because
both Vulkan and Windows require it, and partly because upstream insist
that it should be enabled. It is feasible that Vulkan could be made to
work without it and upstream have shown interest so if someone is
prepared to do the work then we can revisit this.

Closes: https://bugs.gentoo.org/644732
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 media-libs/libsdl2/libsdl2-2.0.9.ebuild | 19 ++++++++++++++-----
 media-libs/libsdl2/metadata.xml         |  1 +
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/media-libs/libsdl2/libsdl2-2.0.9.ebuild b/media-libs/libsdl2/libsdl2-2.0.9.ebuild
index 252b7b88f62..559a55814eb 100644
--- a/media-libs/libsdl2/libsdl2-2.0.9.ebuild
+++ b/media-libs/libsdl2/libsdl2-2.0.9.ebuild
@@ -13,18 +13,19 @@ LICENSE="ZLIB"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
 
-IUSE="cpu_flags_x86_3dnow alsa altivec aqua custom-cflags dbus gles haptic libsamplerate +joystick kms cpu_flags_x86_mmx nas opengl oss pulseaudio +sound cpu_flags_x86_sse cpu_flags_x86_sse2 static-libs +threads tslib udev +video video_cards_vc4 wayland X xinerama xscreensaver"
+IUSE="cpu_flags_x86_3dnow alsa altivec aqua custom-cflags dbus gles haptic libsamplerate +joystick kms cpu_flags_x86_mmx nas opengl oss pulseaudio +sound cpu_flags_x86_sse cpu_flags_x86_sse2 static-libs +threads tslib udev +video video_cards_vc4 vulkan wayland X xinerama xscreensaver"
 REQUIRED_USE="
 	alsa? ( sound )
 	gles? ( video )
 	nas? ( sound )
 	opengl? ( video )
 	pulseaudio? ( sound )
+	vulkan? ( video )
 	wayland? ( gles )
 	xinerama? ( X )
 	xscreensaver? ( X )"
 
-RDEPEND="
+CDEPEND="
 	alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
 	dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
 	gles? ( >=media-libs/mesa-9.1.6[${MULTILIB_USEDEP},gles2] )
@@ -59,7 +60,10 @@ RDEPEND="
 		xinerama? ( >=x11-libs/libXinerama-1.1.3[${MULTILIB_USEDEP}] )
 		xscreensaver? ( >=x11-libs/libXScrnSaver-1.2.2-r1[${MULTILIB_USEDEP}] )
 	)"
-DEPEND="${RDEPEND}
+RDEPEND="${CDEPEND}
+	vulkan? ( media-libs/vulkan-loader )"
+DEPEND="${CDEPEND}
+	vulkan? ( dev-util/vulkan-headers )
 	X? ( x11-base/xorg-proto )
 	virtual/pkgconfig"
 
@@ -79,6 +83,11 @@ S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
 	default
+
+	# Unbundle some headers.
+	rm -rv src/video/khronos || die
+	ln -s "${SYSROOT}${EPREFIX}"/usr/include src/video/khronos || die
+
 	sed -i -e 's/configure.in/configure.ac/' Makefile.in || die
 	mv configure.{in,ac} || die
 	AT_M4DIR="/usr/share/aclocal acinclude" eautoreconf
@@ -102,7 +111,7 @@ multilib_src_configure() {
 		$(use_enable threads)
 		--enable-timers
 		--enable-file
-		$(use_enable kernel_Winnt loadso)
+		--enable-loadso
 		--enable-cpuinfo
 		--enable-assembly
 		$(use_enable cpu_flags_x86_sse ssemath)
@@ -149,7 +158,7 @@ multilib_src_configure() {
 		$(use_enable opengl video-opengl)
 		--disable-video-opengles1
 		$(use_enable gles video-opengles2)
-		--disable-video-vulkan
+		$(use_enable vulkan video-vulkan)
 		$(use_enable udev libudev)
 		$(use_enable dbus)
 		--disable-ibus

diff --git a/media-libs/libsdl2/metadata.xml b/media-libs/libsdl2/metadata.xml
index 66484c6e18e..253e9af8f2d 100644
--- a/media-libs/libsdl2/metadata.xml
+++ b/media-libs/libsdl2/metadata.xml
@@ -31,5 +31,6 @@
 		<flag name="sound">Control audio support (disable at your own risk)</flag>
 		<flag name="tslib">Build with tslib support for touchscreen devices</flag>
 		<flag name="video">Control video support (disable at your own risk)</flag>
+		<flag name="vulkan">Enable Vulkan support</flag>
 	</use>
 </pkgmetadata>


             reply	other threads:[~2018-11-03 11:33 UTC|newest]

Thread overview: 216+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-03 11:33 James Le Cuirot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-29 11:22 [gentoo-commits] repo/gentoo:master commit in: media-libs/libsdl2/ Sam James
2024-09-29  0:19 Sam James
2024-09-28 20:43 James Le Cuirot
2024-09-28 20:43 James Le Cuirot
2024-09-02  6:16 Sam James
2024-08-29  2:50 Sam James
2024-07-20  4:38 Sam James
2024-07-20  4:38 Sam James
2024-07-20  4:38 Sam James
2024-07-19 23:51 Sam James
2024-07-19 23:51 Sam James
2024-07-19 23:36 Sam James
2024-07-19 23:36 Sam James
2024-07-19 22:57 Sam James
2024-07-19 22:57 Sam James
2024-05-25 12:39 WANG Xuerui
2024-05-19  9:15 James Le Cuirot
2024-05-05 23:44 Ionen Wolkens
2024-05-04  7:17 Arthur Zamarin
2024-05-02  4:32 Sam James
2024-05-01  6:03 Sam James
2024-04-27 21:09 James Le Cuirot
2024-04-27 21:09 James Le Cuirot
2024-04-13 22:05 James Le Cuirot
2024-03-28  3:46 Sam James
2024-03-17 13:44 James Le Cuirot
2024-03-17  3:42 Sam James
2024-02-10 21:24 James Le Cuirot
2024-02-03 13:38 Sam James
2024-02-03  6:56 Sam James
2024-02-02 14:46 Arthur Zamarin
2024-02-02  4:44 Sam James
2024-01-23 19:15 Mike Gilbert
2024-01-16  5:46 Viorel Munteanu
2024-01-15  3:32 Ionen Wolkens
2023-12-15  3:26 Ionen Wolkens
2023-12-15  3:26 Ionen Wolkens
2023-11-24  9:31 Sam James
2023-11-23 17:12 Sam James
2023-11-20  6:00 Michał Górny
2023-11-04 19:48 Sam James
2023-10-22 15:37 James Le Cuirot
2023-10-22 15:37 James Le Cuirot
2023-10-03  3:14 Sam James
2023-09-28  4:35 Sam James
2023-09-27  4:03 Sam James
2023-09-27  3:48 Sam James
2023-09-02 13:58 Sam James
2023-08-13 17:56 Andreas Sturmlechner
2023-08-03 10:28 Arthur Zamarin
2023-08-02 22:02 Sam James
2023-08-02 13:19 Sam James
2023-08-01 18:28 Arthur Zamarin
2023-08-01 18:28 Arthur Zamarin
2023-08-01 16:24 Sam James
2023-08-01 16:24 Sam James
2023-07-15 13:28 Arthur Zamarin
2023-07-15 13:28 Arthur Zamarin
2023-07-12  6:39 Jakov Smolić
2023-06-22  4:59 Sam James
2023-06-03 19:45 Arthur Zamarin
2023-06-03  3:23 Sam James
2023-06-03  3:23 Sam James
2023-06-03  2:23 Sam James
2023-05-29  9:12 Andreas Sturmlechner
2023-05-23  2:52 Sam James
2023-05-03 11:16 Sam James
2023-05-03 10:07 Sam James
2023-02-07 23:06 Sam James
2023-02-01  9:11 Arthur Zamarin
2023-01-26 22:03 Sam James
2023-01-26 21:21 Sam James
2023-01-26 20:55 Arthur Zamarin
2023-01-26 20:38 Arthur Zamarin
2023-01-26 20:38 Arthur Zamarin
2023-01-04  3:31 Sam James
2022-12-09 15:36 Sam James
2022-12-03 17:33 Arthur Zamarin
2022-12-03 15:08 Arthur Zamarin
2022-12-03 14:43 Arthur Zamarin
2022-12-02 18:57 Arthur Zamarin
2022-12-02 18:57 Arthur Zamarin
2022-12-02  8:35 Arthur Zamarin
2022-12-02  8:15 Arthur Zamarin
2022-11-18  6:47 Ionen Wolkens
2022-11-18  5:52 Sam James
2022-10-03 20:29 James Le Cuirot
2022-10-03  8:32 Agostino Sarubbo
2022-10-03  8:31 Agostino Sarubbo
2022-10-03  8:28 Agostino Sarubbo
2022-10-03  8:26 Agostino Sarubbo
2022-10-03  8:24 Agostino Sarubbo
2022-10-02 16:30 Arthur Zamarin
2022-10-02 16:30 Arthur Zamarin
2022-08-20 10:09 James Le Cuirot
2022-08-04 21:17 James Le Cuirot
2022-07-29  4:17 Sam James
2022-05-19  5:08 WANG Xuerui
2022-04-14 21:34 James Le Cuirot
2022-04-14  8:11 Agostino Sarubbo
2022-04-09 19:56 Arthur Zamarin
2022-04-05  2:37 Sam James
2022-04-04 18:28 Jakov Smolić
2022-04-04  6:37 Agostino Sarubbo
2022-04-03 22:08 Jakov Smolić
2022-04-03 10:10 Agostino Sarubbo
2022-01-23  9:35 Ionen Wolkens
2022-01-13  0:55 Sam James
2021-10-31  0:19 Sam James
2021-10-02 18:39 Sam James
2021-09-30 18:18 Sam James
2021-09-26  7:29 Agostino Sarubbo
2021-09-25  5:21 Agostino Sarubbo
2021-09-25  5:20 Agostino Sarubbo
2021-09-25  5:18 Agostino Sarubbo
2021-09-24 22:53 Sam James
2021-09-23 22:08 James Le Cuirot
2021-09-23 22:07 James Le Cuirot
2021-09-12 11:13 James Le Cuirot
2021-09-12 11:13 James Le Cuirot
2021-08-10 20:36 James Le Cuirot
2021-05-15 19:17 Sam James
2021-05-15  2:41 Sam James
2021-05-10  6:58 Agostino Sarubbo
2021-05-06  7:22 Sergei Trofimovich
2021-05-05 11:40 Lars Wendler
2021-05-05 11:40 Lars Wendler
2021-05-02 19:33 James Le Cuirot
2021-05-01 18:19 Agostino Sarubbo
2021-04-25  9:18 Sergei Trofimovich
2021-04-25  9:18 Sergei Trofimovich
2021-04-24  7:40 Lars Wendler
2021-04-19 20:54 Sam James
2021-02-27 12:30 Sam James
2021-01-11 18:33 Lars Wendler
2021-01-11 16:45 Mike Gilbert
2021-01-09 10:36 Sam James
2020-12-17  3:58 Sam James
2020-10-09  8:31 Agostino Sarubbo
2020-10-08 17:31 Sergei Trofimovich
2020-10-06 13:16 Sam James
2020-10-03 12:16 Sergei Trofimovich
2020-09-30 21:15 Sam James
2020-08-30  2:41 Sam James
2020-08-21  3:07 Sam James
2020-08-18 11:22 Agostino Sarubbo
2020-08-18 11:16 Agostino Sarubbo
2020-08-17 14:52 Agostino Sarubbo
2020-08-17 14:09 Agostino Sarubbo
2020-04-06 18:51 James Le Cuirot
2020-04-06 18:51 James Le Cuirot
2020-04-05 21:34 James Le Cuirot
2020-03-27 18:19 Sergei Trofimovich
2020-03-18 18:53 Georgy Yakovlev
2020-02-11 22:35 James Le Cuirot
2020-01-27 21:07 James Le Cuirot
2019-09-13 15:50 Mikle Kolyada
2019-09-08 18:30 Sergei Trofimovich
2019-09-08 18:26 Sergei Trofimovich
2019-09-08 18:21 Sergei Trofimovich
2019-09-08 10:42 Agostino Sarubbo
2019-09-08  1:13 Thomas Deutschmann
2019-09-07  1:52 Aaron Bauman
2019-06-28 22:19 Sergei Trofimovich
2019-02-07 16:50 Mikle Kolyada
2019-01-31  8:49 Tobias Klausmann
2019-01-17  8:29 Sergei Trofimovich
2019-01-17  8:08 Sergei Trofimovich
2019-01-16 15:19 Lars Wendler
2019-01-16 15:14 Mikle Kolyada
2019-01-15 22:29 Thomas Deutschmann
2019-01-01 12:05 Sergei Trofimovich
2018-10-31 21:53 James Le Cuirot
2018-10-31 21:53 James Le Cuirot
2018-10-10 16:26 Markus Meier
2018-09-16 13:15 Mikle Kolyada
2018-09-14 12:17 Tobias Klausmann
2018-09-09  1:12 Thomas Deutschmann
2018-09-07 23:03 Sergei Trofimovich
2018-09-07 22:54 Sergei Trofimovich
2018-09-07 22:43 Sergei Trofimovich
2018-07-08 10:53 Jeroen Roovers
2018-05-26 21:38 James Le Cuirot
2018-05-16 10:01 Alfredo Tupone
2018-05-14 11:49 Tobias Klausmann
2018-05-14  6:17 Alfredo Tupone
2018-05-07 21:05 James Le Cuirot
2018-05-07 20:57 James Le Cuirot
2018-04-26  8:28 Mikle Kolyada
2018-04-25 20:05 Aaron Bauman
2018-04-21 21:18 Sergei Trofimovich
2018-04-18 18:37 Pacho Ramos
2018-04-18 18:37 Pacho Ramos
2018-03-05 20:26 Sergei Trofimovich
2018-03-02 12:15 Lars Wendler
2018-03-02 12:15 Lars Wendler
2018-03-02 12:15 Lars Wendler
2017-12-06 22:34 Sergei Trofimovich
2017-12-06 22:34 Sergei Trofimovich
2017-11-04 23:51 James Le Cuirot
2017-10-24  8:33 Lars Wendler
2017-06-10 20:14 Sergei Trofimovich
2017-06-10 20:14 Sergei Trofimovich
2017-06-10 20:14 Sergei Trofimovich
2017-02-22 13:35 Michael Weber
2016-07-25 16:30 Chí-Thanh Christopher Nguyễn
2016-05-02  0:35 Matt Turner
2016-03-15 17:22 Markus Meier
2016-03-15 16:15 Michael Sterrett
2016-03-15  7:45 Michael Sterrett
2016-02-21  7:41 Jeroen Roovers
2016-02-13 15:33 Agostino Sarubbo
2015-12-24 20:18 Mike Frysinger
2015-11-14  5:29 Michael Sterrett
2015-09-06  6:18 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1541244800.046604e293c61b449639b42f7f09da1bdc38c209.chewi@gentoo \
    --to=chewi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox