logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 0758dc90df2460a32d735eb6194d134de34fb438
parent 373e5f873af188feefa92dad5a5a213385b51354
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 25 Nov 2024 00:01:36 +0100

media-libs/freeglut: treeclean

Diffstat:

Dmedia-libs/freeglut/Manifest1-
Dmedia-libs/freeglut/files/freeglut-3.2.1-opengl-cmake.patch15---------------
Dmedia-libs/freeglut/freeglut-3.4.0.ebuild56--------------------------------------------------------
Dmedia-libs/freeglut/metadata.xml18------------------
4 files changed, 0 insertions(+), 90 deletions(-)

diff --git a/media-libs/freeglut/Manifest b/media-libs/freeglut/Manifest @@ -1 +0,0 @@ -DIST freeglut-3.4.0.tar.gz 413389 BLAKE2B 47b073c4e81473417358452ede3891b6fc36e324f66eec42fcbbadebb2144680e3b52caded504135239e170fd8f30a1fe8b6666a746b06d48cd7226c98a8114e SHA512 4bb6d6c086bac7a9c0ec78062dce58987555785abe6375f462ee249f65210a964a28fb10ba7ee8a42d7fafb00eb8d196eb403d65d255f02f88467369c187228b diff --git a/media-libs/freeglut/files/freeglut-3.2.1-opengl-cmake.patch b/media-libs/freeglut/files/freeglut-3.2.1-opengl-cmake.patch @@ -1,15 +0,0 @@ -diff --git a/CMakeLists.txt.old b/CMakeLists.txt -index 771a52b..50c5cb9 100644 ---- a/CMakeLists.txt.old -+++ b/CMakeLists.txt -@@ -259,8 +259,8 @@ IF(FREEGLUT_GLES) - find_library(OPENGL_glu_LIBRARY NAME GLU HINTS ${X11_LIB_PATH}) - endif() - -- FIND_PACKAGE(OpenGL REQUIRED) -- LIST(APPEND LIBS ${OPENGL_gl_LIBRARY}) -+ FIND_PACKAGE(OpenGL COMPONENTS OpenGL REQUIRED) -+ LIST(APPEND LIBS ${OPENGL_opengl_LIBRARY}) - INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR}) - ENDIF() - diff --git a/media-libs/freeglut/freeglut-3.4.0.ebuild b/media-libs/freeglut/freeglut-3.4.0.ebuild @@ -1,56 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CMAKE_ECLASS=cmake -inherit cmake-multilib - -DESCRIPTION="A free OpenGL utility toolkit, the open-sourced alternative to the GLUT library" -HOMEPAGE="http://freeglut.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="debug static-libs wayland-only gles2-only" - -RDEPEND=" - !wayland-only? ( - >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] - >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}] - >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] - >=x11-libs/libXxf86vm-1.1.3[${MULTILIB_USEDEP}] - ) - wayland-only? ( - media-libs/mesa[egl(+),${MULTILIB_USEDEP}] - dev-libs/wayland[${MULTILIB_USEDEP}] - x11-libs/libxkbcommon[${MULTILIB_USEDEP}] - ) - !gles2-only? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) - gles2-only? ( media-libs/mesa[gles1,gles2,${MULTILIB_USEDEP}] ) -" -DEPEND="${RDEPEND} - !wayland-only? ( x11-base/xorg-proto )" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${PN}-3.2.1-opengl-cmake.patch -) - -src_configure() { - local mycmakeargs=( - "-DFREEGLUT_BUILD_DEMOS=OFF" - "-DFREEGLUT_BUILD_STATIC_LIBS=$(usex static-libs ON OFF)" - "-DFREEGLUT_WAYLAND=$(usex wayland-only ON OFF)" - "-DFREEGLUT_GLES=$(usex gles2-only ON OFF)" - ) - cmake-multilib_src_configure -} - -multilib_src_install() { - cmake_src_install - cp "${ED}"/usr/$(get_libdir)/pkgconfig/{,free}glut.pc || die -} diff --git a/media-libs/freeglut/metadata.xml b/media-libs/freeglut/metadata.xml @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>contact@hacktivis.me</email> - </maintainer> - <longdescription> - Freeglut provides an open-source alternative to the OpenGL Utility Toolkit - (GLUT) library. It is actively developed and maintained, while not being - restricted by its license. -</longdescription> - <upstream> - <remote-id type="sourceforge">freeglut</remote-id> - </upstream> - <use> - <flag name="wayland-only">Build wayland version instead of X11 version</flag> - </use> -</pkgmetadata>