logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: af292abe8d09af90b0bdcf017fe22dcfed9f00cc
parent b54e73da3eaaa0948f9242376b2c4544781cfa09
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 27 Feb 2022 02:12:01 +0100

x11-libs/fltk: Initial support for wayland

Diffstat:

Ax11-libs/fltk/fltk-1.4.9999.ebuild100+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ax11-libs/fltk/metadata.xml15+++++++++++++++
2 files changed, 115 insertions(+), 0 deletions(-)

diff --git a/x11-libs/fltk/fltk-1.4.9999.ebuild b/x11-libs/fltk/fltk-1.4.9999.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib flag-o-matic git-r3 xdg-utils + +DESCRIPTION="C++ user interface toolkit for X and OpenGL" +HOMEPAGE="https://www.fltk.org/" +EGIT_REPO_URI="https://github.com/fltk/fltk" + +SLOT="1" +LICENSE="FLTK LGPL-2" +KEYWORDS="" +IUSE="cairo debug doc examples games +opengl static-libs +threads +wayland +X +xft +xinerama" + +REQUIRED_USE="xinerama? ( X ) xft? ( X )" + +RDEPEND=" + >=media-libs/libpng-1.2:0=[${MULTILIB_USEDEP}] + sys-libs/zlib[${MULTILIB_USEDEP}] + virtual/jpeg:0=[${MULTILIB_USEDEP}] + cairo? ( x11-libs/cairo[${MULTILIB_USEDEP},X] ) + games? ( !sys-block/blocks ) + opengl? ( + virtual/glu[${MULTILIB_USEDEP}] + virtual/opengl[${MULTILIB_USEDEP}] + ) + X? ( + x11-libs/libICE[${MULTILIB_USEDEP}] + x11-libs/libSM[${MULTILIB_USEDEP}] + x11-libs/libXcursor[${MULTILIB_USEDEP}] + x11-libs/libXext[${MULTILIB_USEDEP}] + x11-libs/libXfixes[${MULTILIB_USEDEP}] + x11-libs/libXt[${MULTILIB_USEDEP}] + ) + xft? ( x11-libs/libXft[${MULTILIB_USEDEP}] ) + xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + X? ( x11-base/xorg-proto ) + doc? ( app-doc/doxygen ) +" +DOCS=( + ANNOUNCEMENT + CHANGES.txt + CHANGES_1.0.txt + CHANGES_1.1.txt + CHANGES_1.3.txt + CREDITS.txt + README.Android.md + README.CMake.txt + README.Cairo.txt + README.IDE.txt + README.Pico.txt + README.Unix.txt + README.Windows.txt + README.abi-version.txt + README.bundled-libs.txt + README.macOS.md + README.md + README.txt +) + +pkg_setup() { + unset FLTK_LIBDIRS +} + +src_prepare() { + rm -rf zlib jpeg png || die + + cmake_src_prepare + multilib_src_prepare +} + +multilib_src_configure() { + local mycmakeargs=( + -DOPTION_BUILD_SHARED_LIBS=ON + -DOPTION_CAIRO=ON + -DOPTION_CAIROEXT=ON + -DOPTION_USE_SYSTEM_ZLIB=ON + -DOPTION_USE_SYSTEM_LIBJPEG=ON + -DOPTION_USE_SYSTEM_LIBPNG=ON + -DOPTION_USE_WAYLAND=$(usex wayland) + ) + + cmake_src_configure +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} diff --git a/x11-libs/fltk/metadata.xml b/x11-libs/fltk/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> +<longdescription> + The Fast Light ToolKit is a cross-platform C++ user interface + toolkit for X and OpenGL. FLTK (pronounced "fulltick") provides GUI + functionality and supports 3D graphics via OpenGL and its built-in + GLUT emulation. FLTK also includes a UI builder called FLUID that + can be used to create applications. +</longdescription> +<use> + <flag name="games">Builds and installs some extra games</flag> +</use> +</pkgmetadata>