summaryrefslogtreecommitdiffstats
path: root/src/theora.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-05-04 23:26:12 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-05-04 23:26:12 (GMT)
commit28902ea9ec9be63d171d9ac46062be0c0bc1f749 (patch)
treecc18ec4474c473a8dfbe28ceefc4d87ca0536c5b /src/theora.mk
parentd00410a2cd6f617fe9fcc25c3a1110430648e248 (diff)
downloadmxe-28902ea9ec9be63d171d9ac46062be0c0bc1f749.zip
mxe-28902ea9ec9be63d171d9ac46062be0c0bc1f749.tar.gz
mxe-28902ea9ec9be63d171d9ac46062be0c0bc1f749.tar.bz2
new package: theora (by Martin Gerhardy)
Diffstat (limited to 'src/theora.mk')
-rw-r--r--src/theora.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/theora.mk b/src/theora.mk
new file mode 100644
index 0000000..072ed39
--- /dev/null
+++ b/src/theora.mk
@@ -0,0 +1,26 @@
+# Theora
+
+PKG := theora
+$(PKG)_VERSION := 1.0
+$(PKG)_CHECKSUM := a3e495a8baf6939efad7e0bd11cc0e466838c3db
+$(PKG)_SUBDIR := libtheora-$($(PKG)_VERSION)
+$(PKG)_FILE := libtheora-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://theora.org/
+$(PKG)_URL := http://downloads.xiph.org/releases/theora/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc ogg vorbis
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://www.xiph.org/downloads/' | \
+ $(SED) -n 's,.*libtheora-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ # wine confuses the cross-compiling detection, so set it explicitly
+ $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef