diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2014-01-19 20:35:29 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2014-01-19 20:38:06 +0200 |
commit | ca8a3eeaafa612898a266e9f5e8fb45b86ddd493 (patch) | |
tree | ce287bcaa40f13dd44fcffffd08e1d40809f6c97 | |
parent | 30e39729121303e36ccef36218b30558bcdedbaa (diff) | |
download | meta-raspberrypi-ca8a3eeaafa612898a266e9f5e8fb45b86ddd493.tar.gz |
omxplayer: Update to remote HEAD
* Rebase 0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch
to apply on HEAD.
* Add fix-tar-command-with-DIST.patch which reverts a change in tar command
which breaks compilation if DIST is an absolute path.
* Avoid stripping omxplayer binary (let build system take care of strpping).
Change-Id: I95d70094b0069ad19f7d445abaf421756776c4c7
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
3 files changed, 35 insertions, 17 deletions
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 4976995..7f7927f 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 | |||
@@ -8,18 +8,16 @@ Don't search for libraries and headers in /usr/local. | |||
8 | Upstream-Status: Inappropriate [embedded specific] | 8 | Upstream-Status: Inappropriate [embedded specific] |
9 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | 9 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> |
10 | 10 | ||
11 | Updated patch to apply to c0dd9502ed2c43c487674939195c69680f3d98b0 revision | 11 | Index: git/Makefile |
12 | 12 | =================================================================== | |
13 | diff --git a/Makefile b/Makefile | 13 | --- git.orig/Makefile |
14 | index 65f7637..5dc1832 100644 | 14 | +++ git/Makefile |
15 | --- a/Makefile | ||
16 | +++ b/Makefile | ||
17 | @@ -1,9 +1,9 @@ | 15 | @@ -1,9 +1,9 @@ |
18 | 16 | ||
19 | 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 | 17 | 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 |
20 | 18 | ||
21 | -LDFLAGS+=-L./ -ldbus-1 -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -Lffmpeg_compiled/usr/local/lib/ | 19 | -LDFLAGS+=-L./ -Lffmpeg_compiled/usr/local/lib/ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz |
22 | +LDFLAGS+=-L./ -ldbus-1 -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -Lffmpeg_compiled/usr/lib/ | 20 | +LDFLAGS+=-L./ -Lffmpeg_compiled/usr/lib/ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz |
23 | 21 | ||
24 | -INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ | 22 | -INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ |
25 | +INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/include/ | 23 | +INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/include/ |
@@ -32,11 +30,11 @@ index 65f7637..5dc1832 100644 | |||
32 | cp README.md $(DIST)/usr/share/doc/README | 30 | cp README.md $(DIST)/usr/share/doc/README |
33 | - cp -a ffmpeg_compiled/usr/local/lib/*.so* $(DIST)/usr/lib/omxplayer/ | 31 | - cp -a ffmpeg_compiled/usr/local/lib/*.so* $(DIST)/usr/lib/omxplayer/ |
34 | + cp -a ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/ | 32 | + cp -a ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/ |
35 | tar -czf omxplayer-dist.tar.gz $(DIST) | 33 | cd $(DIST); tar -czf ../$(DIST).tgz * |
36 | diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg | 34 | Index: git/Makefile.ffmpeg |
37 | index 3b31a82..5f30b51 100644 | 35 | =================================================================== |
38 | --- a/Makefile.ffmpeg | 36 | --- git.orig/Makefile.ffmpeg |
39 | +++ b/Makefile.ffmpeg | 37 | +++ git/Makefile.ffmpeg |
40 | @@ -248,5 +248,5 @@ checkout: | 38 | @@ -248,5 +248,5 @@ checkout: |
41 | 39 | ||
42 | install: | 40 | install: |
diff --git a/recipes-multimedia/omxplayer/omxplayer/fix-tar-command-with-DIST.patch b/recipes-multimedia/omxplayer/omxplayer/fix-tar-command-with-DIST.patch new file mode 100644 index 0000000..5b3bd21 --- /dev/null +++ b/recipes-multimedia/omxplayer/omxplayer/fix-tar-command-with-DIST.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Revert the tar command change introduced in: | ||
2 | https://github.com/popcornmix/omxplayer/commit/201c77973155861e60492e45d35467b19b69c1c4 | ||
3 | |||
4 | This fails if DIST is an absolute path. The old command was working just fine. | ||
5 | |||
6 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
7 | |||
8 | Index: git/Makefile | ||
9 | =================================================================== | ||
10 | --- git.orig/Makefile | ||
11 | +++ git/Makefile | ||
12 | @@ -71,4 +71,4 @@ dist: omxplayer.bin | ||
13 | cp COPYING $(DIST)/usr/share/doc/ | ||
14 | cp README.md $(DIST)/usr/share/doc/README | ||
15 | cp -a ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/ | ||
16 | - cd $(DIST); tar -czf ../$(DIST).tgz * | ||
17 | + tar -czf omxplayer-dist.tar.gz $(DIST) | ||
18 | \ No newline at end of file | ||
diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb index 8d444fd..33202dc 100644 --- a/recipes-multimedia/omxplayer/omxplayer_git.bb +++ b/recipes-multimedia/omxplayer/omxplayer_git.bb | |||
@@ -8,14 +8,16 @@ LICENSE = "GPLv2" | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
9 | 9 | ||
10 | DEPENDS = "libpcre libav virtual/egl boost freetype dbus" | 10 | DEPENDS = "libpcre libav virtual/egl boost freetype dbus" |
11 | PR = "r2" | 11 | PR = "r3" |
12 | 12 | ||
13 | SRCREV = "74f4be222be05d3ea50be9f5a70846f7c0e9df6e" | 13 | SRCREV = "f666a5dfbec36e2af7cd965558ac8643c86277a6" |
14 | SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \ | 14 | SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \ |
15 | file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \ | 15 | file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \ |
16 | file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ | 16 | file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ |
17 | file://0003-Remove-strip-step-in-Makefile.patch \ | 17 | file://0003-Remove-strip-step-in-Makefile.patch \ |
18 | file://mktemp-compatible-with-busybox.patch" | 18 | file://mktemp-compatible-with-busybox.patch \ |
19 | file://fix-tar-command-with-DIST.patch \ | ||
20 | " | ||
19 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
20 | 22 | ||
21 | COMPATIBLE_MACHINE = "raspberrypi" | 23 | COMPATIBLE_MACHINE = "raspberrypi" |
@@ -55,7 +57,7 @@ do_compile() { | |||
55 | } | 57 | } |
56 | 58 | ||
57 | do_install() { | 59 | do_install() { |
58 | oe_runmake dist | 60 | oe_runmake STRIP='echo skipping strip' dist |
59 | mkdir -p ${D}/usr/share/fonts/truetype/freefont/ | 61 | mkdir -p ${D}/usr/share/fonts/truetype/freefont/ |
60 | install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/ | 62 | install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/ |
61 | } | 63 | } |