]> git.sesse.net Git - vlc/commitdiff
Contribs: add SRC
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 22 Oct 2011 02:02:52 +0000 (04:02 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 22 Oct 2011 02:02:52 +0000 (04:02 +0200)
contrib/src/samplerate/SHA512SUMS [new file with mode: 0644]
contrib/src/samplerate/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/samplerate/SHA512SUMS b/contrib/src/samplerate/SHA512SUMS
new file mode 100644 (file)
index 0000000..0d9ad40
--- /dev/null
@@ -0,0 +1 @@
+85d93df24d9d62e7803a5d0ac5d268b2085214adcb160e32fac316b12ee8a0ce36ccfb433a3c0a08f6e3ec418a5962bdb84f8a11262286a9b347436983029a7d  libsamplerate-0.1.8.tar.gz
diff --git a/contrib/src/samplerate/rules.mak b/contrib/src/samplerate/rules.mak
new file mode 100644 (file)
index 0000000..6766e46
--- /dev/null
@@ -0,0 +1,22 @@
+# SAMPLERATE
+SAMPLERATE_VERSION := 0.1.8
+SAMPLERATE_URL := http://www.mega-nerd.com/SRC/libsamplerate-$(SAMPLERATE_VERSION).tar.gz
+
+PKGS += samplerate
+ifeq ($(call need_pkg,"samplerate"),)
+PKGS_FOUND += samplerate
+endif
+
+$(TARBALLS)/libsamplerate-$(SAMPLERATE_VERSION).tar.gz:
+       $(call download,$(SAMPLERATE_URL))
+
+.sum-samplerate: libsamplerate-$(SAMPLERATE_VERSION).tar.gz
+
+samplerate: libsamplerate-$(SAMPLERATE_VERSION).tar.gz .sum-samplerate
+       $(UNPACK)
+       $(MOVE)
+
+.samplerate: samplerate
+       cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+       cd $< && $(MAKE) install
+       touch $@