Mercurial > mxe-octave
annotate 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 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2224
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
3 |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
4 PKG := libvpx |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
4026 | 6 $(PKG)_VERSION := 1.4.0 |
7 $(PKG)_CHECKSUM := d05f4e9a9878886282ac9c9246f8fac080c94c8f | |
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 | |
10 $(PKG)_URL := http://storage.googleapis.com/downloads.webmproject.org/releases/webm/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := pthreads |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
12 |
4024 | 13 $(PKG)_TARGET_OPTS := |
4026 | 14 $(PKG)_ENV := |
4024 | 15 |
16 ifeq ($(MXE_NATIVE_BUILD),no) | |
17 ifeq ($(ENABLE_WINDOWS_64),yes) | |
18 $(PKG)_TARGET_OPTS := --target=x86_64-win64-gcc | |
19 else | |
20 $(PKG)_TARGET_OPTS := --target=x86-win32-gcc | |
21 endif | |
22 endif | |
23 | |
24 | |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
25 define $(PKG)_UPDATE |
4026 | 26 $(WGET) -q -O- 'http://downloads.webmproject.org/releases/webm/index.html' | \ |
27 $(SED) -n 's,.*libvpx-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
28 $(SORT) -Vr | \ | |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
29 head -1 |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
30 endef |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
31 |
4026 | 32 ifeq ($(MXE_NATIVE_BUILD),no) |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
33 define $(PKG)_BUILD |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
34 cd '$(1)' && \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
35 CROSS='$(MXE_TOOL_PREFIX)' \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1260
diff
changeset
|
36 ./configure \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2558
diff
changeset
|
37 --prefix='$(HOST_PREFIX)' \ |
4024 | 38 $($(PKG)_TARGET_OPTS) \ |
1334
5aa60cef7fd6
bugfix: don't build the docs of package libvpx
Volker Grabsch <vog@notjusthosting.com>
parents:
1275
diff
changeset
|
39 --disable-examples \ |
5aa60cef7fd6
bugfix: don't build the docs of package libvpx
Volker Grabsch <vog@notjusthosting.com>
parents:
1275
diff
changeset
|
40 --disable-install-docs |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
41 $(MAKE) -C '$(1)' -j '$(JOBS)' |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
42 $(MAKE) -C '$(1)' -j 1 install |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
43 $(MXE_RANLIB) $(HOST_LIBDIR)/libvpx.a |
3623
6426e08a5618
libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
44 if [ $(BUILD_SHARED) = yes ]; then \ |
6426e08a5618
libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
45 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(HOST_LIBDIR)/libvpx.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)' -lpthread; \ |
6426e08a5618
libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
46 fi |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
47 endef |
4026 | 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 |