diff options
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 +} |