2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2010-09-20 13:04:43 +01:00
|
|
|
|
|
|
|
PKG := libvpx
|
2018-07-14 00:02:08 +01:00
|
|
|
$(PKG)_WEBSITE := https://www.webmproject.org/code/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := vpx
|
2010-09-20 13:04:43 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2020-05-03 21:07:17 +01:00
|
|
|
$(PKG)_VERSION := 1.8.2
|
|
|
|
$(PKG)_CHECKSUM := 8735d9fcd1a781ae6917f28f239a8aa358ce4864ba113ea18af4bb2dc8b474ac
|
|
|
|
$(PKG)_GH_CONF := webmproject/libvpx/tags,v
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc pthreads yasm
|
2010-09-20 13:04:43 +01:00
|
|
|
|
|
|
|
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))
|