gstreamer1.mk 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ################################################################################
  2. #
  3. # gstreamer1
  4. #
  5. ################################################################################
  6. GSTREAMER1_VERSION = 1.18.1
  7. GSTREAMER1_SOURCE = gstreamer-$(GSTREAMER1_VERSION).tar.xz
  8. GSTREAMER1_SITE = https://gstreamer.freedesktop.org/src/gstreamer
  9. GSTREAMER1_INSTALL_STAGING = YES
  10. GSTREAMER1_LICENSE_FILES = COPYING
  11. GSTREAMER1_LICENSE = LGPL-2.0+, LGPL-2.1+
  12. GSTREAMER1_CONF_OPTS = \
  13. -Dexamples=disabled \
  14. -Dtests=disabled \
  15. -Dbenchmarks=disabled \
  16. -Dtools=$(if $(BR2_PACKAGE_GSTREAMER1_INSTALL_TOOLS),enabled,disabled) \
  17. -Dgtk_doc=disabled \
  18. -Dgobject-cast-checks=disabled \
  19. -Dglib-asserts=disabled \
  20. -Dglib-checks=disabled \
  21. -Dextra-checks=disabled \
  22. -Dcheck=$(if $(BR2_PACKAGE_GSTREAMER1_CHECK),enabled,disabled) \
  23. -Dtracer_hooks=$(if $(BR2_PACKAGE_GSTREAMER1_TRACE),true,false) \
  24. -Doption-parsing=$(if $(BR2_PACKAGE_GSTREAMER1_PARSE),true,false) \
  25. -Dgst_debug=$(if $(BR2_PACKAGE_GSTREAMER1_GST_DEBUG),true,false) \
  26. -Dgst_parse=true \
  27. -Dregistry=$(if $(BR2_PACKAGE_GSTREAMER1_PLUGIN_REGISTRY),true,false) \
  28. -Ddoc=disabled
  29. GSTREAMER1_DEPENDENCIES = \
  30. host-bison \
  31. host-flex \
  32. host-pkgconf \
  33. libglib2 \
  34. $(if $(BR2_PACKAGE_LIBUNWIND),libunwind) \
  35. $(if $(BR2_PACKAGE_VALGRIND),valgrind) \
  36. $(TARGET_NLS_DEPENDENCIES)
  37. ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
  38. GSTREAMER1_CONF_OPTS += -Dintrospection=enabled
  39. GSTREAMER1_DEPENDENCIES += gobject-introspection
  40. else
  41. GSTREAMER1_CONF_OPTS += -Dintrospection=disabled
  42. endif
  43. GSTREAMER1_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
  44. $(eval $(meson-package))