mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
media-gfx/bonzomatic: New Package
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
1
media-gfx/bonzomatic/Manifest
Normal file
1
media-gfx/bonzomatic/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST bonzomatic-2021.03.07.tar.gz 2721345 BLAKE2B ef943aea11bbeab18b21a95a589caceb2694512a17bbf7ec83019243b30ce2aa1c91a1eff688bfc277885bbf6c1dccad4d1e4ad866800c9020edd83093e3a7d8 SHA512 d462fc7c44a62a00dfe4af7fa2a16718b767317a9d3de5bf4599fc83f19a665575d041c88c0de90c036a0497ec8576700189bc813a057a97883d509f3b3fd4b6
|
||||
46
media-gfx/bonzomatic/bonzomatic-2021.03.07.ebuild
Normal file
46
media-gfx/bonzomatic/bonzomatic-2021.03.07.ebuild
Normal file
@@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Live shader coding tool and Shader Showdown workhorse"
|
||||
HOMEPAGE="https://github.com/Gargaj/Bonzomatic"
|
||||
if [[ "${PV}" == "9999" ]]
|
||||
then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/Gargaj/Bonzomatic"
|
||||
else
|
||||
MY_PV="$(ver_rs 1- -)"
|
||||
SRC_URI="https://github.com/Gargaj/Bonzomatic/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/Bonzomatic-${MY_PV}"
|
||||
fi
|
||||
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="system-glfw system-glew system-stb system-kissfft"
|
||||
|
||||
# TODO: system-miniaudio, system-jsonxx/json++, system-scintilla
|
||||
DEPEND="
|
||||
system-glfw? ( media-libs/glfw )
|
||||
system-glew? ( media-libs/glew:= )
|
||||
system-stb? ( dev-libs/stb )
|
||||
system-kissfft? ( sci-libs/kissfft )
|
||||
virtual/opengl
|
||||
media-libs/alsa-lib
|
||||
media-libs/fontconfig
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local ecmakeargs=(
|
||||
-DBONZOMATIC_USE_SYSTEM_GLFW=$(usex system-glfw)
|
||||
-DBONZOMATIC_USE_SYSTEM_GLEW=$(usex system-glew)
|
||||
-DBONZOMATIC_USE_SYSTEM_STB=$(usex system-stb)
|
||||
-DBONZOMATIC_USE_SYSTEM_KISSFFT=$(usex system-kissfft)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
46
media-gfx/bonzomatic/bonzomatic-9999.ebuild
Normal file
46
media-gfx/bonzomatic/bonzomatic-9999.ebuild
Normal file
@@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Live shader coding tool and Shader Showdown workhorse"
|
||||
HOMEPAGE="https://github.com/Gargaj/Bonzomatic"
|
||||
if [[ "${PV}" == "9999" ]]
|
||||
then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/Gargaj/Bonzomatic"
|
||||
else
|
||||
MY_PV="$(ver_rs 1- -)"
|
||||
SRC_URI="https://github.com/Gargaj/Bonzomatic/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/Bonzomatic-${MY_PV}"
|
||||
fi
|
||||
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="system-glfw system-glew system-stb system-kissfft"
|
||||
|
||||
# TODO: system-miniaudio, system-jsonxx/json++, system-scintilla
|
||||
DEPEND="
|
||||
system-glfw? ( media-libs/glfw )
|
||||
system-glew? ( media-libs/glew:= )
|
||||
system-stb? ( dev-libs/stb )
|
||||
system-kissfft? ( sci-libs/kissfft )
|
||||
virtual/opengl
|
||||
media-libs/alsa-lib
|
||||
media-libs/fontconfig
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local ecmakeargs=(
|
||||
-DBONZOMATIC_USE_SYSTEM_GLFW=$(usex system-glfw)
|
||||
-DBONZOMATIC_USE_SYSTEM_GLEW=$(usex system-glew)
|
||||
-DBONZOMATIC_USE_SYSTEM_STB=$(usex system-stb)
|
||||
-DBONZOMATIC_USE_SYSTEM_KISSFFT=$(usex system-kissfft)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
10
media-gfx/bonzomatic/metadata.xml
Normal file
10
media-gfx/bonzomatic/metadata.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<use>
|
||||
<flag name="system-glfw">Use the systems installed version of GLFW (upstream-unsupported)</flag>
|
||||
<flag name="system-glew">Use the systems installed version of GLEW (upstream-unsupported)</flag>
|
||||
<flag name="system-stb">Use the systems installed version of STB (upstream-unsupported)</flag>
|
||||
<flag name="system-kissfft">Use the systems installed version of Kissfft (upstream-unsupported)</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user