2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2009-05-05 00:26:12 +01:00
|
|
|
|
|
|
|
PKG := theora
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://theora.org/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := Theora
|
2009-09-20 13:36:46 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2013-07-21 22:26:40 +01:00
|
|
|
$(PKG)_VERSION := 1.1.1
|
2015-09-23 09:32:58 +01:00
|
|
|
$(PKG)_CHECKSUM := 40952956c47811928d1e7922cda3bc1f427eb75680c3c37249c91e949054916b
|
2009-05-05 00:26:12 +01:00
|
|
|
$(PKG)_SUBDIR := libtheora-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := libtheora-$($(PKG)_VERSION).tar.gz
|
2017-07-15 02:42:53 +01:00
|
|
|
$(PKG)_URL := https://downloads.xiph.org/releases/theora/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc ogg vorbis
|
2009-05-05 00:26:12 +01:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-05 03:41:39 +00:00
|
|
|
$(WGET) -q -O- 'https://www.xiph.org/downloads/' | \
|
2009-05-05 00:26:12 +01:00
|
|
|
$(SED) -n 's,.*libtheora-\([0-9][^>]*\)\.tar.*,\1,p' | \
|
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2014-02-10 05:33:26 +00:00
|
|
|
# https://aur.archlinux.org/packages/mi/mingw-w64-libtheora/PKGBUILD
|
|
|
|
$(SED) -i 's,EXPORTS,,' '$(1)/win32/xmingw32/libtheoradec-all.def'
|
|
|
|
$(SED) -i 's,EXPORTS,,' '$(1)/win32/xmingw32/libtheoraenc-all.def'
|
2009-05-05 00:26:12 +01:00
|
|
|
cd '$(1)' && ./configure \
|
2014-02-10 05:33:26 +00:00
|
|
|
$(MXE_CONFIGURE_OPTS)
|
2009-09-07 00:22:44 +01:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= doc_DATA=
|
2009-05-05 00:26:12 +01:00
|
|
|
endef
|