diff options
| author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
|---|---|---|
| committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
| commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
| tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-multimedia/libomxil | |
| download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz | |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-multimedia/libomxil')
5 files changed, 150 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libomxil/libomxil-0.9.3/configure-fix.patch b/meta/recipes-multimedia/libomxil/libomxil-0.9.3/configure-fix.patch new file mode 100644 index 0000000000..876e80ef76 --- /dev/null +++ b/meta/recipes-multimedia/libomxil/libomxil-0.9.3/configure-fix.patch | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | To enable --disable-Werror for libomxil to avoid some compilers which check code strictly. | ||
| 2 | |||
| 3 | For example, at least the following errors happened to some compilers: | ||
| 4 | |||
| 5 | 1) OMX_INDEXTYPE in include/OMX_Index.h IS NOT OMX_INDEXVENDORTYPE in src/base/omx_base_component.h | ||
| 6 | | i586-poky-linux-libtool: compile: i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/yocto-build5/poky/build/tmp/sysroots/qemux86 -DHAVE_Climinate-unused-debug-types -Wall -Werror -DCONFIG_DEBUG_LEVEL=0 -c OMXComponentRMExt.c -fPIC -DPIC -o .libs/libomxbase_la-OMXComponentRMExt.o | ||
| 7 | | omx_base_component.c: In function 'omx_base_component_GetParameter': | ||
| 8 | | omx_base_component.c:991:3: error: case value '2130706435' not in enumerated type 'OMX_INDEXTYPE' [-Werror=switch] | ||
| 9 | | omx_base_component.c:918:3: error: case value '2130706436' not in enumerated type 'OMX_INDEXTYPE' [-Werror=switch] | ||
| 10 | |||
| 11 | 2) | ||
| 12 | | i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/yocto-build5/poky/build/tmp/sysroots/qemux86 -DHAVE_CONFIG_H -I. -I.. -DOMXILCOMPOminate-unused-debug-types -Wall -Werror -DCONFIG_DEBUG_LEVEL=0 -c -o omxregister_bellagio-omxregister.o `test -f 'omxregister.c' || echo './'`o | ||
| 13 | | omxregister.c: In function 'buildComponentsList': | ||
| 14 | | omxregister.c:175:7: error: variable 'err' set but not used [-Werror=unused-but-set-variable] | ||
| 15 | | cc1: all warnings being treated as errors | ||
| 16 | |||
| 17 | Upstream-Status: Inappropriate [configuration] | ||
| 18 | |||
| 19 | Signed-off-by: Shane Wang <shane.wang@intel.com> | ||
| 20 | |||
| 21 | diff -r 82d742d3ea90 configure.ac | ||
| 22 | --- a/configure.ac Tue Dec 27 15:30:35 2011 +0800 | ||
| 23 | +++ b/configure.ac Tue Dec 27 16:26:03 2011 +0800 | ||
| 24 | @@ -5,7 +5,7 @@ | ||
| 25 | AC_PREREQ([2.59]) | ||
| 26 | |||
| 27 | AC_CONFIG_HEADERS([config.h]) | ||
| 28 | -CFLAGS="${CFLAGS} -Wall -Werror" | ||
| 29 | +CFLAGS="${CFLAGS} -Wall" | ||
| 30 | |||
| 31 | ################################################################################ | ||
| 32 | # Set the shared versioning info, according to section 6.3 of the libtool info # | ||
| 33 | @@ -122,6 +122,14 @@ | ||
| 34 | [with_android=$enableval], | ||
| 35 | [with_android=no]) | ||
| 36 | |||
| 37 | +AC_ARG_ENABLE( | ||
| 38 | + [Werror], | ||
| 39 | + [AC_HELP_STRING( | ||
| 40 | + [--disable-Werror], | ||
| 41 | + [whether to diable treating gcc warnings as errors])], | ||
| 42 | + [with_Werror=$enableval], | ||
| 43 | + [with_Werror=yes]) | ||
| 44 | + | ||
| 45 | ################################################################################ | ||
| 46 | # Check for programs # | ||
| 47 | ################################################################################ | ||
| 48 | @@ -193,6 +201,10 @@ | ||
| 49 | CFG_DEBUG_LEVEL=255 | ||
| 50 | fi | ||
| 51 | |||
| 52 | +if test "x$with_Werror" = "xyes"; then | ||
| 53 | + CFLAGS="${CFLAGS} -Werror" | ||
| 54 | +fi | ||
| 55 | + | ||
| 56 | AC_SUBST(CFG_DEBUG_LEVEL) | ||
| 57 | CFLAGS="${CFLAGS} -DCONFIG_DEBUG_LEVEL=$CFG_DEBUG_LEVEL" | ||
| 58 | |||
diff --git a/meta/recipes-multimedia/libomxil/libomxil-0.9.3/dynamicloader-linking.patch b/meta/recipes-multimedia/libomxil/libomxil-0.9.3/dynamicloader-linking.patch new file mode 100644 index 0000000000..787953a99b --- /dev/null +++ b/meta/recipes-multimedia/libomxil/libomxil-0.9.3/dynamicloader-linking.patch | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | This patch fixes link issue when libomxdynamicloader.so is loaded : | ||
| 2 | Missing symbol RM_Deinit. | ||
| 3 | |||
| 4 | This patch comes from "http://pkgs.fedoraproject.org/cgit/libomxil-bellagio.git/commit/?h=f17&id=4996a95828943d345e51ded6876c3103653eecf8" | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Sébastien Mennetrier <s.mennetrier@innotis.org> | ||
| 9 | |||
| 10 | --- a/src/dynamic_loader/Makefile.am 2014-02-25 15:29:10.128549636 +0100 | ||
| 11 | +++ b/src/dynamic_loader/Makefile.am 2014-02-25 15:30:15.756548808 +0100 | ||
| 12 | @@ -3,7 +3,7 @@ | ||
| 13 | omxdynamicloader_LTLIBRARIES = libomxdynamicloader.la | ||
| 14 | libomxdynamicloader_la_SOURCES = ste_dynamic_component_loader.c ste_dynamic_component_loader.h | ||
| 15 | |||
| 16 | -libomxdynamicloader_la_LDFLAGS = | ||
| 17 | +libomxdynamicloader_la_LDFLAGS = -lomxil-bellagio -L$(top_builddir)/src/.libs | ||
| 18 | libomxdynamicloader_la_CFLAGS = -I$(top_srcdir)/include \ | ||
| 19 | -I$(top_srcdir)/src \ | ||
| 20 | -I$(top_srcdir)/src/base \ | ||
diff --git a/meta/recipes-multimedia/libomxil/libomxil-0.9.3/makefile-docdir-fix.patch b/meta/recipes-multimedia/libomxil/libomxil-0.9.3/makefile-docdir-fix.patch new file mode 100644 index 0000000000..dbe8c41f74 --- /dev/null +++ b/meta/recipes-multimedia/libomxil/libomxil-0.9.3/makefile-docdir-fix.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | This patch is to remove DESTDIR in docdir. | ||
| 2 | Otherwise, when users install by running `make install DESTDIR=/alternate/directory' specified in the file INSTALL, the doc will go into /alternate/directory/alternate/directory, which is not expected. | ||
| 3 | |||
| 4 | Upstream-Status: Pending | ||
| 5 | |||
| 6 | Signed-off-by: Shane Wang <shane.wang@intel.com> | ||
| 7 | |||
| 8 | diff -r 30b597e4e70d Makefile.am | ||
| 9 | --- a/Makefile.am Wed Dec 28 15:38:35 2011 +0800 | ||
| 10 | +++ b/Makefile.am Wed Dec 28 15:39:25 2011 +0800 | ||
| 11 | @@ -7,7 +7,7 @@ | ||
| 12 | pkgconfigdir = $(libdir)/pkgconfig | ||
| 13 | pkgconfig_DATA = libomxil-bellagio.pc | ||
| 14 | |||
| 15 | -docdir = $(DESTDIR)$(prefix)/share/doc/@PACKAGE@ | ||
| 16 | +docdir = $(prefix)/share/doc/@PACKAGE@ | ||
| 17 | doc_DATA = README \ | ||
| 18 | ChangeLog \ | ||
| 19 | TODO | ||
diff --git a/meta/recipes-multimedia/libomxil/libomxil-0.9.3/parallel-make.patch b/meta/recipes-multimedia/libomxil/libomxil-0.9.3/parallel-make.patch new file mode 100644 index 0000000000..483ca1328b --- /dev/null +++ b/meta/recipes-multimedia/libomxil/libomxil-0.9.3/parallel-make.patch | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | This patch is to make libomxil Makefile support "make -jN". | ||
| 2 | The omxregister_bellagio stuffs depend on libomxil_bellagio library. | ||
| 3 | |||
| 4 | Upstream-Status: Pending | ||
| 5 | |||
| 6 | Signed-off-by: Shane Wang <shane.wang@intel.com> | ||
| 7 | |||
| 8 | diff -r f59d077d3dd5 Makefile.am | ||
| 9 | --- a/src/Makefile.am Wed Dec 28 10:54:36 2011 +0800 | ||
| 10 | +++ b/src/Makefile.am Wed Dec 28 10:55:46 2011 +0800 | ||
| 11 | @@ -7,6 +7,7 @@ | ||
| 12 | omxregister_bellagio_SOURCES = omxregister.c common.c common.h | ||
| 13 | omxregister_bellagio_CFLAGS = -DOMXILCOMPONENTSPATH=\"$(plugindir)/\" \ | ||
| 14 | -I$(top_srcdir)/include | ||
| 15 | +omxregister_bellagio_LDADD = $(lib_LTLIBRARIES) | ||
| 16 | omxregister_bellagio_LDFLAGS = -lomxil-bellagio -L$(builddir) | ||
| 17 | |||
| 18 | lib_LTLIBRARIES = libomxil-bellagio.la | ||
diff --git a/meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb b/meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb new file mode 100644 index 0000000000..103d789482 --- /dev/null +++ b/meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | SUMMARY = "Bellagio OpenMAX Integration Layer (IL)" | ||
| 2 | DESCRIPTION = "Bellagio is an opensource implementation of the Khronos OpenMAX \ | ||
| 3 | Integration Layer API to access multimedia components." | ||
| 4 | HOMEPAGE = "http://omxil.sourceforge.net/" | ||
| 5 | |||
| 6 | LICENSE = "LGPLv2.1+" | ||
| 7 | LICENSE_FLAGS = "commercial" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=ae6f0f4dbc7ac193b50f323a6ae191cb \ | ||
| 9 | file://src/omxcore.h;beginline=1;endline=27;md5=806b1e5566c06486fe8e42b461e03a90" | ||
| 10 | |||
| 11 | SRC_URI = "${SOURCEFORGE_MIRROR}/omxil/libomxil-bellagio-${PV}.tar.gz \ | ||
| 12 | file://configure-fix.patch \ | ||
| 13 | file://parallel-make.patch \ | ||
| 14 | file://makefile-docdir-fix.patch \ | ||
| 15 | file://dynamicloader-linking.patch" | ||
| 16 | |||
| 17 | SRC_URI[md5sum] = "a1de827fdb75c02c84e55f740ca27cb8" | ||
| 18 | SRC_URI[sha256sum] = "593c0729c8ef8c1467b3bfefcf355ec19a46dd92e31bfc280e17d96b0934d74c" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/${BPN}-bellagio-${PV}" | ||
| 21 | |||
| 22 | inherit autotools | ||
| 23 | |||
| 24 | EXTRA_OECONF += "--disable-doc --disable-Werror" | ||
| 25 | |||
| 26 | FILES_${PN} += "${libdir}/bellagio/*${SOLIBS} \ | ||
| 27 | ${libdir}/omxloaders/*${SOLIBS}" | ||
| 28 | FILES_${PN}-staticdev += "${libdir}/bellagio/*.a \ | ||
| 29 | ${libdir}/omxloaders/*.a" | ||
| 30 | FILES_${PN}-dev += "${libdir}/bellagio/*.la \ | ||
| 31 | ${libdir}/bellagio/*${SOLIBSDEV} \ | ||
| 32 | ${libdir}/omxloaders/*.la \ | ||
| 33 | ${libdir}/omxloaders/*${SOLIBSDEV}" | ||
| 34 | FILES_${PN}-dbg += "${libdir}/bellagio/.debug/ \ | ||
| 35 | ${libdir}/omxloaders/.debug/" | ||
