Mercurial > mxe-octave
comparison src/libvpx.mk @ 4026:28fa86d2cf21
ffmpeg: mods for native linux build of ffmpeg
* src/ffmpeg.mk: add native build rule
* src/libvpx-1-fixes.patch: update patch from mxe.cc
* src/libvpx.mk: update to version 1.4.0, add native build rule
* src/sdl-1-xdata.patch" new patch file
* src/sdl.mk: add native build rule
* src/xvidcore.mk: add native build rule
author | John D |
---|---|
date | Sat, 12 Sep 2015 20:35:11 -0400 |
parents | 8114d05101dc |
children | c4a341e3e014 |
comparison
equal
deleted
inserted
replaced
4025:703b6f9eaea1 | 4026:28fa86d2cf21 |
---|---|
1 # This file is part of MXE. | 1 # This file is part of MXE. |
2 # See index.html for further information. | 2 # See index.html for further information. |
3 | 3 |
4 PKG := libvpx | 4 PKG := libvpx |
5 $(PKG)_IGNORE := | 5 $(PKG)_IGNORE := |
6 $(PKG)_VERSION := 1.1.0 | 6 $(PKG)_VERSION := 1.4.0 |
7 $(PKG)_CHECKSUM := 356af5f770c50cd021c60863203d8f30164f6021 | 7 $(PKG)_CHECKSUM := d05f4e9a9878886282ac9c9246f8fac080c94c8f |
8 $(PKG)_SUBDIR := $(PKG)-v$($(PKG)_VERSION) | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
9 $(PKG)_FILE := $(PKG)-v$($(PKG)_VERSION).tar.bz2 | 9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 |
10 $(PKG)_URL := http://webm.googlecode.com/files/$($(PKG)_FILE) | 10 $(PKG)_URL := http://storage.googleapis.com/downloads.webmproject.org/releases/webm/$($(PKG)_FILE) |
11 $(PKG)_DEPS := pthreads | 11 $(PKG)_DEPS := pthreads |
12 | 12 |
13 $(PKG)_TARGET_OPTS := | 13 $(PKG)_TARGET_OPTS := |
14 $(PKG)_ENV := | |
14 | 15 |
15 ifeq ($(MXE_NATIVE_BUILD),no) | 16 ifeq ($(MXE_NATIVE_BUILD),no) |
16 ifeq ($(ENABLE_WINDOWS_64),yes) | 17 ifeq ($(ENABLE_WINDOWS_64),yes) |
17 $(PKG)_TARGET_OPTS := --target=x86_64-win64-gcc | 18 $(PKG)_TARGET_OPTS := --target=x86_64-win64-gcc |
18 else | 19 else |
20 endif | 21 endif |
21 endif | 22 endif |
22 | 23 |
23 | 24 |
24 define $(PKG)_UPDATE | 25 define $(PKG)_UPDATE |
25 $(WGET) -q -O- 'http://code.google.com/p/webm/downloads/list?sort=-uploaded' | \ | 26 $(WGET) -q -O- 'http://downloads.webmproject.org/releases/webm/index.html' | \ |
26 $(SED) -n 's,.*libvpx-v\([0-9][^<]*\)\.tar.*,\1,p' | \ | 27 $(SED) -n 's,.*libvpx-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
28 $(SORT) -Vr | \ | |
27 head -1 | 29 head -1 |
28 endef | 30 endef |
29 | 31 |
32 ifeq ($(MXE_NATIVE_BUILD),no) | |
30 define $(PKG)_BUILD | 33 define $(PKG)_BUILD |
31 cd '$(1)' && \ | 34 cd '$(1)' && \ |
32 CROSS='$(MXE_TOOL_PREFIX)' \ | 35 CROSS='$(MXE_TOOL_PREFIX)' \ |
33 ./configure \ | 36 ./configure \ |
34 --prefix='$(HOST_PREFIX)' \ | 37 --prefix='$(HOST_PREFIX)' \ |
39 $(MAKE) -C '$(1)' -j 1 install | 42 $(MAKE) -C '$(1)' -j 1 install |
40 $(MXE_RANLIB) $(HOST_LIBDIR)/libvpx.a | 43 $(MXE_RANLIB) $(HOST_LIBDIR)/libvpx.a |
41 if [ $(BUILD_SHARED) = yes ]; then \ | 44 if [ $(BUILD_SHARED) = yes ]; then \ |
42 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(HOST_LIBDIR)/libvpx.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)' -lpthread; \ | 45 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(HOST_LIBDIR)/libvpx.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)' -lpthread; \ |
43 fi | 46 fi |
44 | |
45 endef | 47 endef |
48 else | |
49 define $(PKG)_BUILD | |
50 cd '$(1)' && \ | |
51 $($(PKG)_ENV) \ | |
52 ./configure \ | |
53 --prefix='$(HOST_PREFIX)' \ | |
54 $(ENABLE_SHARED_OR_STATIC) \ | |
55 --disable-examples \ | |
56 --disable-install-docs | |
57 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
58 $(MAKE) -C '$(1)' -j 1 install | |
59 endef | |
60 endif |