Mercurial > mxe-octave
annotate src/libvpx.mk @ 5544:e2582a427c2a
* src/proj.mk: update to v7.1.1
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 22 Sep 2020 09:04:50 -0400 |
parents | de6e4042489c |
children | abf83f194b4c |
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 := |
5441
de6e4042489c
Update libvpx to 1.8.2
John Donoghue <john.donoghue@ieee.org>
parents:
4618
diff
changeset
|
6 $(PKG)_VERSION := 1.8.2 |
de6e4042489c
Update libvpx to 1.8.2
John Donoghue <john.donoghue@ieee.org>
parents:
4618
diff
changeset
|
7 $(PKG)_CHECKSUM := 7fbc7de47f59431fa2c5b76660f115963e83193d |
4026 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
5441
de6e4042489c
Update libvpx to 1.8.2
John Donoghue <john.donoghue@ieee.org>
parents:
4618
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
de6e4042489c
Update libvpx to 1.8.2
John Donoghue <john.donoghue@ieee.org>
parents:
4618
diff
changeset
|
10 $(PKG)_URL := https://github.com/webmproject/$(PKG)/archive/v$($(PKG)_VERSION).tar.gz |
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 |
4618
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
4029
diff
changeset
|
26 $(WGET) -q -O- 'https://github.com/webmproject/libvpx/tags' | \ |
5441
de6e4042489c
Update libvpx to 1.8.2
John Donoghue <john.donoghue@ieee.org>
parents:
4618
diff
changeset
|
27 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | \ |
4026 | 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) \ |
4029 | 39 --as=yasm \ |
40 --extra-cflags='-std=gnu89' \ | |
1334
5aa60cef7fd6
bugfix: don't build the docs of package libvpx
Volker Grabsch <vog@notjusthosting.com>
parents:
1275
diff
changeset
|
41 --disable-examples \ |
5aa60cef7fd6
bugfix: don't build the docs of package libvpx
Volker Grabsch <vog@notjusthosting.com>
parents:
1275
diff
changeset
|
42 --disable-install-docs |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
43 $(MAKE) -C '$(1)' -j '$(JOBS)' |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
44 $(MAKE) -C '$(1)' -j 1 install |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
45 $(MXE_RANLIB) $(HOST_LIBDIR)/libvpx.a |
3623
6426e08a5618
libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
46 if [ $(BUILD_SHARED) = yes ]; then \ |
6426e08a5618
libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
47 $(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
|
48 fi |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
49 endef |
4026 | 50 else |
51 define $(PKG)_BUILD | |
52 cd '$(1)' && \ | |
53 $($(PKG)_ENV) \ | |
54 ./configure \ | |
55 --prefix='$(HOST_PREFIX)' \ | |
56 $(ENABLE_SHARED_OR_STATIC) \ | |
57 --disable-examples \ | |
58 --disable-install-docs | |
59 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
60 $(MAKE) -C '$(1)' -j 1 install | |
61 endef | |
62 endif |