logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: a96eb32a1f1d135352c253eef38f06a216e97a08
parent 599f0479e0b23951d7a590d0620a994ecd637ea4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 29 May 2022 05:21:25 +0200

media-libs/glfw: initial import

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>

Diffstat:

Amedia-libs/glfw/Manifest1+
Amedia-libs/glfw/glfw-2.7.9.ebuild54++++++++++++++++++++++++++++++++++++++++++++++++++++++
Amedia-libs/glfw/metadata.xml8++++++++
3 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/media-libs/glfw/Manifest b/media-libs/glfw/Manifest @@ -0,0 +1 @@ +DIST glfw-2.7.9.tar.gz 504669 BLAKE2B bd1aaf1b1868dd1b282955d62359a0ac0dc28f3d3bfd52a848c8e5a186f34516a4761a9f443146aac25e332dbafe38ae4b88549c4d91e50be438371e4cbd07dd SHA512 ccbe2f8c90359b83e8ee94a7ba8df293f5366accad8689cf9dba630c61bded18db0d18c020d72c67e422b4c0a3bd3b8311d6ebe65ba28c1e6739fa4ed2b53ab9 diff --git a/media-libs/glfw/glfw-2.7.9.ebuild b/media-libs/glfw/glfw-2.7.9.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs multilib-minimal + +DESCRIPTION="The Portable OpenGL FrameWork" +HOMEPAGE="https://www.glfw.org/" +SRC_URI="https://github.com/glfw/glfw-legacy/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/glfw-legacy-${PV}" + +LICENSE="ZLIB" +SLOT="2" +KEYWORDS="~x86 ~amd64 ~arm ~arm64 ~hppa ~ppc64" +IUSE="" + +RDEPEND=" + x11-libs/libxkbcommon[${MULTILIB_USEDEP}] + virtual/opengl[${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] + x11-libs/libXcursor[${MULTILIB_USEDEP}] + x11-libs/libXinerama[${MULTILIB_USEDEP}] + x11-libs/libXrandr[${MULTILIB_USEDEP}] + x11-libs/libXxf86vm[${MULTILIB_USEDEP}] +" +DEPEND=" + ${RDEPEND} + x11-libs/libXi[${MULTILIB_USEDEP}] +" + +src_prepare() { + sed -i 's;$(PREFIX)/;$(DESTDIR)$(PREFIX)/;' lib/x11/Makefile.x11.in || die + + default + + multilib_copy_sources +} + +multilib_src_configure() { + sed -i 's;$(PREFIX)/lib;$(PREFIX)/'"$(get_libdir);" lib/x11/Makefile.x11.in || die + + sh "${S}/compile.sh" || die +} + +multilib_src_compile() { + export PREFIX="/usr" + + emake x11 AR="$(tc-getAR)" +} + +multilib_src_install() { + emake -j1 DESTDIR="${ED}" x11-install x11-dist-install +} diff --git a/media-libs/glfw/metadata.xml b/media-libs/glfw/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="github">glfw/glfw-legacy</remote-id> + <changelog>https://www.glfw.org/changelog.html</changelog> + </upstream> +</pkgmetadata>