diff options
author | Ulrich Klauer <ulrich@chirlu.de> | 2013-03-10 03:59:03 (GMT) |
---|---|---|
committer | Ulrich Klauer <ulrich@chirlu.de> | 2013-03-12 00:41:42 (GMT) |
commit | b626992d4e712034528476bd6730c1bda6c56841 (patch) | |
tree | 9e147b49e8bdfb1007ce85e7a815cedc5711254d /src/opusfile.mk | |
parent | 75914ee94a58315785a6eb7180919711188db264 (diff) | |
download | mxe-b626992d4e712034528476bd6730c1bda6c56841.zip mxe-b626992d4e712034528476bd6730c1bda6c56841.tar.gz mxe-b626992d4e712034528476bd6730c1bda6c56841.tar.bz2 |
Add package opusfile
Opusfile is a decoder for Opus files. It provides a higher-level API
than the opus library, of which it makes use.
Update function taken directly from opus.mk. Two patches are needed to
make it work, one is taken from the upstream repository (change
introduced after the latest release), the other is by myself.
Diffstat (limited to 'src/opusfile.mk')
-rw-r--r-- | src/opusfile.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/opusfile.mk b/src/opusfile.mk new file mode 100644 index 0000000..87a96d3 --- /dev/null +++ b/src/opusfile.mk @@ -0,0 +1,29 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := opusfile +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := db020e25178b501929a11b0e0f469890f4f4e6fa +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://downloads.xiph.org/releases/opus/$($(PKG)_FILE) +$(PKG)_DEPS := gcc ogg opus + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://downloads.xiph.org/releases/opus/?C=M;O=D' | \ + $(SED) -n 's,.*opusfile-\([0-9][^>]*\)\.tar.*,\1,p' | \ + grep -v 'alpha' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --build="`config.guess`" \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-doc \ + --disable-http + $(MAKE) -C '$(1)' -j '$(JOBS)' noinst_PROGRAMS= + $(MAKE) -C '$(1)' -j 1 install noinst_PROGRAMS= +endef |