contrib: add (disabled) rules.mak for daala
authorTristan Matthews <le.businessman@gmail.com>
Sun, 21 Sep 2014 14:25:15 +0000 (15:25 +0100)
committerTristan Matthews <le.businessman@gmail.com>
Sun, 21 Sep 2014 16:24:42 +0000 (17:24 +0100)
contrib/src/daala/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/daala/rules.mak b/contrib/src/daala/rules.mak
new file mode 100644 (file)
index 0000000..84fcb4f
--- /dev/null
@@ -0,0 +1,34 @@
+DAALA_VERSION := git
+DAALA_HASH := HEAD
+DAALA_GITURL := http://git.xiph.org/?p=daala.git;a=snapshot;h=$(DAALA_HASH);sf=tgz
+
+# Default disabled for now
+# PKGS += daala
+ifeq ($(call need_pkg,"daala"),)
+PKGS_FOUND += daala
+endif
+
+$(TARBALLS)/daala-git.tar.gz:
+       $(call download,$(DAALA_GITURL))
+
+.sum-daala: daala-$(DAALA_VERSION).tar.gz
+       $(warning $@ not implemented)
+       touch $@
+
+daala: daala-$(DAALA_VERSION).tar.gz .sum-daala
+       rm -Rf $@-git $@
+       mkdir -p $@-git
+       $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
+       $(MOVE)
+       mkdir -p $@/m4
+
+DAALACONF := $(HOSTCONF) \
+       --disable-player --disable-tools
+
+DEPS_daala = ogg $(DEPS_ogg)
+
+.daala: daala
+       $(RECONF)
+       cd $< && $(HOSTVARS) ./configure $(DAALACONF)
+       cd $< && $(MAKE) install
+       touch $@