summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-11-05 17:59:15 -0800
committerAndrei Gherzan <andrei@gherzan.ro>2018-11-07 14:25:00 +0000
commitf7a2726cdf741e71e1bab81b46ba1e3e20f4b1f7 (patch)
treed77982f03f5b944a18547d533a8027792ef32762
parent0f14d185d387f59ff9f00365ff314cf51e46db58 (diff)
downloadmeta-raspberrypi-f7a2726cdf741e71e1bab81b46ba1e3e20f4b1f7.tar.gz
omxplayer: Forward port patches and fix build
Fixes issue #324 Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/0001-Specify-cc-cxx-and-ld-variables-from-environment.patch5
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch46
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch20
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch17
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/0005-Don-t-require-internet-connection-during-build.patch25
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/0006-Prevent-ffmpeg-configure-compile-race-condition.patch14
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/cross-crompile-ffmpeg.patch12
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/fix-tar-command-with-DIST.patch14
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/use-native-pkg-config.patch12
-rw-r--r--recipes-multimedia/omxplayer/omxplayer_git.bb4
10 files changed, 92 insertions, 77 deletions
diff --git a/recipes-multimedia/omxplayer/omxplayer/0001-Specify-cc-cxx-and-ld-variables-from-environment.patch b/recipes-multimedia/omxplayer/omxplayer/0001-Specify-cc-cxx-and-ld-variables-from-environment.patch
index c7a0fd4..82dfd3e 100644
--- a/recipes-multimedia/omxplayer/omxplayer/0001-Specify-cc-cxx-and-ld-variables-from-environment.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/0001-Specify-cc-cxx-and-ld-variables-from-environment.patch
@@ -14,7 +14,7 @@ Index: git/Makefile.ffmpeg
14=================================================================== 14===================================================================
15--- git.orig/Makefile.ffmpeg 15--- git.orig/Makefile.ffmpeg
16+++ git/Makefile.ffmpeg 16+++ git/Makefile.ffmpeg
17@@ -23,13 +23,16 @@ configure: 17@@ -22,12 +22,15 @@ configure:
18 CFLAGS="$(CFLAGS) ${INCLUDES}" \ 18 CFLAGS="$(CFLAGS) ${INCLUDES}" \
19 LDFLAGS="" \ 19 LDFLAGS="" \
20 ./configure \ 20 ./configure \
@@ -23,7 +23,6 @@ Index: git/Makefile.ffmpeg
23+ --cxx="${CXX}" \ 23+ --cxx="${CXX}" \
24 --extra-cflags="$(FFMPEG_EXTRA_CFLAGS)" \ 24 --extra-cflags="$(FFMPEG_EXTRA_CFLAGS)" \
25 --extra-ldflags="$(FFMPEG_EXTRA_LDFLAGS)" \ 25 --extra-ldflags="$(FFMPEG_EXTRA_LDFLAGS)" \
26 --enable-cross-compile \
27 --enable-shared \ 26 --enable-shared \
28 --disable-static \ 27 --disable-static \
29 --arch=arm \ 28 --arch=arm \
@@ -32,7 +31,7 @@ Index: git/Makefile.ffmpeg
32 --target-os=linux \ 31 --target-os=linux \
33 --disable-hwaccels \ 32 --disable-hwaccels \
34 --enable-parsers \ 33 --enable-parsers \
35@@ -44,7 +47,7 @@ configure: 34@@ -42,7 +45,7 @@ configure:
36 --enable-gpl \ 35 --enable-gpl \
37 --enable-version3 \ 36 --enable-version3 \
38 --enable-protocols \ 37 --enable-protocols \
diff --git a/recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch b/recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch
index 22d83b3..dd1d4f3 100644
--- a/recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch
@@ -15,34 +15,46 @@ Signed-off-by: Jonathan Liu <net147@gmail.com>
15 Makefile.ffmpeg | 2 +- 15 Makefile.ffmpeg | 2 +-
16 2 files changed, 4 insertions(+), 4 deletions(-) 16 2 files changed, 4 insertions(+), 4 deletions(-)
17 17
18diff --git a/Makefile b/Makefile 18Index: git/Makefile
19index 76ee9bf..cb59249 100644 19===================================================================
20--- a/Makefile 20--- git.orig/Makefile
21+++ b/Makefile 21+++ git/Makefile
22@@ -1,9 +1,9 @@ 22@@ -2,9 +2,9 @@ CFLAGS=-pipe -mfloat-abi=hard -mcpu=arm1
23
24 CFLAGS+=-std=c++0x -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST 23 CFLAGS+=-std=c++0x -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST
25 24
26-LDFLAGS+=-L./ -Lffmpeg_compiled/usr/local/lib/ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -lasound 25 LDFLAGS=-L$(SDKSTAGE)/opt/vc/lib/
27+LDFLAGS+=-L./ -Lffmpeg_compiled/usr/lib/ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -lasound 26-LDFLAGS+=-L./ -Lffmpeg_compiled/usr/local/lib/ -lc -lbrcmGLESv2 -lbrcmEGL -lbcm_host -lopenmaxil -lfreetype -lz -lasound
27+LDFLAGS+=-L./ -Lffmpeg_compiled/usr/lib/ -lc -lbrcmGLESv2 -lbrcmEGL -lbcm_host -lopenmaxil -lfreetype -lz -lasound
28 28
29-INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ -I /usr/include/dbus-1.0 -I /usr/lib/arm-linux-gnueabihf/dbus-1.0/include 29-INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ -I /usr/include/dbus-1.0 -I /usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/include/freetype2 -isystem$(SDKSTAGE)/opt/vc/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads
30+INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/include/ -I=/usr/include/dbus-1.0 30+INCLUDES+=-I./ -Ilinux
31 31
32 DIST ?= omxplayer-dist 32 DIST ?= omxplayer-dist
33 33 STRIP ?= strip
34@@ -88,5 +88,5 @@ dist: omxplayer.bin omxplayer.1 34@@ -90,7 +90,7 @@ dist: omxplayer.bin omxplayer.1
35 cp COPYING $(DIST)/usr/share/doc/omxplayer 35 cp COPYING $(DIST)/usr/share/doc/omxplayer
36 cp README.md $(DIST)/usr/share/doc/omxplayer/README 36 cp README.md $(DIST)/usr/share/doc/omxplayer/README
37 cp omxplayer.1 $(DIST)/usr/share/man/man1 37 cp omxplayer.1 $(DIST)/usr/share/man/man1
38- cp -P ffmpeg_compiled/usr/local/lib/*.so* $(DIST)/usr/lib/omxplayer/ 38- cp -P ffmpeg_compiled/usr/local/lib/*.so* $(DIST)/usr/lib/omxplayer/
39+ cp -P ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/ 39+ cp -P ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/
40 cd $(DIST); tar -czf ../$(DIST).tgz * 40 cd $(DIST); tar -czf ../$(DIST).tgz *
41diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg 41
42index 749f47f..d712f6c 100644 42 install:
43--- a/Makefile.ffmpeg 43Index: git/Makefile.ffmpeg
44+++ b/Makefile.ffmpeg 44===================================================================
45@@ -254,5 +254,5 @@ checkout: 45--- git.orig/Makefile.ffmpeg
46+++ git/Makefile.ffmpeg
47@@ -238,7 +238,8 @@ configure:
48 --disable-decoder=xbin \
49 --disable-decoder=idf \
50 --disable-decoder=hevc \
51- --enable-decoder=opus
52+ --enable-decoder=opus \
53+ --disable-stripping
54
55 .PHONY : clean
56 clean:
57@@ -251,5 +252,5 @@ checkout:
46 .PHONY : install 58 .PHONY : install
47 install: 59 install:
48 cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install 60 cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install
diff --git a/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch b/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch
index 2f29066..0b6aafd 100644
--- a/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch
@@ -15,21 +15,11 @@ Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
15 Makefile.ffmpeg | 5 ++--- 15 Makefile.ffmpeg | 5 ++---
16 1 files changed, 2 insertions(+), 3 deletions(-) 16 1 files changed, 2 insertions(+), 3 deletions(-)
17 17
18diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg 18Index: git/Makefile.ffmpeg
19index d712f6c..0dbe87c 100644 19===================================================================
20--- a/Makefile.ffmpeg 20--- git.orig/Makefile.ffmpeg
21+++ b/Makefile.ffmpeg 21+++ git/Makefile.ffmpeg
22@@ -241,7 +241,8 @@ configure: 22@@ -252,5 +252,3 @@ checkout:
23 --disable-decoder=idf \
24 --disable-decoder=hevc \
25 --enable-decoder=opus \
26- --cross-prefix=$(HOST)-
27+ --cross-prefix=$(HOST)- \
28+ --disable-stripping
29
30 .PHONY : clean
31 clean:
32@@ -254,5 +255,3 @@ checkout:
33 .PHONY : install 23 .PHONY : install
34 install: 24 install:
35 cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install 25 cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install
diff --git a/recipes-multimedia/omxplayer/omxplayer/0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch b/recipes-multimedia/omxplayer/omxplayer/0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch
index 338b560..383cdf7 100644
--- a/recipes-multimedia/omxplayer/omxplayer/0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch
@@ -13,12 +13,11 @@ Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
13 Makefile.ffmpeg | 5 ++++- 13 Makefile.ffmpeg | 5 ++++-
14 1 file changed, 4 insertions(+), 1 deletion(-) 14 1 file changed, 4 insertions(+), 1 deletion(-)
15 15
16diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg 16Index: git/Makefile.ffmpeg
17index 0dbe87c..e120d47 100644 17===================================================================
18--- a/Makefile.ffmpeg 18--- git.orig/Makefile.ffmpeg
19+++ b/Makefile.ffmpeg 19+++ git/Makefile.ffmpeg
20@@ -1,6 +1,8 @@ 20@@ -1,5 +1,7 @@
21
22 CFLAGS=-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_HAVE_SBRK -D_LARGEFILE64_SOURCE -DHAVE_CMAKE_CONFIG -DHAVE_VMCS_CONFIG -D_REENTRANT -DUSE_VCHIQ_ARM -DVCHI_BULK_ALIGN=1 -DVCHI_BULK_GRANULARITY=1 -DEGL_SERVER_DISPMANX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__VIDEOCORE4__ -DGRAPHICS_X_VG=1 -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DOMX -DOMX_SKIP64BIT 21 CFLAGS=-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_HAVE_SBRK -D_LARGEFILE64_SOURCE -DHAVE_CMAKE_CONFIG -DHAVE_VMCS_CONFIG -D_REENTRANT -DUSE_VCHIQ_ARM -DVCHI_BULK_ALIGN=1 -DVCHI_BULK_GRANULARITY=1 -DEGL_SERVER_DISPMANX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__VIDEOCORE4__ -DGRAPHICS_X_VG=1 -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DOMX -DOMX_SKIP64BIT
23 22
24+FFMPEG_EXTRA_CFLAGS?=-mfpu=vfp -mfloat-abi=$(FLOAT) -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog 23+FFMPEG_EXTRA_CFLAGS?=-mfpu=vfp -mfloat-abi=$(FLOAT) -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog
@@ -26,13 +25,13 @@ index 0dbe87c..e120d47 100644
26 WORK=$(PWD) 25 WORK=$(PWD)
27 26
28 .PHONY : all 27 .PHONY : all
29@@ -21,7 +23,8 @@ configure: 28@@ -20,7 +22,8 @@ configure:
30 CFLAGS="$(CFLAGS) ${INCLUDES}" \ 29 CFLAGS="$(CFLAGS) ${INCLUDES}" \
31 LDFLAGS="" \ 30 LDFLAGS="" \
32 ./configure \ 31 ./configure \
33- --extra-cflags="-mfpu=vfp -mfloat-abi=$(FLOAT) -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog" \ 32- --extra-cflags="-mfpu=vfp -mfloat-abi=hard -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog" \
34+ --extra-cflags="$(FFMPEG_EXTRA_CFLAGS)" \ 33+ --extra-cflags="$(FFMPEG_EXTRA_CFLAGS)" \
35+ --extra-ldflags="$(FFMPEG_EXTRA_LDFLAGS)" \ 34+ --extra-ldflags="$(FFMPEG_EXTRA_LDFLAGS)" \
36 --enable-cross-compile \
37 --enable-shared \ 35 --enable-shared \
38 --disable-static \ 36 --disable-static \
37 --arch=arm \
diff --git a/recipes-multimedia/omxplayer/omxplayer/0005-Don-t-require-internet-connection-during-build.patch b/recipes-multimedia/omxplayer/omxplayer/0005-Don-t-require-internet-connection-during-build.patch
index 14f9efe..f6abd7b 100644
--- a/recipes-multimedia/omxplayer/omxplayer/0005-Don-t-require-internet-connection-during-build.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/0005-Don-t-require-internet-connection-during-build.patch
@@ -17,11 +17,11 @@ Upstream-status: Inappropriate
17 Makefile.ffmpeg | 2 +- 17 Makefile.ffmpeg | 2 +-
18 2 files changed, 3 insertions(+), 5 deletions(-) 18 2 files changed, 3 insertions(+), 5 deletions(-)
19 19
20diff --git a/Makefile b/Makefile 20Index: git/Makefile
21index 60501b1..6471f0f 100644 21===================================================================
22--- a/Makefile 22--- git.orig/Makefile
23+++ b/Makefile 23+++ git/Makefile
24@@ -79,14 +79,12 @@ ffmpeg: 24@@ -81,17 +81,14 @@ ffmpeg:
25 make -f Makefile.ffmpeg 25 make -f Makefile.ffmpeg
26 make -f Makefile.ffmpeg install 26 make -f Makefile.ffmpeg install
27 27
@@ -37,13 +37,14 @@ index 60501b1..6471f0f 100644
37- cp omxplayer.1 $(DIST)/usr/share/man/man1 37- cp omxplayer.1 $(DIST)/usr/share/man/man1
38 cp -P ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/ 38 cp -P ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/
39- tar -czf omxplayer-dist.tar.gz $(DIST) 39- tar -czf omxplayer-dist.tar.gz $(DIST)
40\ No newline at end of file 40
41+ tar -czf omxplayer-dist.tar.gz $(DIST) 41 install:
42diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg 42 cp -r $(DIST)/* /
43index 22d495c..8651724 100644 43Index: git/Makefile.ffmpeg
44--- a/Makefile.ffmpeg 44===================================================================
45+++ b/Makefile.ffmpeg 45--- git.orig/Makefile.ffmpeg
46@@ -6,7 +6,7 @@ FFMPEG_EXTRA_CFLAGS?=-mfpu=vfp -mfloat-abi=$(FLOAT) -mno-apcs-stack-check -mstru 46+++ git/Makefile.ffmpeg
47@@ -5,7 +5,7 @@ FFMPEG_EXTRA_CFLAGS?=-mfpu=vfp -mfloat-a
47 WORK=$(PWD) 48 WORK=$(PWD)
48 49
49 .PHONY : all 50 .PHONY : all
diff --git a/recipes-multimedia/omxplayer/omxplayer/0006-Prevent-ffmpeg-configure-compile-race-condition.patch b/recipes-multimedia/omxplayer/omxplayer/0006-Prevent-ffmpeg-configure-compile-race-condition.patch
index 9413f92..890adde 100644
--- a/recipes-multimedia/omxplayer/omxplayer/0006-Prevent-ffmpeg-configure-compile-race-condition.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/0006-Prevent-ffmpeg-configure-compile-race-condition.patch
@@ -13,11 +13,11 @@ Upstream-status: Pending
13 Makefile.ffmpeg | 4 ++-- 13 Makefile.ffmpeg | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-) 14 1 file changed, 2 insertions(+), 2 deletions(-)
15 15
16diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg 16Index: git/Makefile.ffmpeg
17index 8651724..619c49a 100644 17===================================================================
18--- a/Makefile.ffmpeg 18--- git.orig/Makefile.ffmpeg
19+++ b/Makefile.ffmpeg 19+++ git/Makefile.ffmpeg
20@@ -6,7 +6,7 @@ FFMPEG_EXTRA_CFLAGS?=-mfpu=vfp -mfloat-abi=$(FLOAT) -mno-apcs-stack-check -mstru 20@@ -5,7 +5,7 @@ FFMPEG_EXTRA_CFLAGS?=-mfpu=vfp -mfloat-a
21 WORK=$(PWD) 21 WORK=$(PWD)
22 22
23 .PHONY : all 23 .PHONY : all
@@ -26,12 +26,12 @@ index 8651724..619c49a 100644
26 26
27 .PHONY : copy 27 .PHONY : copy
28 copy: 28 copy:
29@@ -14,7 +14,7 @@ copy: 29@@ -13,7 +13,7 @@ copy:
30 $(HOST)-strip *.so* 30 $(HOST)-strip *.so*
31 31
32 .PHONY : compile 32 .PHONY : compile
33-compile: 33-compile:
34+compile: configure 34+compile: configure
35 +$(MAKE) -C ffmpeg 35 +$(MAKE) -j$(shell nproc) -C ffmpeg
36 36
37 .PHONY : configure 37 .PHONY : configure
diff --git a/recipes-multimedia/omxplayer/omxplayer/cross-crompile-ffmpeg.patch b/recipes-multimedia/omxplayer/omxplayer/cross-crompile-ffmpeg.patch
new file mode 100644
index 0000000..20ed7c7
--- /dev/null
+++ b/recipes-multimedia/omxplayer/omxplayer/cross-crompile-ffmpeg.patch
@@ -0,0 +1,12 @@
1Index: git/Makefile.ffmpeg
2===================================================================
3--- git.orig/Makefile.ffmpeg
4+++ git/Makefile.ffmpeg
5@@ -22,6 +22,7 @@ configure:
6 CFLAGS="$(CFLAGS) ${INCLUDES}" \
7 LDFLAGS="" \
8 ./configure \
9+ --enable-cross-compile \
10 --ld="${CCLD}" \
11 --cc="${CC}" \
12 --cxx="${CXX}" \
diff --git a/recipes-multimedia/omxplayer/omxplayer/fix-tar-command-with-DIST.patch b/recipes-multimedia/omxplayer/omxplayer/fix-tar-command-with-DIST.patch
index 2e9168d..70859aa 100644
--- a/recipes-multimedia/omxplayer/omxplayer/fix-tar-command-with-DIST.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/fix-tar-command-with-DIST.patch
@@ -17,14 +17,16 @@ Signed-off-by: Jonathan Liu <net147@gmail.com>
17 Makefile | 2 +- 17 Makefile | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-) 18 1 file changed, 1 insertion(+), 1 deletion(-)
19 19
20diff --git a/Makefile b/Makefile 20Index: git/Makefile
21index cb59249..60501b1 100644 21===================================================================
22--- a/Makefile 22--- git.orig/Makefile
23+++ b/Makefile 23+++ git/Makefile
24@@ -89,4 +89,4 @@ dist: omxplayer.bin omxplayer.1 24@@ -91,7 +91,7 @@ dist: omxplayer.bin omxplayer.1
25 cp README.md $(DIST)/usr/share/doc/omxplayer/README 25 cp README.md $(DIST)/usr/share/doc/omxplayer/README
26 cp omxplayer.1 $(DIST)/usr/share/man/man1 26 cp omxplayer.1 $(DIST)/usr/share/man/man1
27 cp -P ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/ 27 cp -P ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/
28- cd $(DIST); tar -czf ../$(DIST).tgz * 28- cd $(DIST); tar -czf ../$(DIST).tgz *
29+ tar -czf omxplayer-dist.tar.gz $(DIST) 29+ tar -czf omxplayer-dist.tar.gz $(DIST)
30\ No newline at end of file 30
31 install:
32 cp -r $(DIST)/* /
diff --git a/recipes-multimedia/omxplayer/omxplayer/use-native-pkg-config.patch b/recipes-multimedia/omxplayer/omxplayer/use-native-pkg-config.patch
index 4d599c7..e580470 100644
--- a/recipes-multimedia/omxplayer/omxplayer/use-native-pkg-config.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/use-native-pkg-config.patch
@@ -12,14 +12,14 @@ Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
12 Makefile.ffmpeg | 3 ++- 12 Makefile.ffmpeg | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-) 13 1 file changed, 2 insertions(+), 1 deletion(-)
14 14
15diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg 15Index: git/Makefile.ffmpeg
16index e120d47..22d495c 100644 16===================================================================
17--- a/Makefile.ffmpeg 17--- git.orig/Makefile.ffmpeg
18+++ b/Makefile.ffmpeg 18+++ git/Makefile.ffmpeg
19@@ -245,7 +245,8 @@ configure: 19@@ -242,7 +242,8 @@ configure:
20 --disable-decoder=idf \
20 --disable-decoder=hevc \ 21 --disable-decoder=hevc \
21 --enable-decoder=opus \ 22 --enable-decoder=opus \
22 --cross-prefix=$(HOST)- \
23- --disable-stripping 23- --disable-stripping
24+ --disable-stripping \ 24+ --disable-stripping \
25+ --pkg-config=pkg-config 25+ --pkg-config=pkg-config
diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb
index 3c9800a..983abf7 100644
--- a/recipes-multimedia/omxplayer/omxplayer_git.bb
+++ b/recipes-multimedia/omxplayer/omxplayer_git.bb
@@ -23,7 +23,6 @@ SRCREV_ffmpeg = "afa34cb36edca0ff809b7e58474bbce12271ecba"
23 23
24SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \ 24SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \
25 git://source.ffmpeg.org/ffmpeg;branch=release/3.1;protocol=git;depth=1;name=ffmpeg;destsuffix=git/ffmpeg \ 25 git://source.ffmpeg.org/ffmpeg;branch=release/3.1;protocol=git;depth=1;name=ffmpeg;destsuffix=git/ffmpeg \
26 file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \
27 file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ 26 file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \
28 file://0003-Remove-strip-step-in-Makefile.patch \ 27 file://0003-Remove-strip-step-in-Makefile.patch \
29 file://0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch \ 28 file://0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch \
@@ -35,10 +34,11 @@ SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master
35 file://0001-openssl-Support-version-1.1.0.patch;patchdir=ffmpeg \ 34 file://0001-openssl-Support-version-1.1.0.patch;patchdir=ffmpeg \
36 file://0001-swresample-arm-avoid-conditional-branch-to-PLT-in-TH.patch;patchdir=ffmpeg \ 35 file://0001-swresample-arm-avoid-conditional-branch-to-PLT-in-TH.patch;patchdir=ffmpeg \
37 file://0001-rtmpdh-Stop-using-OpenSSL-provided-DH-functions-to-s.patch;patchdir=ffmpeg \ 36 file://0001-rtmpdh-Stop-using-OpenSSL-provided-DH-functions-to-s.patch;patchdir=ffmpeg \
37 file://cross-crompile-ffmpeg.patch \
38 " 38 "
39S = "${WORKDIR}/git" 39S = "${WORKDIR}/git"
40 40
41COMPATIBLE_MACHINE ?= "null" 41COMPATIBLE_HOST ?= "null"
42COMPATIBLE_HOST_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', 'null', '(.*)', d)}" 42COMPATIBLE_HOST_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', 'null', '(.*)', d)}"
43 43
44def cpu(d): 44def cpu(d):