Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Libav-based GStreamer 1.x plugin" |
| 2 | HOMEPAGE = "http://gstreamer.freedesktop.org/" |
| 3 | SECTION = "multimedia" |
| 4 | |
| 5 | LICENSE = "GPLv2+ & LGPLv2+ & ( (GPLv2+ & LGPLv2.1+) | (GPLv3+ & LGPLv3+) )" |
| 6 | LICENSE_FLAGS = "commercial" |
| 7 | LIC_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 | |
| 11 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz \ |
| 12 | " |
| 13 | SRC_URI[md5sum] = "eacebd0136ede3a9bd3672eeb338806b" |
| 14 | SRC_URI[sha256sum] = "c724f612700c15a933c7356fbeabb0bb9571fb5538f8b1b54d4d2d94188deef2" |
| 15 | |
| 16 | S = "${WORKDIR}/gst-libav-${PV}" |
| 17 | |
| 18 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg" |
| 19 | |
| 20 | inherit meson pkgconfig upstream-version-is-even |
| 21 | |
| 22 | FILES_${PN} += "${libdir}/gstreamer-1.0/*.so" |
| 23 | FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" |
| 24 | |
| 25 | delete_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 | |
| 35 | do_unpack[postfuncs] += " delete_unused_libav_copy" |