diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-14 11:10:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-14 11:10:11 +0100 |
commit | 81b8f20732954c4508baf2f77472b5435e3f851f (patch) | |
tree | 4180177cb7ba85eab50159ce96218c2419fb24a6 /media-libs/alure/alure-1.2-r3.ebuild | |
parent | 946859e0e36904cffb3e0ccbccb6b7b1347c1cc8 (diff) |
gentoo auto-resync : 14:09:2022 - 11:10:10
Diffstat (limited to 'media-libs/alure/alure-1.2-r3.ebuild')
-rw-r--r-- | media-libs/alure/alure-1.2-r3.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/media-libs/alure/alure-1.2-r3.ebuild b/media-libs/alure/alure-1.2-r3.ebuild new file mode 100644 index 000000000000..ee620b3c4b69 --- /dev/null +++ b/media-libs/alure/alure-1.2-r3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="The OpenAL Utility Toolkit" +HOMEPAGE="https://kcat.strangesoft.net/alure.html" +SRC_URI="https://kcat.strangesoft.net/alure-releases/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="dumb examples flac fluidsynth mp3 sndfile static-libs vorbis" + +RDEPEND=" + >=media-libs/openal-1.1 + dumb? ( media-libs/dumb:= ) + flac? ( media-libs/flac:= ) + fluidsynth? ( >=media-sound/fluidsynth-1.1.1:= ) + mp3? ( media-sound/mpg123 ) + sndfile? ( media-libs/libsndfile ) + vorbis? ( media-libs/libvorbis )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-include-unistd.patch + "${FILESDIR}"/${P}-new-dumb.patch +) + +src_prepare() { + cmake_src_prepare + + sed -i -e "/DESTINATION/s:doc/alure:doc/${PF}:" CMakeLists.txt || die +} + +src_configure() { + # FIXME: libmodplug/sndfile.h from libmodplug conflict with sndfile.h from libsndfile + local mycmakeargs=( + -DMODPLUG=OFF + -DDUMB=$(usex dumb) + -DBUILD_EXAMPLES=$(usex examples) + -DFLAC=$(usex flac) + -DFLUIDSYNTH=$(usex fluidsynth) + -DMPG123=$(usex mp3) + -DSNDFILE=$(usex sndfile) + -DBUILD_STATIC=$(usex static-libs) + -DVORBIS=$(usex vorbis) + ) + + cmake_src_configure +} |