summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2021-04-08 10:55:45 -0400
committerGitHub <noreply@github.com>2021-04-08 16:55:45 +0200
commit44d24448544a84717cdb97273069839a0d76e525 (patch)
tree5579e311a76a251c698f31fa4f7c9c24f79af766 /var
parent0ecce5797eacb5a1f7d64279cf892e80ebcd3ec0 (diff)
downloadspack-44d24448544a84717cdb97273069839a0d76e525.tar.gz
spack-44d24448544a84717cdb97273069839a0d76e525.tar.bz2
spack-44d24448544a84717cdb97273069839a0d76e525.tar.xz
spack-44d24448544a84717cdb97273069839a0d76e525.zip
openal-soft: new package (#22265)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openal-soft/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openal-soft/package.py b/var/spack/repos/builtin/packages/openal-soft/package.py
new file mode 100644
index 0000000000..c1895be63a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/openal-soft/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2021 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 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"
+
+ 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