contrib: add spatialaudio
authorAdrien Maglo <magsoft@videolan.org>
Fri, 14 Apr 2017 13:08:20 +0000 (15:08 +0200)
committerThomas Guillem <thomas@gllm.fr>
Wed, 19 Jul 2017 16:46:02 +0000 (18:46 +0200)
An Ambisonics / Binaural decoding library.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
contrib/src/spatialaudio/SHA512SUMS [new file with mode: 0644]
contrib/src/spatialaudio/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/spatialaudio/SHA512SUMS b/contrib/src/spatialaudio/SHA512SUMS
new file mode 100644 (file)
index 0000000..0629802
--- /dev/null
@@ -0,0 +1 @@
+83bedade2b229de7b0668779f54669eef9f10688f77f27b52b8ce581cadd175112649f4062c166d3a9459888eb14917fdb92c6b06459e9eaf2593cdc1872943b spatialaudio-0.2.0.tar.gz
diff --git a/contrib/src/spatialaudio/rules.mak b/contrib/src/spatialaudio/rules.mak
new file mode 100644 (file)
index 0000000..ed3e522
--- /dev/null
@@ -0,0 +1,27 @@
+# Spatialaudio
+
+SPATIALAUDIO_VERSION := 0.2.0
+SPATIALAUDIO_URL = https://github.com/videolabs/libspatialaudio/releases/download/$(SPATIALAUDIO_VERSION)/spatialaudio-$(SPATIALAUDIO_VERSION).tar.gz
+
+DEPS_spatialaudio = zlib mysofa
+
+PKGS += spatialaudio
+
+ifeq ($(call need_pkg,"spatialaudio"),)
+PKGS_FOUND += spatialaudio
+endif
+
+$(TARBALLS)/spatialaudio-$(SPATIALAUDIO_VERSION).tar.gz:
+       $(call download_pkg,$(SPATIALAUDIO_URL),spatialaudio)
+
+.sum-spatialaudio: spatialaudio-$(SPATIALAUDIO_VERSION).tar.gz
+
+spatialaudio: spatialaudio-$(SPATIALAUDIO_VERSION).tar.gz .sum-spatialaudio
+       $(UNPACK)
+       $(MOVE)
+
+.spatialaudio: spatialaudio toolchain.cmake
+       -cd $< && rm CMakeCache.txt
+       cd $< && $(HOSTVARS) $(CMAKE) -DMYSOFA_ROOT_DIR=$(PREFIX)
+       cd $< && $(MAKE) install
+       touch $@