blob: 2fdefc925e04d396513e22e640df5c26c95bb103 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Libav-based GStreamer 1.x plugin"
2HOMEPAGE = "http://gstreamer.freedesktop.org/"
3SECTION = "multimedia"
4
5LICENSE = "GPLv2+ & LGPLv2+ & ( (GPLv2+ & LGPLv2.1+) | (GPLv3+ & LGPLv3+) )"
6LICENSE_FLAGS = "commercial"
7LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://COPYING.LIB;md5=6762ed442b3822387a51c92d928ead0d \
9 file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c"
10
11SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz \
12 "
13SRC_URI[md5sum] = "eacebd0136ede3a9bd3672eeb338806b"
14SRC_URI[sha256sum] = "c724f612700c15a933c7356fbeabb0bb9571fb5538f8b1b54d4d2d94188deef2"
15
16S = "${WORKDIR}/gst-libav-${PV}"
17
18DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg"
19
20inherit meson pkgconfig upstream-version-is-even
21
22FILES_${PN} += "${libdir}/gstreamer-1.0/*.so"
23FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
24
25delete_unused_libav_copy() {
26 # When building with meson, the internal libav copy is not used.
27 # It is only present for legacy autotools based builds. In future
28 # GStreamer versions, the autotools scripts will be gone, and so
29 # will this internal copy. Until then, it will be present. In order
30 # to make sure this copy is not included in the -src package, just
31 # manually delete the copy.
32 rm -rf "${S}/gst-libs/ext/libav/"
33}
34
35do_unpack[postfuncs] += " delete_unused_libav_copy"