blob: fe44ccf24c0d912c8e778b0e6b5d524feb61f8d1 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "MKVToolNix -- Cross-platform tools for Matroska"
2HOMEPAGE = "http://www.bunkus.org/videotools/mkvtoolnix/source.html"
3
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6
7DEPENDS = "curl boost expat zlib libebml libmatroska libogg libvorbis bzip2 lzo file ruby-native"
8
9PV = "8.4.0+git${SRCPV}"
10SRCREV_mkvtoolnix = "7f63ea48ee474754a95838f37aba8f6118c94a65"
11SRCREV_libebml = "04b34b0dbded40e0cec93cafa6a4f4c8e90c3206"
12SRCREV_libmatroska = "db5d627b5bf48516c9e0b540254c0d36595760c3"
13SRCREV_FORMAT = "mkvtoolnix"
14SRC_URI = " \
15 git://github.com/mbunkus/mkvtoolnix.git;name=mkvtoolnix \
16 git://github.com/Matroska-Org/libebml.git;name=libebml;destsuffix=git/lib/libebml \
17 git://github.com/Matroska-Org/libmatroska.git;name=libmatroska;destsuffix=git/lib/libmatroska \
18 "
19
20S = "${WORKDIR}/git"
21
22inherit autotools-brokensep gettext
23
24# make sure rb files are used from sysroot, not from host
25# ruby-1.9.3-always-use-i386.patch is doing target_cpu=`echo $target_cpu | sed s/i.86/i386/`
26# we need to replace it too (a bit longer version without importing re)
27RUBY_SYS = "${@ '${BUILD_SYS}'.replace('i486', 'i386').replace('i586', 'i386').replace('i686', 'i386') }"
28export RUBYLIB="${STAGING_DATADIR_NATIVE}/rubygems:${STAGING_LIBDIR_NATIVE}/ruby:${STAGING_LIBDIR_NATIVE}/ruby/${RUBY_SYS}"
29
30PACKAGECONFIG ??= "flac ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}"
31PACKAGECONFIG[flac] = "--with-flac,--without-flac,flac"
32PACKAGECONFIG[qt5] = "--enable-qt --with-moc=${STAGING_BINDIR_NATIVE}/qt5/moc --with-uic=${STAGING_BINDIR_NATIVE}/qt5/uic --with-rcc=${STAGING_BINDIR_NATIVE}/qt5/rcc,--disable-qt,qtbase"
33
34EXTRA_OECONF = " --with-boost-libdir=${STAGING_LIBDIR} \
35"
36
37FILES_${PN} += "${datadir}"
38
39# remove some hardcoded searchpaths
40do_configure_prepend() {
41 sed -i -e s:/usr/local/lib:${STAGING_LIBDIR}:g -e s:/usr/local/include:${STAGING_INCDIR}:g ${S}/ac/qt5.m4
42}
43
44# Yeah, no makefile
45do_compile() {
46 LC_ALL="en_US.UTF-8" ${S}/drake ${PARALLEL_MAKE}
47}
48
49do_install() {
50 LC_ALL="en_US.UTF-8" ${S}/drake install DESTDIR=${D}
51}
52
53# | In file included from src/common/utf8_codecvt_facet.cpp:22:0:
54# | src/common/../../lib/boost/utf8_codecvt_facet/utf8_codecvt_facet.cpp:174:5: error: 'int mtx::utf8_codecvt_facet::do_length' is not a static data member of 'struct mtx::utf8_codecvt_facet'
55# | BOOST_CODECVT_DO_LENGTH_CONST std::mbstate_t &,
56# | ^
57PNBLACKLIST[mkvtoolnix] ?= "BROKEN: Failx to build with gcc-5"