mxe/src/opusfile.mk

31 lines
941 B
Makefile
Raw Normal View History

# This file is part of MXE.
# See index.html for further information.
PKG := opusfile
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.2
$(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