Mercurial > mxe-octave
annotate src/libvpx.mk @ 6510:4b8764444acb
Create common github call define and start using it
* Makefile.in: add GITHUB_PKG_UPDATE
* src/blas_switch.mk, src/double-conversion.mk, src/libffi.mk,
src/libgeotiff.mk, src/libmodbus.mk, src/libproxy.mk,
src/librsvg.mk, src/libsndfile.mk, src/libsodium.mk,
src/libvpx.mk, src/netcdf.mk, src/of-statistics.mk,
src/openblas.mk, src/opencv.mk, src/openjpeg.mk,
src/openlibm.mk, src/paho-mqtt-c.mk, src/pcre2.mk,
src/portaudio.mk, src/rapidjson.mk, src/rtmidi.mk,
src/suitesparse.mk, src/sundials-ida.mk, src/wt.mk,
src/wxwidgets.mk, src/yasm.mk, src/zeromq.mk
: call GITHUB_PKG_UPDATE in update
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 08 Nov 2022 09:37:16 -0500 |
parents | 6c36f253538a |
children | c96d7bec34fe |
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 := |
6292
6c36f253538a
* src/libvpx.mk: update to v1.12.0
John Donoghue <john.donoghue@ieee.org>
parents:
6205
diff
changeset
|
6 $(PKG)_VERSION := 1.12.0 |
6c36f253538a
* src/libvpx.mk: update to v1.12.0
John Donoghue <john.donoghue@ieee.org>
parents:
6205
diff
changeset
|
7 $(PKG)_CHECKSUM := e5f344d28752344d4c6e0c83b055093932b8d2c9 |
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 |
6510
4b8764444acb
Create common github call define and start using it
John Donoghue <john.donoghue@ieee.org>
parents:
6292
diff
changeset
|
26 $(call GITHUB_PKG_UPDATE,webmproject,libvpx,v) |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
27 endef |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
28 |
4026 | 29 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
|
30 define $(PKG)_BUILD |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
31 cd '$(1)' && \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
32 CROSS='$(MXE_TOOL_PREFIX)' \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1260
diff
changeset
|
33 ./configure \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2558
diff
changeset
|
34 --prefix='$(HOST_PREFIX)' \ |
4024 | 35 $($(PKG)_TARGET_OPTS) \ |
4029 | 36 --as=yasm \ |
37 --extra-cflags='-std=gnu89' \ | |
1334
5aa60cef7fd6
bugfix: don't build the docs of package libvpx
Volker Grabsch <vog@notjusthosting.com>
parents:
1275
diff
changeset
|
38 --disable-examples \ |
5aa60cef7fd6
bugfix: don't build the docs of package libvpx
Volker Grabsch <vog@notjusthosting.com>
parents:
1275
diff
changeset
|
39 --disable-install-docs |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
40 $(MAKE) -C '$(1)' -j '$(JOBS)' |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
41 $(MAKE) -C '$(1)' -j 1 install |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
42 $(MXE_RANLIB) $(HOST_LIBDIR)/libvpx.a |
3623
6426e08a5618
libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
43 if [ $(BUILD_SHARED) = yes ]; then \ |
6426e08a5618
libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
44 $(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
|
45 fi |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
46 endef |
4026 | 47 else |
48 define $(PKG)_BUILD | |
49 cd '$(1)' && \ | |
50 $($(PKG)_ENV) \ | |
51 ./configure \ | |
52 --prefix='$(HOST_PREFIX)' \ | |
53 $(ENABLE_SHARED_OR_STATIC) \ | |
54 --disable-examples \ | |
55 --disable-install-docs | |
56 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
57 $(MAKE) -C '$(1)' -j 1 install | |
58 endef | |
59 endif |