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 :=
|
2012-05-22 13:50:34 +01:00
|
|
|
$(PKG)_CHECKSUM := 356af5f770c50cd021c60863203d8f30164f6021
|
2010-11-28 18:07:21 +00:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-v$($(PKG)_VERSION)
|
2010-12-12 00:16:13 +00:00
|
|
|
$(PKG)_FILE := $(PKG)-v$($(PKG)_VERSION).tar.bz2
|
2010-09-20 13:04:43 +01:00
|
|
|
$(PKG)_URL := http://webm.googlecode.com/files/$($(PKG)_FILE)
|
2012-05-27 21:12:59 +01:00
|
|
|
$(PKG)_DEPS := gcc pthreads
|
2010-09-20 13:04:43 +01:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2012-05-08 16:16:05 +01:00
|
|
|
$(WGET) -q -O- 'http://code.google.com/p/webm/downloads/list?sort=-uploaded' | \
|
2010-10-03 21:16:17 +01:00
|
|
|
$(SED) -n 's,.*libvpx-v\([0-9][^<]*\)\.tar.*,\1,p' | \
|
2010-09-20 13:04:43 +01:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
cd '$(1)' && \
|
2010-09-20 13:39:37 +01:00
|
|
|
CROSS='$(TARGET)-' \
|
|
|
|
./configure \
|
2010-09-20 13:04:43 +01:00
|
|
|
--prefix='$(PREFIX)/$(TARGET)' \
|
2013-05-23 15:38:06 +01:00
|
|
|
--target=libvpx-target \
|
2010-10-22 22:32:45 +01:00
|
|
|
--disable-examples \
|
|
|
|
--disable-install-docs
|
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
|
|
|
|
|
|
|
$(PKG)_BUILD_i686-pc-mingw32 = $(subst libvpx-target ,x86-win32-gcc ,$($(PKG)_BUILD))
|
|
|
|
$(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))
|