contrib: add mysofa
authorThomas Guillem <thomas@gllm.fr>
Wed, 12 Jul 2017 08:08:17 +0000 (10:08 +0200)
committerThomas Guillem <thomas@gllm.fr>
Wed, 19 Jul 2017 16:06:26 +0000 (18:06 +0200)
mysofa is reader for AES SOFA files to get better HRTFs

contrib/src/mysofa/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/mysofa/rules.mak b/contrib/src/mysofa/rules.mak
new file mode 100644 (file)
index 0000000..cb97e68
--- /dev/null
@@ -0,0 +1,28 @@
+# Mysofa
+
+MYSOFA_VERSION := 65d92e6463537c9f7907b69c2c768a7c8c3a02b5
+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 -DBUILD_SHARED_LIBS=OFF
+       cd $< && $(MAKE) install
+       touch $@
+