You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/opus.mk

32 lines
1.1 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := opus
$(PKG)_WEBSITE := https://opus-codec.org/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.1
$(PKG)_CHECKSUM := 65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://archive.mozilla.org/pub/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := cc
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://archive.mozilla.org/pub/opus/?C=M;O=D' | \
$(SED) -n 's,.*opus-\([0-9][^>]*\)\.tar.*,\1,p' | \
grep -v 'alpha' | \
grep -v 'beta' | \
grep -v 'rc' | \
$(SORT) -Vr | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && $(SHELL) ./configure \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j '$(JOBS)' SHELL=$(SHELL) $(MXE_DISABLE_CRUFT)
$(MAKE) -C '$(1)' -j 1 install SHELL=$(SHELL) $(MXE_DISABLE_CRUFT)
rm -f '$(PREFIX)/$(TARGET)'/share/man/man3/opus_*.3
rm -f '$(PREFIX)/$(TARGET)'/share/man/man3/opus.h.3
rm -rf '$(PREFIX)/$(TARGET)'/share/doc/opus/html
endef