2012-03-28 14:46:58 +01:00
|
|
|
# This file is part of MXE.
|
2012-03-29 11:14:15 +01:00
|
|
|
# See index.html for further information.
|
2010-09-20 13:04:43 +01:00
|
|
|
|
|
|
|
PKG := libvpx
|
|
|
|
$(PKG)_IGNORE :=
|
2015-12-17 01:08:46 +00:00
|
|
|
$(PKG)_VERSION := 1.5.0
|
|
|
|
$(PKG)_CHECKSUM := 306d67908625675f8e188d37a81fbfafdf5068b09d9aa52702b6fbe601c76797
|
2015-06-19 04:24:44 +01:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
|
|
|
|
$(PKG)_URL := http://storage.googleapis.com/downloads.webmproject.org/releases/webm/$($(PKG)_FILE)
|
2013-07-13 12:07:36 +01:00
|
|
|
$(PKG)_DEPS := gcc pthreads yasm
|
2010-09-20 13:04:43 +01:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2015-06-19 04:24:44 +01:00
|
|
|
$(WGET) -q -O- 'http://downloads.webmproject.org/releases/webm/index.html' | \
|
|
|
|
$(SED) -n 's,.*libvpx-\([0-9][^>]*\)\.tar.*,\1,p' | \
|
|
|
|
$(SORT) -Vr | \
|
2010-09-20 13:04:43 +01:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2013-07-13 12:07:36 +01:00
|
|
|
$(SED) -i 's,yasm[ $$],$(TARGET)-yasm ,g' '$(1)/build/make/configure.sh'
|
2010-09-20 13:04:43 +01:00
|
|
|
cd '$(1)' && \
|
2010-09-20 13:39:37 +01:00
|
|
|
CROSS='$(TARGET)-' \
|
|
|
|
./configure \
|
2010-09-20 13:04:43 +01:00
|
|
|
--prefix='$(PREFIX)/$(TARGET)' \
|
2014-02-18 03:04:23 +00:00
|
|
|
--target=@libvpx-target@ \
|
2010-10-22 22:32:45 +01:00
|
|
|
--disable-examples \
|
2013-07-13 12:07:36 +01:00
|
|
|
--disable-install-docs \
|
2015-04-23 12:17:05 +01:00
|
|
|
--as=$(TARGET)-yasm \
|
|
|
|
--extra-cflags='-std=gnu89'
|
2010-09-20 13:04:43 +01:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(1)' -j 1 install
|
|
|
|
$(TARGET)-ranlib $(PREFIX)/$(TARGET)/lib/libvpx.a
|
|
|
|
endef
|
2013-05-23 15:38:06 +01:00
|
|
|
|
2014-02-18 03:04:23 +00:00
|
|
|
$(PKG)_BUILD_i686-w64-mingw32 = $(subst @libvpx-target@,x86-win32-gcc,$($(PKG)_BUILD))
|
|
|
|
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst @libvpx-target@,x86_64-win64-gcc,$($(PKG)_BUILD))
|