summaryrefslogtreecommitdiff
path: root/media-libs/libepoxy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-12 16:32:46 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-12 16:32:46 +0100
commitd0e460d711ba47fcff5bf5cd57355d0853795dc5 (patch)
tree2e53c3c67e31304c8a141a8cfa9f157d1b139947 /media-libs/libepoxy
parenteb3ae345f026de053870dfa589779989d300ebef (diff)
gentoo auto-resync : 12:07:2023 - 16:32:45
Diffstat (limited to 'media-libs/libepoxy')
-rw-r--r--media-libs/libepoxy/Manifest2
-rw-r--r--media-libs/libepoxy/files/libepoxy-1.5.10-libopengl-fallback.patch42
-rw-r--r--media-libs/libepoxy/libepoxy-1.5.10-r2.ebuild48
3 files changed, 92 insertions, 0 deletions
diff --git a/media-libs/libepoxy/Manifest b/media-libs/libepoxy/Manifest
index 7587a077a14c..5ca30a9e1c1b 100644
--- a/media-libs/libepoxy/Manifest
+++ b/media-libs/libepoxy/Manifest
@@ -1,5 +1,7 @@
+AUX libepoxy-1.5.10-libopengl-fallback.patch 1270 BLAKE2B bd3c68b2cb3392c5ebb552877f14a354e5b3dbd7d16ceaf7865a2f52a918b0ad04de006123d8244c77a3a6e1c37d2453e4eda93d866305285e1f21646c8bc622 SHA512 97118315c590391e71302bbf14db45f53ca21f0ca69f1557d3484ad484d002c12b5d86a3b28250fd0030d9d5aed7b362c4f27a2bc7fe3857733540f0e2259f1b
AUX libepoxy-1.5.10-use-opengl.pc-without-x.patch 590 BLAKE2B cef810cccd2133045a60bb5d6e812f048402f1ad65b3befaca34b14950df60b5b7fa732de09eec1a998782ecf846d6863432713b62a29ee6b6ed25b1c2e1cd77 SHA512 567e3f838e62fb607e3cb4f15a5694ffe2407f575acfc1198b15f042fdaef333a05cd3dda28204fad8224967da13c62d87d2ea073c38f1f239d9e0ac7d520dd7
DIST libepoxy-1.5.10.tar.gz 332078 BLAKE2B d56b45a8fc38901fdb23c50b569a667fce8ca289103a8d7ca19f96a76c75d3c2ff9d6959ed2ed47bd64806add95dafe42dc85dfc5bc60af14b5500b70070e008 SHA512 6786f31c6e2865e68a90eb912900a86bf56fd3df4d78a477356886ac3b6ef52ac887b9c7a77aa027525f868ae9e88b12e5927ba56069c2e115acd631fca3abee
EBUILD libepoxy-1.5.10-r1.ebuild 1136 BLAKE2B 7dea67af1bbea5c7d105b60fcba02b61492cef00fe8f66ea425e98bb9a2f9073b58b88ed064b969c87ff5b967d13bad649447ff8cb6f887cb9745efe02b801a3 SHA512 fcf7822df9032082edc231fe71e83564e845d34613d210f2c4cf8cefd97900e962341db508ba252f0f73ce255c41d57ab88a3807ed25ca8ba6dbb1c0a0f3e747
+EBUILD libepoxy-1.5.10-r2.ebuild 1139 BLAKE2B 094066ebd47e1600b652b90d0d167e780131470e91588c770089032a5aa1331d19ac558dca2543f5ad3e9e1027d42507567e86a4db156949c7fd20a0c1fbe94a SHA512 135ec5a2afdaed8bc2953c71b2505d114a3583520c854f901da7c3524ba04f23d37556570de48a249b80e915d57854ba2af63c0df4e7c4e75604506f7c9303e7
EBUILD libepoxy-9999.ebuild 1144 BLAKE2B 785308b6f4d4f5287e4002e5f4799b7038f3afbbe26c6cb7d0a02e97ee6adeb9c13f325b40b716a407aac3508cb9f54d27b182d44a22a53ee3d6861384629888 SHA512 01112bdfd285f7a4f22df1414455bfb5d278f678ca1da9dc31488a99d3fa6dcdf9a050dd0f8f1c2bc221b826c6d1ecdd4bb9b6b1d8f6d3ff4340730ce201d5f9
MISC metadata.xml 376 BLAKE2B 980a035e0ac8a5a3126ee27c032e8f14353ca5e7f2920769b74a23aa827a1110ff8f55a49a1f3072889ea1fed9f76f39bb3c2fddc6f6e2e736773c961ea4be3b SHA512 d1b9e9349929118e39201157b34e7955b32301ceaea877025fdf929d1039af536618eec5a9b0c638622c390201cd4d3106d981f884cf0c1c6469534fa65797af
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
+}