diff --git a/media-libs/glfw/Manifest b/media-libs/glfw/Manifest new file mode 100644 index 0000000..6a3c831 --- /dev/null +++ b/media-libs/glfw/Manifest @@ -0,0 +1 @@ +DIST glfw-3.4.tar.gz 936948 BLAKE2B f8f93e15d96ffc3f5c49bef7336ac49ae5ed3d1d12f405d152e1d37cda0d2091f025812c99d617210690d2b1fbf3fda6b6d50d3569b81fcd54944a63afd258ab SHA512 39ad7a4521267fbebc35d2ff0c389a56236ead5fa4bdff33db113bd302f70f5f2869ff4e6db1979512e1542813292dff5a482e94dfce231750f0746c301ae9ed diff --git a/media-libs/glfw/glfw-3.4.ebuild b/media-libs/glfw/glfw-3.4.ebuild new file mode 100644 index 0000000..19a4aee --- /dev/null +++ b/media-libs/glfw/glfw-3.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +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" + +RDEPEND=" + media-libs/libglvnd + wayland? ( dev-libs/wayland ) +" +DEPEND=" + ${RDEPEND} + wayland? ( + dev-libs/wayland-protocols + x11-libs/libxkbcommon + ) +" +BDEPEND=" + wayland? ( + dev-util/wayland-scanner + kde-frameworks/extra-cmake-modules + ) +" + +src_configure() { + local mycmakeargs=( + -D GLFW_BUILD_X11=no + -D GLFW_BUILD_WAYLAND=$(usex wayland) + ) + cmake_src_configure +} diff --git a/media-libs/glfw/metadata.xml b/media-libs/glfw/metadata.xml new file mode 100644 index 0000000..7c53e42 --- /dev/null +++ b/media-libs/glfw/metadata.xml @@ -0,0 +1,15 @@ + + + + + me@puqns67.icu + Puqns67 + + + glfw/glfw + https://www.glfw.org/changelog.html + + + Enable wayland support + +