blob: 87792491ae0a715af3031e4bc1b4ca3713e5cebc [file] [log] [blame]
Brad Bishop93c3acf2019-10-29 09:48:15 -04001DESCRIPTION = "Gstreamer Daemon"
Brad Bishop316dfdd2018-06-25 12:45:53 -04002SUMMARY = "GStreamer framework for controlling audio and video streaming using TCP connection messages"
3HOMEPAGE = "https://developer.ridgerun.com/wiki/index.php?title=Gstd-1.0"
4SECTION = "multimedia"
Patrick Williamsac13d5f2023-11-24 18:59:46 -06005LICENSE = "LGPL-2.1-or-later"
6LIC_FILES_CHKSUM = "file://COPYING;md5=c71b653a0f608a58cdc5693ae57126bc"
Brad Bishop316dfdd2018-06-25 12:45:53 -04007
Patrick Williamsac13d5f2023-11-24 18:59:46 -06008DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-rtsp-server json-glib libdaemon libsoup-2.4 jansson"
Brad Bishop316dfdd2018-06-25 12:45:53 -04009
10SRCBRANCH ?= "master"
Patrick Williamsac13d5f2023-11-24 18:59:46 -060011SRCREV = "a011affa67f240cbc7aaff5b00fdfd6124bdaece"
12SRC_URI = "git://git@github.com/RidgeRun/gstd-1.x.git;protocol=https;branch=${SRCBRANCH}"
Brad Bishop316dfdd2018-06-25 12:45:53 -040013S = "${WORKDIR}/git"
14
Brad Bishop93c3acf2019-10-29 09:48:15 -040015# Remove the +really when upstream version is > 1.0
Patrick Williamsac13d5f2023-11-24 18:59:46 -060016PV = "1.0+really0.15.0"
Brad Bishop93c3acf2019-10-29 09:48:15 -040017
Patrick Williamsac13d5f2023-11-24 18:59:46 -060018GTKDOC_MESON_OPTION = "enable-gtk-doc"
19
Patrick Williamsda295312023-12-05 16:48:56 -060020inherit meson pkgconfig gettext gtk-doc python3native python3-dir python3targetconfig
Brad Bishop316dfdd2018-06-25 12:45:53 -040021
Patrick Williams213cb262021-08-07 19:21:33 -050022do_install:append() {
Patrick Williams169d7bc2024-01-05 11:33:25 -060023 rmdir ${D}${exec_prefix}${localstatedir}/run/${BPN} ${D}${exec_prefix}${localstatedir}/run \
24 ${D}${exec_prefix}${localstatedir}/log/${BPN} ${D}${exec_prefix}${localstatedir}/log \
25 ${D}${exec_prefix}${localstatedir}
Andrew Geissler595f6302022-01-24 19:11:47 +000026 rm -f ${D}${bindir}/gst-client ${D}${bindir}/gstd-client
Brad Bishope42b3e32020-01-15 22:08:42 -050027 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
28 install -d ${D}${sysconfdir}/tmpfiles.d
29 echo "d /run/${BPN} - - - -" \
30 > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
Patrick Williamsda295312023-12-05 16:48:56 -060031 echo "d ${localstatedir}/log/${BPN} 0755 root root -" \
Brad Bishope42b3e32020-01-15 22:08:42 -050032 >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
33 fi
34 ln -sf gst-client-1.0 ${D}${bindir}/gst-client
35 ln -sf gst-client-1.0 ${D}${bindir}/gstd-client
Brad Bishop316dfdd2018-06-25 12:45:53 -040036}
Patrick Williamsac13d5f2023-11-24 18:59:46 -060037PACKAGES =+ "${PN}-python"
38
39FILES:${PN} += "${systemd_user_unitdir}"
40FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*"