[vlc-devel] [PATCH 10/16] contrib: add spatialaudio
Thomas Guillem
thomas at gllm.fr
Fri Jul 7 16:02:56 CEST 2017
From: Adrien Maglo <magsoft at videolan.org>
An Ambisonics / Binaural decoding library.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
---
contrib/src/mysofa/rules.mak | 28 ++++++++++++++++++++++++++++
contrib/src/spatialaudio/rules.mak | 29 +++++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
create mode 100644 contrib/src/mysofa/rules.mak
create mode 100644 contrib/src/spatialaudio/rules.mak
diff --git a/contrib/src/mysofa/rules.mak b/contrib/src/mysofa/rules.mak
new file mode 100644
index 0000000000..822c73a9af
--- /dev/null
+++ b/contrib/src/mysofa/rules.mak
@@ -0,0 +1,28 @@
+# Mysofa
+
+MYSOFA_VERSION := 40e23d7dcba4f0bd74a8f1b7a635ca0ecb4d21bf
+MYSOFA_GITURL = https://github.com/hoene/libmysofa.git
+
+PKGS += mysofa
+
+ifeq ($(call need_pkg,"mysofa"),)
+PKGS_FOUND += mysofa
+endif
+
+$(TARBALLS)/mysofa-git.tar.xz:
+ $(call download_git,$(MYSOFA_GITURL),,$(MYSOFA_VERSION))
+
+.sum-mysofa: mysofa-git.tar.xz
+ $(call check_githash,$(MYSOFA_VERSION))
+ touch $@
+
+mysofa: mysofa-git.tar.xz .sum-mysofa
+ $(UNPACK)
+ $(MOVE)
+
+.mysofa: mysofa toolchain.cmake
+ -cd $< && rm CMakeCache.txt
+ cd $< && $(HOSTVARS) $(CMAKE) -DBUILD_TESTS=OFF
+ cd $< && $(MAKE) install
+ touch $@
+
diff --git a/contrib/src/spatialaudio/rules.mak b/contrib/src/spatialaudio/rules.mak
new file mode 100644
index 0000000000..ee91893e0a
--- /dev/null
+++ b/contrib/src/spatialaudio/rules.mak
@@ -0,0 +1,29 @@
+# Spatialaudio
+
+SPATIALAUDIO_VERSION := 022af7fcec493fc49399d5d5c441b74b6788769c
+SPATIALAUDIO_GITURL = https://github.com/videolabs/libspatialaudio.git
+
+DEPS_spatialaudio = zlib mysofa
+
+PKGS += spatialaudio
+
+ifeq ($(call need_pkg,"spatialaudio"),)
+PKGS_FOUND += spatialaudio
+endif
+
+$(TARBALLS)/spatialaudio-git.tar.xz:
+ $(call download_git,$(SPATIALAUDIO_GITURL),,$(SPATIALAUDIO_VERSION))
+
+.sum-spatialaudio: spatialaudio-git.tar.xz
+ $(call check_githash,$(SPATIALAUDIO_VERSION))
+ touch $@
+
+spatialaudio: spatialaudio-git.tar.xz .sum-spatialaudio
+ $(UNPACK)
+ $(MOVE)
+
+.spatialaudio: spatialaudio toolchain.cmake
+ -cd $< && rm CMakeCache.txt
+ cd $< && $(HOSTVARS) $(CMAKE) -DMYSOFA_ROOT_DIR=$(PREFIX)
+ cd $< && $(MAKE) install
+ touch $@
--
2.11.0
More information about the vlc-devel
mailing list