annotate src/libvpx.mk @ 4024:8114d05101dc

ffmpeg: update to v2.7.2 * src/ffmpeg.mk: update version, checksum, add native vs cross build rules * src/xvidcore.mk: fix typo in install of .dll.a * src/libvpx.mk: set target based on build options
author John Donoghue
date Fri, 11 Sep 2015 15:22:10 -0400
parents 6426e08a5618
children 28fa86d2cf21
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
6 $(PKG)_VERSION := 1.1.0
2543
fd3ee2ca91ab update package libvpx
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
7 $(PKG)_CHECKSUM := 356af5f770c50cd021c60863203d8f30164f6021
1447
8d43a215ea43 upgrade packages: atkmm gdal gdk-pixbuf glew glib gtk imagemagick lapack librsvg libvpx libxml2 ogg pixman vorbis x264
Volker Grabsch <vog@notjusthosting.com>
parents: 1334
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-v$($(PKG)_VERSION)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1447
diff changeset
9 $(PKG)_FILE := $(PKG)-v$($(PKG)_VERSION).tar.bz2
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
10 $(PKG)_URL := http://webm.googlecode.com/files/$($(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
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
13 $(PKG)_TARGET_OPTS :=
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
14
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
15 ifeq ($(MXE_NATIVE_BUILD),no)
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
16 ifeq ($(ENABLE_WINDOWS_64),yes)
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
17 $(PKG)_TARGET_OPTS := --target=x86_64-win64-gcc
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
18 else
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
19 $(PKG)_TARGET_OPTS := --target=x86-win32-gcc
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
20 endif
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
21 endif
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
22
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
23
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
24 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
25 $(WGET) -q -O- 'http://code.google.com/p/webm/downloads/list?sort=-uploaded' | \
1269
a74be54ab8a3 misc fixes for libvpx and x264
Tony Theodore <tonyt@logyst.com>
parents: 1261
diff changeset
26 $(SED) -n 's,.*libvpx-v\([0-9][^<]*\)\.tar.*,\1,p' | \
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
27 head -1
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
28 endef
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
29
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
8114d05101dc ffmpeg: update to v2.7.2
John Donoghue
parents: 3623
diff changeset
35 $($(PKG)_TARGET_OPTS) \
1334
5aa60cef7fd6 bugfix: don't build the docs of package libvpx
Volker Grabsch <vog@notjusthosting.com>
parents: 1275
diff changeset
36 --disable-examples \
5aa60cef7fd6 bugfix: don't build the docs of package libvpx
Volker Grabsch <vog@notjusthosting.com>
parents: 1275
diff changeset
37 --disable-install-docs
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
38 $(MAKE) -C '$(1)' -j '$(JOBS)'
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
39 $(MAKE) -C '$(1)' -j 1 install
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
40 $(MXE_RANLIB) $(HOST_LIBDIR)/libvpx.a
3623
6426e08a5618 libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
41 if [ $(BUILD_SHARED) = yes ]; then \
6426e08a5618 libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
42 $(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
43 fi
6426e08a5618 libvpx: create dll if shared build
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
44
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
45 endef