enigma2: 4.3.2r8
[opendreambox.git] / meta-opendreambox / recipes-multimedia / vlc / libdca_0.0.5-5.bb
1 SUMMARY = "decoding library for DTS Coherent Acoustics streams"
2 SECTION = "libs/multimedia"
3 LICENSE = "GPLv2+"
4 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5 SRCREV = "4f6b5d6e6fb35994c342de95bf05e20117da549b"
6
7 SRC_URI = "git://anonscm.debian.org/collab-maint/${PN}.git;protocol=git"
8
9 S = "${WORKDIR}/git"
10
11 inherit autotools lib_package pkgconfig
12
13 libdca_do_patch() {
14         cd ${S}
15         quilt pop -a || true
16         if [ -d ${S}/.pc-debian ]; then
17                 rm -rf ${S}/.pc
18                 mv ${S}/.pc-debian ${S}/.pc
19                 QUILT_PATCHES=${S}/debian/patches quilt pop -a
20                 rm -rf ${S}/.pc ${S}/debian
21         fi
22         QUILT_PATCHES=${S}/debian/patches quilt push -a
23         mv ${S}/.pc ${S}/.pc-debian
24
25         # single precision is enough and speeds up libdca by about 10-15%
26         sed -i -e 's/double/sample_t/g' ${S}/libdca/*.c ${S}/libdca/*.h
27 }
28
29 do_unpack[cleandirs] += "${S}"
30
31 # We invoke base do_patch at end, to incorporate any local patch
32 python do_patch() {
33     bb.build.exec_func('libdca_do_patch', d)
34     bb.build.exec_func('patch_do_patch', d)
35 }