blob: 14f82ee50a9df4faab208d384616d68462fdb6a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class OpenalSoft(CMakePackage):
"""OpenAL provides capabilities for playing audio in a
virtual 3D environment. Distance attenuation, doppler
shift, and directional sound emitters are among the
features handled by the API."""
homepage = "https://openal-soft.org"
url = "https://openal-soft.org/openal-releases/openal-soft-1.21.1.tar.bz2"
license("LGPL-2.0-or-later")
version("1.23.1", sha256="796f4b89134c4e57270b7f0d755f0fa3435b90da437b745160a49bd41c845b21")
version("1.23.0", sha256="057dcf96c3cdfcf40159800a93f57740fe79c2956f76247bee10e436b6657183")
version("1.21.1", sha256="c8ad767e9a3230df66756a21cc8ebf218a9d47288f2514014832204e666af5d8")
variant("alsa", default=False, description="ALSA support")
depends_on("alsa-lib", when="+alsa")
def cmake_args(self):
args = [self.define_from_variant("ALSOFT_REQUIRE_ALSA", "alsa")]
return args
|