* [gentoo-commits] repo/gentoo:master commit in: media-libs/libepoxy/files/, media-libs/libepoxy/
@ 2022-06-19 8:34 Joonas Niilola
0 siblings, 0 replies; 2+ messages in thread
From: Joonas Niilola @ 2022-06-19 8:34 UTC (permalink / raw
To: gentoo-commits
commit: 1cabfee1095110f283ea40ac93902093f588d425
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 17 12:48:54 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Jun 19 08:34:23 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cabfee1
media-libs/libepoxy: fix pkgconfig file to use lopengl with -X
Closes: https://bugs.gentoo.org/849809
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
.../files/libepoxy-1.5.10-use-opengl.pc-without-x.patch | 15 +++++++++++++++
.../{libepoxy-9999.ebuild => libepoxy-1.5.10-r1.ebuild} | 4 +++-
media-libs/libepoxy/libepoxy-9999.ebuild | 2 ++
3 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/media-libs/libepoxy/files/libepoxy-1.5.10-use-opengl.pc-without-x.patch b/media-libs/libepoxy/files/libepoxy-1.5.10-use-opengl.pc-without-x.patch
new file mode 100644
index 000000000000..0ed9c2f17681
--- /dev/null
+++ b/media-libs/libepoxy/files/libepoxy-1.5.10-use-opengl.pc-without-x.patch
@@ -0,0 +1,15 @@
+diff -Naur a/src/meson.build b/src/meson.build
+--- a/src/meson.build 2022-02-17 14:56:12.000000000 +0200
++++ b/src/meson.build 2022-06-17 15:17:20.388423154 +0300
+@@ -98,8 +98,10 @@
+ # not needed when building Epoxy; we do want to add them to the generated
+ # pkg-config file, for consumers of Epoxy
+ gl_reqs = []
+-if gl_dep.found() and gl_dep.type_name() == 'pkgconfig'
++if build_glx and gl_dep.found() and gl_dep.type_name() == 'pkgconfig'
+ gl_reqs += 'gl'
++else
++ gl_reqs += 'opengl'
+ endif
+ if build_egl and egl_dep.found() and egl_dep.type_name() == 'pkgconfig'
+ gl_reqs += 'egl'
diff --git a/media-libs/libepoxy/libepoxy-9999.ebuild b/media-libs/libepoxy/libepoxy-1.5.10-r1.ebuild
similarity index 93%
copy from media-libs/libepoxy/libepoxy-9999.ebuild
copy to media-libs/libepoxy/libepoxy-1.5.10-r1.ebuild
index 9af6e42c5e71..b23a8faa254c 100644
--- a/media-libs/libepoxy/libepoxy-9999.ebuild
+++ b/media-libs/libepoxy/libepoxy-1.5.10-r1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_REQ_USE='xml(+)'
@@ -31,6 +31,8 @@ DEPEND="${RDEPEND}
BDEPEND="${PYTHON_DEPS}
virtual/pkgconfig"
+PATCHES=( "${FILESDIR}"/libepoxy-1.5.10-use-opengl.pc-without-x.patch )
+
multilib_src_configure() {
local emesonargs=(
-Degl=$(usex egl)
diff --git a/media-libs/libepoxy/libepoxy-9999.ebuild b/media-libs/libepoxy/libepoxy-9999.ebuild
index 9af6e42c5e71..f54d1c9ccf97 100644
--- a/media-libs/libepoxy/libepoxy-9999.ebuild
+++ b/media-libs/libepoxy/libepoxy-9999.ebuild
@@ -31,6 +31,8 @@ DEPEND="${RDEPEND}
BDEPEND="${PYTHON_DEPS}
virtual/pkgconfig"
+PATCHES=( "${FILESDIR}"/libepoxy-1.5.10-use-opengl.pc-without-x.patch )
+
multilib_src_configure() {
local emesonargs=(
-Degl=$(usex egl)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libepoxy/files/, media-libs/libepoxy/
@ 2023-07-12 14:57 Matt Turner
0 siblings, 0 replies; 2+ messages in thread
From: Matt Turner @ 2023-07-12 14:57 UTC (permalink / raw
To: gentoo-commits
commit: b1d8ae959172390d0bd3a7646e9596efca080388
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Sun Jul 9 06:15:28 2023 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Jul 12 14:54:29 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1d8ae95
media-libs/libepoxy: Correctly fallback to libOpenGL
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/31808
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
.../files/libepoxy-1.5.10-libopengl-fallback.patch | 42 +++++++++++++++++++
media-libs/libepoxy/libepoxy-1.5.10-r2.ebuild | 48 ++++++++++++++++++++++
2 files changed, 90 insertions(+)
diff --git a/media-libs/libepoxy/files/libepoxy-1.5.10-libopengl-fallback.patch b/media-libs/libepoxy/files/libepoxy-1.5.10-libopengl-fallback.patch
new file mode 100644
index 000000000000..b36512631d03
--- /dev/null
+++ b/media-libs/libepoxy/files/libepoxy-1.5.10-libopengl-fallback.patch
@@ -0,0 +1,42 @@
+From 702a0e6639affa64881b9486bb8c866b9134a5cd Mon Sep 17 00:00:00 2001
+From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
+To: https://github.com/anholt/libepoxy/pull/259
+Date: Fri, 4 Jun 2021 06:35:23 +0200
+Subject: [PATCH] meson.build: Fallback from libGL to libOpenGL when GLX is
+ disabled
+
+---
+ meson.build | 3 +++
+ src/meson.build | 2 +-
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index e0228d1..95b5144 100644
+--- a/meson.build
++++ b/meson.build
+@@ -164,6 +164,9 @@ endif
+ # Dependencies
+ dl_dep = cc.find_library('dl', required: false)
+ gl_dep = dependency('gl', required: false)
++if not gl_dep.found() and not build_glx
++ gl_dep = dependency('opengl', required: false)
++endif
+ egl_dep = dependency('egl', required: false)
+
+ # Optional dependencies for tests
+diff --git a/src/meson.build b/src/meson.build
+index 37e28f0..11c4b54 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -93,7 +93,7 @@ libepoxy_dep = declare_dependency(
+ # pkg-config file, for consumers of Epoxy
+ gl_reqs = []
+ if gl_dep.found() and gl_dep.type_name() == 'pkgconfig'
+- gl_reqs += 'gl'
++ gl_reqs += gl_dep.name()
+ endif
+ if build_egl and egl_dep.found() and egl_dep.type_name() == 'pkgconfig'
+ gl_reqs += 'egl'
+--
+2.35.1
+
diff --git a/media-libs/libepoxy/libepoxy-1.5.10-r2.ebuild b/media-libs/libepoxy/libepoxy-1.5.10-r2.ebuild
new file mode 100644
index 000000000000..2bb7e5c4c156
--- /dev/null
+++ b/media-libs/libepoxy/libepoxy-1.5.10-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_REQ_USE='xml(+)'
+inherit meson-multilib python-any-r1 virtualx
+
+if [[ ${PV} = 9999* ]]; then
+ EGIT_REPO_URI="https://github.com/anholt/${PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/anholt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
+
+DESCRIPTION="Library for handling OpenGL function pointer management"
+HOMEPAGE="https://github.com/anholt/libepoxy"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="+egl test +X"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ egl? ( media-libs/mesa[egl(+),${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )"
+BDEPEND="${PYTHON_DEPS}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/libepoxy-1.5.10-libopengl-fallback.patch )
+
+multilib_src_configure() {
+ local emesonargs=(
+ -Degl=$(usex egl)
+ -Dglx=$(usex X)
+ $(meson_use X x11)
+ $(meson_use test tests)
+ )
+ meson_src_configure
+}
+
+multilib_src_test() {
+ virtx meson_src_test
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-12 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-19 8:34 [gentoo-commits] repo/gentoo:master commit in: media-libs/libepoxy/files/, media-libs/libepoxy/ Joonas Niilola
-- strict thread matches above, loose matches on Subject: below --
2023-07-12 14:57 Matt Turner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox