summaryrefslogtreecommitdiffstats
path: root/src/vorbis.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-08 21:22:34 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-08 21:22:34 (GMT)
commitd5a02f9f0159073d2075e1295447665125bd4c4c (patch)
tree9e650affe7a4f3be8ec90cddd4b07387a69916e9 /src/vorbis.mk
parent74f7668188c5144ca1b247cee488ca058d9fe5a4 (diff)
downloadmxe-d5a02f9f0159073d2075e1295447665125bd4c4c.zip
mxe-d5a02f9f0159073d2075e1295447665125bd4c4c.tar.gz
mxe-d5a02f9f0159073d2075e1295447665125bd4c4c.tar.bz2
translated package: vorbis
Diffstat (limited to 'src/vorbis.mk')
-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