summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vorbis.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/vorbis.mk b/src/vorbis.mk
new file mode 100644
index 0000000..28bbdd6
--- /dev/null
+++ b/src/vorbis.mk
@@ -0,0 +1,25 @@
+# Vorbis
+# http://www.vorbis.com/
+
+PKG := vorbis
+$(PKG)_VERSION := 1.2.0
+$(PKG)_SUBDIR := libvorbis-$($(PKG)_VERSION)
+$(PKG)_FILE := libvorbis-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://downloads.xiph.org/releases/vorbis/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc pthreads ogg
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://www.xiph.org/downloads/' | \
+ $(SED) -n 's,.*libvorbis-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ PKG_CONFIG='$(TARGET)-pkg-config' \
+ LIBS='-lws2_32'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef