annotate src/x264.mk @ 5534:372ea4c0afb2

Move of-ocs PKG_XXXX to inst dir and add break patch * src/of-ocs-3-break-fixes.patch, src/of-ocs-4-pkgadd-fixes.patch: new files * dist-files.mk: add ref to files
author John Donoghue <john.donoghue@ieee.org>
date Sun, 13 Sep 2020 08:15:14 -0400
parents 9ebb98431899
children 0f6faed414a3
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: 2014
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 := x264
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
4029
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
6 $(PKG)_VERSION := 20141130-2245
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := e2a4f5dd0a773a3e89f7c5cf1b3d2efc95f282b8
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-snapshot-$($(PKG)_VERSION)
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-snapshot-$($(PKG)_VERSION).tar.bz2
1350
3199573f095b corrected download URL of package x264
Volker Grabsch <vog@notjusthosting.com>
parents: 1318
diff changeset
10 $(PKG)_URL := http://download.videolan.org/pub/videolan/$(PKG)/snapshots/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS :=
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
12
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
4869
9ebb98431899 * src/x264.mk: update update rule
John Donoghue
parents: 4029
diff changeset
14 $(WGET) -q -O- 'https://git.videolan.org/?p=x264.git;a=shortlog' | \
9ebb98431899 * src/x264.mk: update update rule
John Donoghue
parents: 4029
diff changeset
15 $(SED) -n 's,.*\([0-9]\{4\}\)-\([0-9]\{2\}\)-\([0-9]\{2\}\).*,\1\2\3-2245,p' | \
9ebb98431899 * src/x264.mk: update update rule
John Donoghue
parents: 4029
diff changeset
16 $(SORT) | \
9ebb98431899 * src/x264.mk: update update rule
John Donoghue
parents: 4029
diff changeset
17 tail -1
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
18 endef
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
19
4029
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
20 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
21 define $(PKG)_BUILD
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
24 --prefix='$(HOST_PREFIX)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2365
diff changeset
25 $(ENABLE_SHARED_OR_STATIC) \
4029
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
26 --cross-prefix='$(MXE_TOOL_PREFIX)' \
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
27 --disable-lavf \
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
28 --disable-swscale \
1606
903072e0a03d package x264: enable win32 threads
Tony Theodore <tonyt@logyst.com>
parents: 1604
diff changeset
29 --enable-win32thread
1291
ee4f5dd3bcbb Backed out changeset e31f6dbbccdd
Volker Grabsch <vog@notjusthosting.com>
parents: 1288
diff changeset
30 $(MAKE) -C '$(1)' -j 1 uninstall
1288
6393b3951507 fixed position of "make uninstall" in package x264
Volker Grabsch <vog@notjusthosting.com>
parents: 1284
diff changeset
31 $(MAKE) -C '$(1)' -j '$(JOBS)'
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
32 $(MAKE) -C '$(1)' -j 1 install
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
33 endef
4029
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
34 else
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
35 define $(PKG)_BUILD
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
36 cd '$(1)' && ./configure \
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
37 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
38 --prefix='$(HOST_PREFIX)' \
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
39 $(ENABLE_SHARED_OR_STATIC) \
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
40 --disable-lavf \
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
41 --disable-swscale
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
42 $(MAKE) -C '$(1)' -j 1 uninstall
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
43 $(MAKE) -C '$(1)' -j '$(JOBS)'
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
44 $(MAKE) -C '$(1)' -j 1 install
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
45 endef
c4a341e3e014 ffmpeg: updates to work in windows
John Donoghue
parents: 3480
diff changeset
46 endif