diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2013-08-20 19:42:41 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2013-08-21 15:55:05 +0300 |
commit | ca4e4659f667443e34415a42c39e1bf8cd2e3a71 (patch) | |
tree | cd4ad09ee19d028a7358fb1226c0d31905ed1c8c | |
parent | 78d3a9d68d801c1f276c4c565793562688d67bb0 (diff) | |
download | meta-raspberrypi-ca4e4659f667443e34415a42c39e1bf8cd2e3a71.tar.gz |
omxplayer: Update to 2013-08-20 master's snapshot
* Use DIST for install path as used in package's makefile.
* Set FLOAT based on callconvention-hard TUNE_FEATURE.
* Add an include path to avoid a header error.
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r-- | recipes-multimedia/omxplayer/omxplayer/0001-Remove-Makefile.include-which-includes-hardcoded.patch | 84 | ||||
-rw-r--r-- | recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch | 49 | ||||
-rw-r--r-- | recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch (renamed from recipes-multimedia/omxplayer/omxplayer/don-t-strip-while-installing.patch) | 23 | ||||
-rw-r--r-- | recipes-multimedia/omxplayer/omxplayer/libraries-are-installed-in-usr-lib.patch | 37 | ||||
-rw-r--r-- | recipes-multimedia/omxplayer/omxplayer/remove-hardcoded-directory-omxplayer-dist.patch | 32 | ||||
-rw-r--r-- | recipes-multimedia/omxplayer/omxplayer_git.bb | 24 |
6 files changed, 161 insertions, 88 deletions
diff --git a/recipes-multimedia/omxplayer/omxplayer/0001-Remove-Makefile.include-which-includes-hardcoded.patch b/recipes-multimedia/omxplayer/omxplayer/0001-Remove-Makefile.include-which-includes-hardcoded.patch new file mode 100644 index 0000000..b68e351 --- /dev/null +++ b/recipes-multimedia/omxplayer/omxplayer/0001-Remove-Makefile.include-which-includes-hardcoded.patch | |||
@@ -0,0 +1,84 @@ | |||
1 | From a2a28fb7c4e8354cc0f90454e9bd151c16a6bf8b Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrei Gherzan <andrei@gherzan.ro> | ||
3 | Date: Tue, 20 Aug 2013 16:10:51 +0300 | ||
4 | Subject: [PATCH] Remove Makefile.include which includes hardcoded | ||
5 | |||
6 | Remove Makefile.include which includes hardcoded paths and rely on | ||
7 | variables provided by build system. | ||
8 | |||
9 | Upstream-Status: Inappropriate [embedded specific] | ||
10 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
11 | --- | ||
12 | Makefile | 2 -- | ||
13 | Makefile.ffmpeg | 2 -- | ||
14 | Makefile.include | 38 -------------------------------------- | ||
15 | 3 files changed, 42 deletions(-) | ||
16 | delete mode 100644 Makefile.include | ||
17 | |||
18 | diff --git a/Makefile b/Makefile | ||
19 | index 519048a..1faa779 100644 | ||
20 | --- a/Makefile | ||
21 | +++ b/Makefile | ||
22 | @@ -1,5 +1,3 @@ | ||
23 | -include Makefile.include | ||
24 | - | ||
25 | CFLAGS+=-std=c++0x -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_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 | ||
26 | |||
27 | LDFLAGS+=-L./ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -Lffmpeg_compiled/usr/local/lib/ | ||
28 | diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg | ||
29 | index 6ec94af..4297b1f 100644 | ||
30 | --- a/Makefile.ffmpeg | ||
31 | +++ b/Makefile.ffmpeg | ||
32 | @@ -1,5 +1,3 @@ | ||
33 | -include Makefile.include | ||
34 | - | ||
35 | CFLAGS=-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_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 | ||
36 | |||
37 | WORK=$(PWD) | ||
38 | diff --git a/Makefile.include b/Makefile.include | ||
39 | deleted file mode 100644 | ||
40 | index 501fd4f..0000000 | ||
41 | --- a/Makefile.include | ||
42 | +++ /dev/null | ||
43 | @@ -1,38 +0,0 @@ | ||
44 | -USE_BUILDROOT=1 | ||
45 | -FLOAT=hard | ||
46 | - | ||
47 | -ifeq ($(USE_BUILDROOT), 1) | ||
48 | -BUILDROOT :=/opt/xbmc-bcm/buildroot | ||
49 | -SDKSTAGE :=$(BUILDROOT)/output/staging | ||
50 | -TARGETFS :=$(BUILDROOT)/output/target | ||
51 | -TOOLCHAIN :=$(BUILDROOT)/output/host/usr/ | ||
52 | -HOST :=arm-unknown-linux-gnueabi | ||
53 | -SYSROOT :=$(BUILDROOT)/output/host/usr/arm-unknown-linux-gnueabi/sysroot | ||
54 | -else | ||
55 | -BUILDROOT :=/opt/bcm-rootfs | ||
56 | -SDKSTAGE :=/opt/bcm-rootfs | ||
57 | -TARGETFS :=/opt/bcm-rootfs | ||
58 | -TOOLCHAIN :=/usr/local/bcm-gcc | ||
59 | -HOST :=bcm2708 | ||
60 | -SYSROOT :=$(TOOLCHAIN)/arm-bcm2708-linux-gnueabi/sys-root | ||
61 | -endif | ||
62 | - | ||
63 | -JOBS=7 | ||
64 | - | ||
65 | -CFLAGS := -isystem$(PREFIX)/include | ||
66 | -CXXFLAGS := $(CFLAGS) | ||
67 | -CPPFLAGS := $(CFLAGS) | ||
68 | -LDFLAGS := -L$(BUILDROOT)/lib | ||
69 | -LD := $(TOOLCHAIN)/bin/$(HOST)-ld --sysroot=$(SYSROOT) | ||
70 | -CC := $(TOOLCHAIN)/bin/$(HOST)-gcc --sysroot=$(SYSROOT) | ||
71 | -CXX := $(TOOLCHAIN)/bin/$(HOST)-g++ --sysroot=$(SYSROOT) | ||
72 | -OBJDUMP := $(TOOLCHAIN)/bin/$(HOST)-objdump | ||
73 | -RANLIB := $(TOOLCHAIN)/bin/$(HOST)-ranlib | ||
74 | -STRIP := $(TOOLCHAIN)/bin/$(HOST)-strip | ||
75 | -AR := $(TOOLCHAIN)/bin/$(HOST)-ar | ||
76 | -CXXCP := $(CXX) -E | ||
77 | -PATH := $(PREFIX)/bin:$(BUILDROOT)/output/host/usr/bin:$(PATH) | ||
78 | - | ||
79 | -CFLAGS += -pipe -mfloat-abi=$(FLOAT) -mcpu=arm1176jzf-s -fomit-frame-pointer -mabi=aapcs-linux -mtune=arm1176jzf-s -mfpu=vfp -Wno-psabi -mno-apcs-stack-check -O3 -mstructure-size-boundary=32 -mno-sched-prolog | ||
80 | -LDFLAGS += -L$(SDKSTAGE)/lib -L$(SDKSTAGE)/usr/lib -L$(SDKSTAGE)/opt/vc/lib/ | ||
81 | -INCLUDES += -isystem$(SDKSTAGE)/usr/include -isystem$(SDKSTAGE)/opt/vc/include -isystem$(SYSROOT)/usr/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -isystem$(SDKSTAGE)/usr/include/freetype2 | ||
82 | -- | ||
83 | 1.7.9.5 | ||
84 | |||
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 new file mode 100644 index 0000000..00a1f29 --- /dev/null +++ b/recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | From 13b525667a6ab7af2354ffd6208e490349669798 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrei Gherzan <andrei@gherzan.ro> | ||
3 | Date: Tue, 20 Aug 2013 16:15:15 +0300 | ||
4 | Subject: [PATCH 2/3] Libraries and headers from ffmpeg are installed in /usr. | ||
5 | |||
6 | Don't search for libraries and headers in /usr/local. | ||
7 | |||
8 | Upstream-Status: Inappropriate [embedded specific] | ||
9 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
10 | --- | ||
11 | Makefile | 6 +++--- | ||
12 | Makefile.ffmpeg | 2 +- | ||
13 | 2 files changed, 4 insertions(+), 4 deletions(-) | ||
14 | |||
15 | diff --git a/Makefile b/Makefile | ||
16 | index 1faa779..7b639f1 100644 | ||
17 | --- a/Makefile | ||
18 | +++ b/Makefile | ||
19 | @@ -1,7 +1,7 @@ | ||
20 | CFLAGS+=-std=c++0x -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_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 | ||
21 | |||
22 | -LDFLAGS+=-L./ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -Lffmpeg_compiled/usr/local/lib/ | ||
23 | -INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ | ||
24 | +LDFLAGS+=-L./ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -Lffmpeg_compiled/usr/lib/ | ||
25 | +INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/include/ | ||
26 | |||
27 | DIST ?= omxplayer-dist | ||
28 | |||
29 | @@ -66,5 +66,5 @@ dist: omxplayer.bin | ||
30 | cp omxplayer omxplayer.bin $(DIST)/usr/bin | ||
31 | cp COPYING $(DIST)/usr/share/doc/ | ||
32 | cp README.md $(DIST)/usr/share/doc/README | ||
33 | - cp -a ffmpeg_compiled/usr/local/lib/*.so* $(DIST)/usr/lib/omxplayer/ | ||
34 | + cp -a ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/ | ||
35 | tar -czf omxplayer-dist.tar.gz $(DIST) | ||
36 | diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg | ||
37 | index 6ec94af..13e6c09 100644 | ||
38 | --- a/Makefile.ffmpeg | ||
39 | +++ b/Makefile.ffmpeg | ||
40 | @@ -64,5 +64,5 @@ checkout: | ||
41 | |||
42 | install: | ||
43 | cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install | ||
44 | - $(HOST)-strip ffmpeg_compiled/usr/local/lib/*.so | ||
45 | + $(HOST)-strip ffmpeg_compiled/usr/lib/*.so | ||
46 | |||
47 | -- | ||
48 | 1.7.9.5 | ||
49 | |||
diff --git a/recipes-multimedia/omxplayer/omxplayer/don-t-strip-while-installing.patch b/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch index 4f12cc0..df15763 100644 --- a/recipes-multimedia/omxplayer/omxplayer/don-t-strip-while-installing.patch +++ b/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch | |||
@@ -1,3 +1,8 @@ | |||
1 | From aa424d5bcbf40c69acb13de3cb6c67688f0c9046 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrei Gherzan <andrei@gherzan.ro> | ||
3 | Date: Tue, 20 Aug 2013 16:17:06 +0300 | ||
4 | Subject: [PATCH 3/3] Remove strip step in Makefile | ||
5 | |||
1 | Build system will strip binaries so remove strip step in Makefile. | 6 | Build system will strip binaries so remove strip step in Makefile. |
2 | Avoid warnings/errors like: | 7 | Avoid warnings/errors like: |
3 | WARNING: File '/usr/lib/omxplayer/libavutil.so.51.56.100' from | 8 | WARNING: File '/usr/lib/omxplayer/libavutil.so.51.56.100' from |
@@ -5,12 +10,15 @@ omxplayer was already stripped, this will prevent future debugging! | |||
5 | 10 | ||
6 | Upstream-Status: Inappropriate [embedded specific] | 11 | Upstream-Status: Inappropriate [embedded specific] |
7 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | 12 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> |
13 | --- | ||
14 | Makefile.ffmpeg | 4 ++-- | ||
15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
8 | 16 | ||
9 | Index: git/Makefile.ffmpeg | 17 | diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg |
10 | =================================================================== | 18 | index 13e6c09..51c9514 100644 |
11 | --- git.orig/Makefile.ffmpeg 2012-08-26 15:38:45.099379852 +0300 | 19 | --- a/Makefile.ffmpeg |
12 | +++ git/Makefile.ffmpeg 2012-08-26 15:46:51.913055176 +0300 | 20 | +++ b/Makefile.ffmpeg |
13 | @@ -52,7 +52,8 @@ | 21 | @@ -53,7 +53,8 @@ configure: |
14 | --enable-hardcoded-tables \ | 22 | --enable-hardcoded-tables \ |
15 | --disable-runtime-cpudetect \ | 23 | --disable-runtime-cpudetect \ |
16 | --disable-debug \ | 24 | --disable-debug \ |
@@ -20,9 +28,12 @@ Index: git/Makefile.ffmpeg | |||
20 | 28 | ||
21 | clean: | 29 | clean: |
22 | @rm -rf ffmpeg | 30 | @rm -rf ffmpeg |
23 | @@ -63,5 +64,4 @@ | 31 | @@ -64,5 +65,4 @@ checkout: |
24 | 32 | ||
25 | install: | 33 | install: |
26 | cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install | 34 | cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install |
27 | - $(HOST)-strip ffmpeg_compiled/usr/lib/*.so | 35 | - $(HOST)-strip ffmpeg_compiled/usr/lib/*.so |
28 | 36 | ||
37 | -- | ||
38 | 1.7.9.5 | ||
39 | |||
diff --git a/recipes-multimedia/omxplayer/omxplayer/libraries-are-installed-in-usr-lib.patch b/recipes-multimedia/omxplayer/omxplayer/libraries-are-installed-in-usr-lib.patch deleted file mode 100644 index 1126bfb..0000000 --- a/recipes-multimedia/omxplayer/omxplayer/libraries-are-installed-in-usr-lib.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | Libraries and headers from ffmpeg are installed in usr/lib. | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
5 | |||
6 | Index: git/Makefile.ffmpeg | ||
7 | =================================================================== | ||
8 | --- git.orig/Makefile.ffmpeg 2012-08-26 02:46:40.380518313 +0300 | ||
9 | +++ git/Makefile.ffmpeg 2012-08-26 02:46:40.512511177 +0300 | ||
10 | @@ -63,5 +63,5 @@ | ||
11 | |||
12 | install: | ||
13 | cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install | ||
14 | - $(HOST)-strip ffmpeg_compiled/usr/local/lib/*.so | ||
15 | + $(HOST)-strip ffmpeg_compiled/usr/lib/*.so | ||
16 | |||
17 | Index: git/Makefile | ||
18 | =================================================================== | ||
19 | --- git.orig/Makefile 2012-08-26 02:52:11.578611542 +0300 | ||
20 | +++ git/Makefile 2012-08-26 02:52:53.952320465 +0300 | ||
21 | @@ -1,7 +1,7 @@ | ||
22 | CFLAGS+=-std=c++0x -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_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 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST | ||
23 | |||
24 | -LDFLAGS+=-L./ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -Lffmpeg_compiled/usr/local/lib/ | ||
25 | -INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ | ||
26 | +LDFLAGS+=-L./ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -Lffmpeg_compiled/usr/lib/ | ||
27 | +INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/include/ | ||
28 | |||
29 | SRC=linux/XMemUtils.cpp \ | ||
30 | utils/log.cpp \ | ||
31 | @@ -63,5 +63,5 @@ | ||
32 | cp omxplayer omxplayer.bin omxplayer-dist/usr/usr/bin | ||
33 | cp COPYING omxplayer-dist/usr/share/doc/ | ||
34 | cp README.md omxplayer-dist/usr/share/doc/README | ||
35 | - cp -a ffmpeg_compiled/usr/local/lib/*.so* omxplayer-dist/usr/lib/omxplayer/ | ||
36 | + cp -a ffmpeg_compiled/usr/lib/*.so* omxplayer-dist/usr/lib/omxplayer/ | ||
37 | tar -czf omxplayer-dist.tar.gz omxplayer-dist | ||
diff --git a/recipes-multimedia/omxplayer/omxplayer/remove-hardcoded-directory-omxplayer-dist.patch b/recipes-multimedia/omxplayer/omxplayer/remove-hardcoded-directory-omxplayer-dist.patch deleted file mode 100644 index 99fbbf8..0000000 --- a/recipes-multimedia/omxplayer/omxplayer/remove-hardcoded-directory-omxplayer-dist.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | Modify install rule to use /usr/bin path and not /usr/usr/bin for | ||
2 | installing omxplayer binary and script. | ||
3 | As well, add a variable to let the user specify where to install | ||
4 | the files. | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
8 | |||
9 | Index: git/Makefile | ||
10 | =================================================================== | ||
11 | --- git.orig/Makefile 2012-08-26 05:03:31.710678243 +0300 | ||
12 | +++ git/Makefile 2012-08-26 05:03:11.000000000 +0300 | ||
13 | @@ -59,11 +57,11 @@ | ||
14 | make -f Makefile.ffmpeg install | ||
15 | |||
16 | dist: omxplayer.bin | ||
17 | - mkdir -p omxplayer-dist/usr/lib/omxplayer | ||
18 | - mkdir -p omxplayer-dist/usr/usr/bin | ||
19 | - mkdir -p omxplayer-dist/usr/share/doc | ||
20 | - cp omxplayer omxplayer.bin omxplayer-dist/usr/usr/bin | ||
21 | - cp COPYING omxplayer-dist/usr/share/doc/ | ||
22 | - cp README.md omxplayer-dist/usr/share/doc/README | ||
23 | - cp -a ffmpeg_compiled/usr/lib/*.so* omxplayer-dist/usr/lib/omxplayer/ | ||
24 | - tar -czf omxplayer-dist.tar.gz omxplayer-dist | ||
25 | + mkdir -p $(DEST)/usr/lib/omxplayer | ||
26 | + mkdir -p $(DEST)/usr/bin | ||
27 | + mkdir -p $(DEST)/usr/share/doc | ||
28 | + cp omxplayer omxplayer.bin $(DEST)/usr/bin | ||
29 | + cp COPYING $(DEST)/usr/share/doc/ | ||
30 | + cp README.md $(DEST)/usr/share/doc/README | ||
31 | + cp -a ffmpeg_compiled/usr/lib/*.so* $(DEST)/usr/lib/omxplayer/ | ||
32 | + tar -czf omxplayer-dist.tar.gz $(DEST) | ||
diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb index b637ba6..a456026 100644 --- a/recipes-multimedia/omxplayer/omxplayer_git.bb +++ b/recipes-multimedia/omxplayer/omxplayer_git.bb | |||
@@ -7,29 +7,26 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | |||
7 | 7 | ||
8 | DEPENDS = "libpcre libav virtual/egl boost freetype" | 8 | DEPENDS = "libpcre libav virtual/egl boost freetype" |
9 | 9 | ||
10 | PR = "r0" | 10 | PR = "r1" |
11 | 11 | ||
12 | SRCREV = "231c08b42005e3de565013bc1cee18bd5a349c1f" | 12 | SRCREV = "dae98a8bba9dc7410b0621134f6ebdb406adb1bd" |
13 | SRC_URI = "git://github.com/huceke/omxplayer.git;protocol=git;branch=master \ | 13 | SRC_URI = "git://github.com/huceke/omxplayer.git;protocol=git;branch=master \ |
14 | file://remove-makefile-include.patch \ | 14 | file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \ |
15 | file://libraries-are-installed-in-usr-lib.patch \ | 15 | file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ |
16 | file://remove-hardcoded-directory-omxplayer-dist.patch \ | 16 | file://0003-Remove-strip-step-in-Makefile.patch" |
17 | file://don-t-strip-while-installing.patch \ | ||
18 | " | ||
19 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
20 | 18 | ||
21 | COMPATIBLE_MACHINE = "raspberrypi" | 19 | COMPATIBLE_MACHINE = "raspberrypi" |
22 | 20 | ||
23 | inherit autotools | 21 | inherit autotools |
24 | 22 | ||
25 | # Variable added in Makefile to INCLUDE | 23 | # Needed in ffmpeg configure |
26 | export ADD_INCDIR = "-I${STAGING_INCDIR}/interface/vcos/pthreads -I${STAGING_INCDIR}/freetype2" | 24 | export TEMPDIR = "${S}/tmp" |
27 | 25 | ||
28 | # Needed in configure from Makefile.ffmpeg | 26 | # Needed in Makefile.ffmpeg |
29 | export HOST = "${HOST_SYS}" | 27 | export HOST = "${HOST_SYS}" |
30 | export WORK = "${S}" | 28 | export WORK = "${S}" |
31 | export TEMPDIR = "${S}/tmp" | 29 | export FLOAT = "${@bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "hard", "softfp", d)}" |
32 | export FLOAT = "softfp" | ||
33 | 30 | ||
34 | export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \ | 31 | export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \ |
35 | -L${STAGING_DIR_HOST}/lib \ | 32 | -L${STAGING_DIR_HOST}/lib \ |
@@ -39,10 +36,11 @@ export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \ | |||
39 | export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \ | 36 | export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \ |
40 | -isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \ | 37 | -isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \ |
41 | -isystem${STAGING_DIR_HOST}/usr/include/freetype2 \ | 38 | -isystem${STAGING_DIR_HOST}/usr/include/freetype2 \ |
39 | -isystem${STAGING_DIR_HOST}/usr/include/interface/vmcs_host/linux \ | ||
42 | " | 40 | " |
43 | 41 | ||
44 | # Install in ${D} | 42 | # Install in ${D} |
45 | export DEST = "${D}" | 43 | export DIST = "${D}" |
46 | 44 | ||
47 | do_compile() { | 45 | do_compile() { |
48 | # Needed for compiler test in ffmpeg's configure | 46 | # Needed for compiler test in ffmpeg's configure |