Update media-sound/furnace

This commit is contained in:
~keith 2023-06-17 02:15:38 +00:00
parent 334727466b
commit 55d01e0bbc
Signed by: keith
GPG key ID: 5BEBEEAB2C73D520
2 changed files with 68 additions and 1 deletions

View file

@ -5,5 +5,5 @@ Gentoo ebuilds for various pieces of software. **Use at your own risk.**
## How to use
Install `app-eselect/eselect-repository`, then run the following as root:
```sh
eselect repository add pipless git https://bytes.keithhacks.cyou/keith/pipless.git
eselect repository add keith-ebuilds git https://bytes.keithhacks.cyou/keith/ebuilds.git
```

View file

@ -0,0 +1,67 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake git-r3
DESCRIPTION="A multi-system chiptune tracker compatible with DefleMask modules"
HOMEPAGE="https://github.com/tildearrow/furnace"
EGIT_REPO_URI="https://github.com/tildearrow/furnace.git"
EGIT_COMMIT="v0.6pre5"
EGIT_SUBMODULES=( '*' '-extern/SDL' '-extern/fmt' '-extern/libsndfile' )
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
midi? ( media-libs/rtmidi )
>=media-libs/libsdl2-2.0.18
>=sci-libs/fftw-3.3
>=dev-libs/libfmt-7.1.0
media-libs/libsndfile
sys-libs/zlib
media-libs/alsa-lib
pulseaudio? ( media-libs/libpulse )
x11-libs/libX11
virtual/opengl
jack? ( virtual/jack )
"
RDEPEND="${DEPEND}"
BDEPEND=""
IUSE="jack midi pulseaudio +demos +instruments"
src_configure() {
local mycmakeargs=(
-DSYSTEM_FFTW=ON
-DSYSTEM_FMT=ON
-DSYSTEM_LIBSNDFILE=ON
-DSYSTEM_RTMIDI=ON
-DSYSTEM_ZLIB=ON
-DSYSTEM_SDL2=ON
)
BUILD_DIR="${WORKDIR}/build"
if use midi; then
mycmakeargs+=( -DUSE_RTMIDI=ON )
else
mycmakeargs+=( -DUSE_RTMIDI=OFF )
fi
if use jack; then
mycmakeargs+=( -DWITH_JACK=ON )
else
mycmakeargs+=( -DWITH_JACK=OFF )
fi
if use demos; then
mycmakeargs+=( -DWITH_DEMOS=ON )
else
mycmakeargs+=( -DWITH_DEMOS=OFF )
fi
if use instruments; then
mycmakeargs+=( -DWITH_INSTRUMENTS=ON )
else
mycmakeargs+=( -DWITH_INSTRUMENTS=OFF )
fi
cmake_src_configure
}