diff options
Diffstat (limited to 'media-libs/openal')
-rw-r--r-- | media-libs/openal/Manifest | 2 | ||||
-rw-r--r-- | media-libs/openal/openal-1.23.0.ebuild | 87 |
2 files changed, 89 insertions, 0 deletions
diff --git a/media-libs/openal/Manifest b/media-libs/openal/Manifest index 84b027a7f0c4..c6a09cb49bc5 100644 --- a/media-libs/openal/Manifest +++ b/media-libs/openal/Manifest @@ -1,3 +1,5 @@ DIST openal-soft-1.22.2.tar.bz2 606151 BLAKE2B 78cb5ad38635908a59850aeb511223fd6a28f7699294836cbbfdd09cbfd9016250d68b26115131a7cb4af5d5d0a4d2cbd52813d813f78a045b797c5fb601bc7a SHA512 2271968955d55746caf514b6d4304d09d5e552d5640552e2503186ef36bc872a836804ebf79ffbda663931bd13d4e2ce53e0c46cc4faf4134bdb3c08983a5e47 +DIST openal-soft-1.23.0.tar.bz2 692978 BLAKE2B 2f661da32e96bc5a3cdedc850f7ddf23c25475df4fa932b079f668101ea19ef3d33b0dac405231ef790d1cf6e979107c3c3fcd8364c503f19691231af970757a SHA512 5c10ccd3cf0c05b9331f9b0da8913a9ffd0f9fc4464192b4b6a12ee1ddaab123ae5a719ead837f7701b129d7faecec1aaf91aabc4c58ee10932c9d716d128071 EBUILD openal-1.22.2-r1.ebuild 2886 BLAKE2B 8bc5a8d16a33fc76f694dd5f9d50c1836c9c51d6f6b96f6405d4ff4918f634a6652c0a865e3e07299e378a032e6352c1585d1c32c36a10828b6b0a601f1894cd SHA512 cbd70a84cb30627827180ee7fd639419208a4ad72ebd4d3698c1ab60dfcfc916a4bd29e40b19e05af08aa8edfcdf106e4462c998bdb6ffc5d0feba7a383752d7 +EBUILD openal-1.23.0.ebuild 2884 BLAKE2B 027eac76962852b81e8e16682d385857db88441b325db1df46437d0079577b59879886d74561f9e9f17e1fd7b99ea6eff7a449c15db229ab164549cd12f3fb3a SHA512 44300c50503061e4edbe3633fbcf31ab689f32faa30ac2496220152f9cb04239579dc167745d2ccdc0ade078d9c5434f75a5324615181c00b13bb41c4a0dc222 MISC metadata.xml 538 BLAKE2B 4b9dc398e2edd4930ade6cffbe1e39776bc3a0a1aa5ea2fa4753d8756517f7d2efc3e22ce31eef1f79dee9dc1d1f5c4ca945f1d5b54a7ffac081173f8bb6ffc1 SHA512 9e817af11955ef748ea11979a1da99c046ca4f45f812f1555f9dcd0606ca16e8d027de9588d792170faf81a42a091cc8d5edffff1d12d99128f08f688f685462 diff --git a/media-libs/openal/openal-1.23.0.ebuild b/media-libs/openal/openal-1.23.0.ebuild new file mode 100644 index 000000000000..587f7b664b0f --- /dev/null +++ b/media-libs/openal/openal-1.23.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# False positives because of REQUIRE vs BACKEND options() (conditionally set) +# See bug #809314 +CMAKE_WARN_UNUSED_CLI=no +inherit cmake-multilib + +MY_P="${PN}-soft-${PV}" + +DESCRIPTION="A software implementation of the OpenAL 3D audio API" +HOMEPAGE="https://www.openal-soft.org/" +SRC_URI="https://www.openal-soft.org/openal-releases/${MY_P}.tar.bz2" +S="${WORKDIR}"/${MY_P} + +# See https://github.com/kcat/openal-soft/blob/e0097c18b82d5da37248c4823fde48b6e0002cdd/BSD-3Clause +# Some components are under BSD +LICENSE="LGPL-2+ BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE=" + alsa coreaudio debug jack oss pipewire portaudio pulseaudio sdl sndio qt5 + cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 + cpu_flags_arm_neon +" + +# PipeWire: +# - See bug #863200 for PipeWire minimum version +# - PW is in DEPEND although not linked against because we need configure to +# find it anyway, but no :=. +RDEPEND=" + alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) + jack? ( virtual/jack[${MULTILIB_USEDEP}] ) + pipewire? ( media-video/pipewire[${MULTILIB_USEDEP}] ) + portaudio? ( media-libs/portaudio[${MULTILIB_USEDEP}] ) + pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + sdl? ( media-libs/libsdl2[${MULTILIB_USEDEP}] ) + sndio? ( media-sound/sndio:=[${MULTILIB_USEDEP}] ) +" +DEPEND=" + ${RDEPEND} + oss? ( virtual/os-headers ) +" + +DOCS=( alsoftrc.sample docs/env-vars.txt docs/hrtf.txt ChangeLog README.md ) + +multilib_src_configure() { + local mycmakeargs=( + # See bug #809314 for getting both options for backends + -DALSOFT_{BACKEND,REQUIRE}_ALSA=$(usex alsa) + -DALSOFT_{BACKEND,REQUIRE}_COREAUDIO=$(usex coreaudio) + -DALSOFT_{BACKEND,REQUIRE}_JACK=$(usex jack) + -DALSOFT_{BACKEND,REQUIRE}_OSS=$(usex oss) + -DALSOFT_{BACKEND,REQUIRE}_PIPEWIRE=$(usex pipewire) + -DALSOFT_{BACKEND,REQUIRE}_PORTAUDIO=$(usex portaudio) + -DALSOFT_{BACKEND,REQUIRE}_PULSEAUDIO=$(usex pulseaudio) + -DALSOFT_{BACKEND,REQUIRE}_SDL2=$(usex sdl) + -DALSOFT_{BACKEND,REQUIRE}_SNDIO=$(usex sndio) + + -DALSOFT_UTILS=$(multilib_is_native_abi && echo "ON" || echo "OFF") + -DALSOFT_NO_CONFIG_UTIL=$(usex qt5 "$(multilib_is_native_abi && echo "OFF" || echo "ON")" ON) + # EXAMPLES=OFF to avoid FFmpeg dependency, bug #481670 + -DALSOFT_EXAMPLES=OFF + ) + + # Avoid unused variable warnings, bug #738240 + if use amd64 || use x86 ; then + mycmakeargs+=( + -DALSOFT_CPUEXT_SSE=$(usex cpu_flags_x86_sse) + -DALSOFT_CPUEXT_SSE2=$(usex cpu_flags_x86_sse2) + -DALSOFT_CPUEXT_SSE4_1=$(usex cpu_flags_x86_sse4_1) + ) + elif use arm || use arm64 ; then + mycmakeargs+=( + -DALSOFT_CPUEXT_NEON=$(usex cpu_flags_arm_neon) + ) + fi + + cmake_src_configure +} |