diff options
Diffstat (limited to 'meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb')
| -rw-r--r-- | meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb b/meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb new file mode 100644 index 0000000000..e79bd77a54 --- /dev/null +++ b/meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | SUMMARY = "A UPnP AV media server and renderer" | ||
| 2 | DESCRIPTION = "Rygel is a home media solution (UPnP AV MediaServer) that \ | ||
| 3 | allow you to easily share audio, video and pictures to other devices. \ | ||
| 4 | Additionally, media player software may use Rygel to become a MediaRenderer \ | ||
| 5 | that may be controlled remotely by a UPnP or DLNA Controller." | ||
| 6 | HOMEPAGE = "http://live.gnome.org/Rygel" | ||
| 7 | |||
| 8 | LICENSE = "LGPL-2.1-only" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | ||
| 10 | |||
| 11 | DEPENDS = "libxml2 glib-2.0 gssdp gupnp gupnp-av gupnp-dlna gstreamer1.0 \ | ||
| 12 | gstreamer1.0-plugins-base libgee libsoup libmediaart-2.0 \ | ||
| 13 | libunistring sqlite3 intltool-native gst-editing-services" | ||
| 14 | |||
| 15 | RDEPENDS:${PN} = "gstreamer1.0-plugins-base-playback shared-mime-info" | ||
| 16 | RRECOMMENDS:${PN} = "rygel-plugin-media-export" | ||
| 17 | |||
| 18 | inherit gnomebase features_check vala gobject-introspection gettext systemd | ||
| 19 | |||
| 20 | # gobject-introspection is mandatory for libmediaart-2.0 and cannot be configured | ||
| 21 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data x11" | ||
| 22 | |||
| 23 | SRC_URI[archive.sha256sum] = "1133602d2e6710aade6b22aa98d93384c8d56396f344763413e96e0110b7d89f" | ||
| 24 | |||
| 25 | GIR_MESON_ENABLE_FLAG = 'enabled' | ||
| 26 | GIR_MESON_DISABLE_FLAG = 'disabled' | ||
| 27 | |||
| 28 | EXTRA_OEMESON = "-Dengines=gstreamer -Dplugins=${@strip_comma('${RYGEL_PLUGINS}')}" | ||
| 29 | PACKAGECONFIG:append = "${@bb.utils.contains("DISTRO_FEATURES", "x11", " gtk+3", "", d)}" | ||
| 30 | |||
| 31 | PACKAGECONFIG ?= "external mpris ruih gst-launch media-export" | ||
| 32 | |||
| 33 | PACKAGECONFIG[external] = "" | ||
| 34 | PACKAGECONFIG[mpris] = "" | ||
| 35 | PACKAGECONFIG[ruih] = "" | ||
| 36 | PACKAGECONFIG[media-export] = "" | ||
| 37 | PACKAGECONFIG[gst-launch] = "" | ||
| 38 | PACKAGECONFIG[lms] = "" | ||
| 39 | PACKAGECONFIG[tracker3] = "" | ||
| 40 | PACKAGECONFIG[gtk+3] = ",-Dgtk=disabled,gtk+3" | ||
| 41 | |||
| 42 | RYGEL_PLUGINS = "" | ||
| 43 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'external', ',external', '', d)}" | ||
| 44 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'mpris', ',mpris', '', d)}" | ||
| 45 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'ruih', ',ruih', '', d)}" | ||
| 46 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gst-launch', ',gst-launch', '', d)}" | ||
| 47 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lms', ',lms', '', d)}" | ||
| 48 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'media-export', ',media-export', '', d)}" | ||
| 49 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'tracker3', ',tracker3', '', d)}" | ||
| 50 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'playbin', ',playbin', '', d)}" | ||
| 51 | |||
| 52 | LIBV = "2.8" | ||
| 53 | |||
| 54 | CFLAGS:append:toolchain-clang = " -Wno-error=int-conversion" | ||
| 55 | |||
| 56 | def strip_comma(s): | ||
| 57 | return s.strip(',') | ||
| 58 | |||
| 59 | do_install:append() { | ||
| 60 | # Remove .la files for loadable modules | ||
| 61 | rm -f ${D}/${libdir}/rygel-${LIBV}/engines/*.la | ||
| 62 | rm -f ${D}/${libdir}/rygel-${LIBV}/plugins/*.la | ||
| 63 | } | ||
| 64 | |||
| 65 | FILES:${PN} += "${libdir}/rygel-${LIBV}/engines ${systemd_user_unitdir} ${datadir}/dbus-1 ${datadir}/icons" | ||
| 66 | FILES:${PN}-dbg += "${libdir}/rygel-${LIBV}/engines/.debug ${libdir}/rygel-${LIBV}/plugins/.debug" | ||
| 67 | |||
| 68 | PACKAGES += "${PN}-meta" | ||
| 69 | ALLOW_EMPTY:${PN}-meta = "1" | ||
| 70 | |||
| 71 | PACKAGES_DYNAMIC = "${PN}-plugin-*" | ||
| 72 | |||
| 73 | python populate_packages:prepend () { | ||
| 74 | rygel_libdir = d.expand('${libdir}/rygel-${LIBV}') | ||
| 75 | postinst = d.getVar('plugin_postinst') | ||
| 76 | pkgs = [] | ||
| 77 | |||
| 78 | pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), r'librygel-(.*)\.so$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}')) | ||
| 79 | pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), r'(.*)\.plugin$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}')) | ||
| 80 | |||
| 81 | metapkg = d.getVar('PN') + '-meta' | ||
| 82 | d.setVar('RDEPENDS:' + metapkg, ' '.join(pkgs)) | ||
| 83 | } | ||
