From aa97efa597ac50012a93b31deeffff1be31c866c Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Tue, 22 Sep 2026 15:21:58 +0100 Subject: media-libs/vgmstream: new package, add 9999 --- media-libs/vgmstream/vgmstream-9999.ebuild | 77 ++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 media-libs/vgmstream/vgmstream-9999.ebuild (limited to 'media-libs/vgmstream/vgmstream-9999.ebuild') diff --git a/media-libs/vgmstream/vgmstream-9999.ebuild b/media-libs/vgmstream/vgmstream-9999.ebuild new file mode 100644 index 0000000..d939142 --- /dev/null +++ b/media-libs/vgmstream/vgmstream-9999.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Library for playback of various streamed audio formats used in video games" +HOMEPAGE="https://vgmstream.org/" + +if [[ "${PV}" == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vgmstream/vgmstream.git" +else + SRC_URI="https://github.com/vgmstream/vgmstream/archive/refs/tags/r${PV}.tar.gz -> vgmstream-r${PV}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN}-r${PV}" +fi +SRC_URI+=" + celt? ( + https://downloads.xiph.org/releases/celt/celt-0.6.1.tar.gz + https://downloads.xiph.org/releases/celt/celt-0.11.0.tar.gz + ) +" + +LICENSE="MIT" + +SLOT="0" +IUSE=" + +mp3 +vorbis +speex +ffmpeg + celt + +cli +player audacious +" + +RDEPEND=" + mp3? ( media-sound/mpg123-base ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + ) + speex? ( media-libs/speex ) + player? ( media-libs/libao ) + audacious? ( media-sound/audacious ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-vcs/git + virtual/pkgconfig +" + +src_unpack() { + if [[ ${PV} == 9999 ]]; then + git-r3_src_unpack + fi + default +} + +src_configure() { + local mycmakeargs=( + -DBUILD_AUDACIOUS=$(usex audacious) + -DBUILD_CLI=$(usex player) + -DBUILD_V123=$(usex player) + -DUSE_MPEG=$(usex mp3) + -DUSE_VORBIS=$(usex vorbis) + -DUSE_FFMPEG=$(usex ffmpeg) + -DUSE_G7221=NO + -DUSE_G719=NO + -DUSE_G7221=NO + -DUSE_ATRAC9=NO + -DUSE_CELT=$(usex celt) + -DCELT_0061_PATH="${WORKDIR}/celt-0.6.1" + -DCELT_0110_PATH="${WORKDIR}/celt-0.11.0" + -DUSE_SPEEX=$(usex speex) + -DBUILD_SHARED_LIBS=ON + ) + cmake_src_configure +} -- cgit v1.2.3