mxe/src/theora.mk

30 lines
1.0 KiB
Makefile

# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# Theora
PKG := theora
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.1.1
$(PKG)_CHECKSUM := 0b91be522746a29351a5ee592fd8160940059303
$(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) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= doc_DATA=
endef