1 |
commit: ea3f59777a76bb44feeef346e9d55496a5826646 |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Sun Jun 27 06:59:57 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 30 02:40:38 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea3f5977 |
7 |
|
8 |
media-libs/glfw: Add support for multilib |
9 |
|
10 |
This is required for proprietary games compiled only for x86_32. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/580890 |
13 |
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/21441 |
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
media-libs/glfw/glfw-3.3.4-r1.ebuild | 55 ++++++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 55 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/glfw/glfw-3.3.4-r1.ebuild b/media-libs/glfw/glfw-3.3.4-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..43f33ee0dd7 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/glfw/glfw-3.3.4-r1.ebuild |
25 |
@@ -0,0 +1,55 @@ |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+CMAKE_ECLASS=cmake |
32 |
+inherit cmake-multilib |
33 |
+ |
34 |
+DESCRIPTION="The Portable OpenGL FrameWork" |
35 |
+HOMEPAGE="https://www.glfw.org/" |
36 |
+SRC_URI="https://github.com/glfw/glfw/archive/${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="ZLIB" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86" |
41 |
+IUSE="wayland" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ x11-libs/libxkbcommon[${MULTILIB_USEDEP}] |
45 |
+ !wayland? ( |
46 |
+ virtual/opengl[${MULTILIB_USEDEP}] |
47 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
48 |
+ x11-libs/libXcursor[${MULTILIB_USEDEP}] |
49 |
+ x11-libs/libXinerama[${MULTILIB_USEDEP}] |
50 |
+ x11-libs/libXrandr[${MULTILIB_USEDEP}] |
51 |
+ x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
52 |
+ ) |
53 |
+ wayland? ( |
54 |
+ dev-libs/wayland[${MULTILIB_USEDEP}] |
55 |
+ media-libs/mesa[egl,wayland,${MULTILIB_USEDEP}] |
56 |
+ ) |
57 |
+" |
58 |
+DEPEND=" |
59 |
+ ${RDEPEND} |
60 |
+ !wayland? ( |
61 |
+ x11-base/xorg-proto |
62 |
+ x11-libs/libXi[${MULTILIB_USEDEP}] |
63 |
+ ) |
64 |
+ wayland? ( dev-libs/wayland-protocols ) |
65 |
+" |
66 |
+BDEPEND=" |
67 |
+ wayland? ( |
68 |
+ dev-util/wayland-scanner |
69 |
+ kde-frameworks/extra-cmake-modules |
70 |
+ ) |
71 |
+" |
72 |
+ |
73 |
+src_configure() { |
74 |
+ local mycmakeargs=( |
75 |
+ -DGLFW_BUILD_EXAMPLES=no |
76 |
+ -DGLFW_USE_WAYLAND="$(usex wayland)" |
77 |
+ -DBUILD_SHARED_LIBS=1 |
78 |
+ ) |
79 |
+ cmake-multilib_src_configure |
80 |
+} |