diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-05 00:00:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-05 00:00:45 +0100 |
commit | b594445f39d99066071d80fc8efeba5c8f72cc35 (patch) | |
tree | 9bf469821b12ac103807e30a6f7751d955648125 /media-libs/glfw/glfw-3.4.ebuild | |
parent | 7f3fecbb5b871825fe9632f46659869cab6a3769 (diff) |
gentoo auto-resync : 05:05:2024 - 00:00:45
Diffstat (limited to 'media-libs/glfw/glfw-3.4.ebuild')
-rw-r--r-- | media-libs/glfw/glfw-3.4.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/media-libs/glfw/glfw-3.4.ebuild b/media-libs/glfw/glfw-3.4.ebuild new file mode 100644 index 000000000000..908b4b8f468b --- /dev/null +++ b/media-libs/glfw/glfw-3.4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="Portable OpenGL FrameWork" +HOMEPAGE="https://www.glfw.org/" +SRC_URI="https://github.com/glfw/glfw/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~riscv ~x86" +IUSE="wayland X" + +# Most are dlopen'd so use strings or check the source: +# grep -Eiro '[a-z0-9-]+\.so\.[0-9]+' +DEPEND=" + wayland? ( + dev-libs/wayland[${MULTILIB_USEDEP}] + dev-libs/wayland-protocols + ) + X? ( + x11-base/xorg-proto + x11-libs/libX11[${MULTILIB_USEDEP}] + x11-libs/libXcursor[${MULTILIB_USEDEP}] + x11-libs/libXi[${MULTILIB_USEDEP}] + x11-libs/libXinerama[${MULTILIB_USEDEP}] + x11-libs/libxkbcommon[${MULTILIB_USEDEP}] + x11-libs/libXrandr[${MULTILIB_USEDEP}] + ) +" +RDEPEND=" + ${DEPEND} + media-libs/libglvnd[X?,${MULTILIB_USEDEP}] + wayland? ( + gui-libs/libdecor[${MULTILIB_USEDEP}] + ) + X? ( + x11-libs/libXrender[${MULTILIB_USEDEP}] + x11-libs/libXxf86vm[${MULTILIB_USEDEP}] + ) +" +BDEPEND=" + wayland? ( + dev-util/wayland-scanner + kde-frameworks/extra-cmake-modules + ) +" + +src_configure() { + local mycmakeargs=( + -DGLFW_BUILD_EXAMPLES=no + -DGLFW_BUILD_WAYLAND=$(usex wayland) + -DGLFW_BUILD_X11=$(usex X) + ) + + cmake-multilib_src_configure +} |