diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2013-04-15 13:03:42 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2013-04-15 13:03:42 +0200 |
commit | 1c28f399c826107717d1d6925ab1910bc990eead (patch) | |
tree | 7fc9c3e3b50fa7c2a650cc37f8b575dd4b4f9d88 | |
parent | 7d2a3e667ec2b0a05fffca21d5160aab77f665d4 (diff) |
mediainfo: added mediainfo recipe
-rw-r--r-- | recipes-multimedia/mediainfo/mediainfo_0.7.62.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-multimedia/mediainfo/mediainfo_0.7.62.bb b/recipes-multimedia/mediainfo/mediainfo_0.7.62.bb new file mode 100644 index 0000000..bf85a30 --- /dev/null +++ b/recipes-multimedia/mediainfo/mediainfo_0.7.62.bb @@ -0,0 +1,52 @@ +HOMEPAGE="mediainfo.sourceforge.net" +DESCRIPTION = "Mediainfo is a tool to analyze multimedia files." +LICENSE = "GPLv2_modified" + +inherit autotools + +SRC_URI="http://mediaarea.net/download/binary/mediainfo/0.7.62/MediaInfo_CLI_${PV}_GNU_FromSource.tar.bz2" +LIC_FILES_CHKSUM = "file://${WORKDIR}/MediaInfo_CLI_GNU_FromSource/MediaInfo/License.html;md5=7f3735d23c6ef724bbd1475e4f82edcf" + +SRC_URI[md5sum] = "ba10422974111fdff5cf1bb38410c9a1" +SRC_URI[sha256sum] = "ecdde190c9f02ab26769e590314c4841a1c182e8488f1ad8584bdfb374562564" + +S = "${WORKDIR}/MediaInfo_CLI_GNU_FromSource/MediaInfo/Project/GNU/CLI/" + +do_configure () { + #build zenlib + cd ${WORKDIR}/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/ + my_runconf + oe_runmake + + #build media info lib + cd ${WORKDIR}/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library/ + my_runconf + oe_runmake + + #build media info + cd ${S} + oe_runconf +} + +do_install_prepend () { + #install media info + cd ${S} +} + +my_runconf() { + cfgscript="./configure" + if [ -x "$cfgscript" ] ; then + bbnote "Running $cfgscript --build=x86_64-linux --host=arm-angstrom-linux-gnueabi --target=arm-angstrom-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/tegradev/oe-core/build/out-eglibc/sysroots/colibri-t20 $@" + set +e + ${CACHED_CONFIGUREVARS} $cfgscript --build=x86_64-linux --host=arm-angstrom-linux-gnueabi --target=arm-angstrom-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/tegradev/oe-core/build/out-eglibc/sysroots/colibri-t20 "$@" + if [ "$?" != "0" ]; then + echo "Configure failed. The contents of all config.log files follows to aid debugging" + find /home/tegradev/oe-core/build/out-eglibc/work/armv7ahf-vfp-angstrom-linux-gnueabi/mediainfo-0.7.62-r0/mediainfo-0.7.62 -name config.log -print -exec cat {} \; + bbfatal "oe_runconf failed" + fi + set -e + else + bbfatal "no configure script found at $cfgscript" + fi +} + |