gstreamer1.0_1.26.1.bb 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. SUMMARY = "GStreamer 1.0 multimedia framework"
  2. DESCRIPTION = "GStreamer is a multimedia framework for encoding and decoding video and sound. \
  3. It supports a wide range of formats including mp3, ogg, avi, mpeg and quicktime."
  4. HOMEPAGE = "http://gstreamer.freedesktop.org/"
  5. BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
  6. SECTION = "multimedia"
  7. LICENSE = "LGPL-2.1-or-later"
  8. DEPENDS = "glib-2.0 glib-2.0-native libxml2 bison-native flex-native"
  9. inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection ptest-gnome
  10. LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \
  11. file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d"
  12. S = "${WORKDIR}/gstreamer-${PV}"
  13. SRC_URI = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \
  14. file://run-ptest \
  15. file://0001-tests-respect-the-idententaion-used-in-meson.patch \
  16. file://0002-tests-add-support-for-install-the-tests.patch \
  17. file://0003-tests-use-a-dictionaries-for-environment.patch \
  18. file://0004-tests-add-helper-script-to-run-the-installed_tests.patch \
  19. "
  20. SRC_URI[sha256sum] = "30a4c4a5e48345583eb596aa265d0f53c0feb93011d93a6aaa70dd6e3c519dc4"
  21. PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
  22. check \
  23. debug \
  24. tools"
  25. PACKAGECONFIG[debug] = "-Dgst_debug=true,-Dgst_debug=false"
  26. PACKAGECONFIG[tracer-hooks] = "-Dtracer_hooks=true,-Dtracer_hooks=false"
  27. PACKAGECONFIG[coretracers] = "-Dcoretracers=enabled,-Dcoretracers=disabled"
  28. PACKAGECONFIG[check] = "-Dcheck=enabled,-Dcheck=disabled"
  29. PACKAGECONFIG[tests] = "-Dtests=enabled -Dinstalled_tests=true,-Dtests=disabled -Dinstalled_tests=false"
  30. PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
  31. PACKAGECONFIG[dw] = "-Dlibdw=enabled,-Dlibdw=disabled,elfutils"
  32. PACKAGECONFIG[bash-completion] = "-Dbash-completion=enabled,-Dbash-completion=disabled,bash-completion"
  33. PACKAGECONFIG[tools] = "-Dtools=enabled,-Dtools=disabled"
  34. PACKAGECONFIG[setcap] = "-Dptp-helper-permissions=capabilities,,libcap libcap-native"
  35. # TODO: put this in a gettext.bbclass patch
  36. def gettext_oemeson(d):
  37. if d.getVar('USE_NLS') == 'no':
  38. return '-Dnls=disabled'
  39. # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
  40. if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
  41. return '-Dnls=disabled'
  42. return '-Dnls=enabled'
  43. EXTRA_OEMESON += " \
  44. -Ddoc=disabled \
  45. -Dexamples=disabled \
  46. -Ddbghelp=disabled \
  47. ${@gettext_oemeson(d)} \
  48. "
  49. GIR_MESON_ENABLE_FLAG = "enabled"
  50. GIR_MESON_DISABLE_FLAG = "disabled"
  51. PACKAGES += "${PN}-bash-completion"
  52. # Add the core element plugins to the main package
  53. FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
  54. FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include"
  55. FILES:${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*"
  56. FILES:${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb"
  57. RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-iso8859-5"
  58. CVE_PRODUCT = "gstreamer"
  59. PTEST_BUILD_HOST_FILES = ""