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 :=
|
2013-09-05 22:31:56 +01:00
|
|
|
$(PKG)_VERSION := 1.2.0
|
2013-10-15 02:50:29 +01:00
|
|
|
$(PKG)_CHECKSUM := 214d9a215af1a3278d9fcba4cac89566e321e4cf
|
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)
|
2013-07-13 12:07:36 +01:00
|
|
|
$(PKG)_DEPS := gcc pthreads yasm
|
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
|
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)' \
|
2013-05-23 15:38:06 +01: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 \
|
|
|
|
--as=$(TARGET)-yasm
|
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))
|