summaryrefslogtreecommitdiffstats
path: root/src/opus.mk
diff options
context:
space:
mode:
authorAlexander Kojevnikov <alexander@kojevnikov.com>2013-02-11 17:58:08 (GMT)
committerAlexander Kojevnikov <alexander@kojevnikov.com>2013-02-11 17:58:08 (GMT)
commit3dee556c79bb7ca79db5141ac72cd3442c018e9f (patch)
treeb9b0f3428aa3bf8f3f1a25589026bb373c7f03c0 /src/opus.mk
parent1436d3b46a6537ad3fea94474ea9bb3bb9aa9c96 (diff)
downloadmxe-3dee556c79bb7ca79db5141ac72cd3442c018e9f.zip
mxe-3dee556c79bb7ca79db5141ac72cd3442c018e9f.tar.gz
mxe-3dee556c79bb7ca79db5141ac72cd3442c018e9f.tar.bz2
New package: opus
Diffstat (limited to 'src/opus.mk')
-rw-r--r--src/opus.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/opus.mk b/src/opus.mk
new file mode 100644
index 0000000..15c93c7
--- /dev/null
+++ b/src/opus.mk
@@ -0,0 +1,26 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := opus
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := 37dd3d69b10612cd513ccf26675ef6d61eda24b4
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://downloads.xiph.org/releases/$(PKG)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://www.xiph.org/downloads/' | \
+ $(SED) -n 's,.*opus-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --build="`config.guess`" \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+ $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef