summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc33
1 files changed, 18 insertions, 15 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
index 9a7a1b6afe..d77aeed8a2 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
@@ -6,8 +6,11 @@
6# This is mainly used by the gstreamer1.0-plugins-* plugin set recipes, 6# This is mainly used by the gstreamer1.0-plugins-* plugin set recipes,
7# but can be used in any recipe that produces GStreamer plugins. 7# but can be used in any recipe that produces GStreamer plugins.
8 8
9PACKAGESPLITFUNCS_prepend = " split_gstreamer10_packages " 9# Dynamically generate packages for all enabled plugins
10PACKAGESPLITFUNCS_append = " set_gstreamer10_metapkg_rdepends " 10PACKAGES_DYNAMIC = "^${PN}-.* ^libgst.*"
11
12PACKAGESPLITFUNCS =+ "split_gstreamer10_packages"
13PACKAGESPLITFUNCS += "set_gstreamer10_metapkg_rdepends"
11 14
12python split_gstreamer10_packages () { 15python split_gstreamer10_packages () {
13 gst_libdir = d.expand('${libdir}/gstreamer-1.0') 16 gst_libdir = d.expand('${libdir}/gstreamer-1.0')
@@ -33,13 +36,13 @@ python set_gstreamer10_metapkg_rdepends () {
33 36
34 pn = d.getVar('PN') 37 pn = d.getVar('PN')
35 metapkg = pn + '-meta' 38 metapkg = pn + '-meta'
36 d.setVar('ALLOW_EMPTY_' + metapkg, "1") 39 d.setVar('ALLOW_EMPTY:' + metapkg, "1")
37 d.setVar('FILES_' + metapkg, "") 40 d.setVar('FILES:' + metapkg, "")
38 blacklist = [ pn, pn + '-meta' ] 41 exclude = [ pn, pn + '-meta' ]
39 metapkg_rdepends = [] 42 metapkg_rdepends = []
40 pkgdest = d.getVar('PKGDEST') 43 pkgdest = d.getVar('PKGDEST')
41 for pkg in oe.utils.packages_filter_out_system(d): 44 for pkg in oe.utils.packages_filter_out_system(d):
42 if pkg not in blacklist and pkg not in metapkg_rdepends: 45 if pkg not in exclude and pkg not in metapkg_rdepends:
43 # See if the package is empty by looking at the contents of its PKGDEST subdirectory. 46 # See if the package is empty by looking at the contents of its PKGDEST subdirectory.
44 # If this subdirectory is empty, then the package is. 47 # If this subdirectory is empty, then the package is.
45 # Empty packages do not get added to the meta package's RDEPENDS 48 # Empty packages do not get added to the meta package's RDEPENDS
@@ -51,20 +54,20 @@ python set_gstreamer10_metapkg_rdepends () {
51 is_empty = len(dir_contents) == 0 54 is_empty = len(dir_contents) == 0
52 if not is_empty: 55 if not is_empty:
53 metapkg_rdepends.append(pkg) 56 metapkg_rdepends.append(pkg)
54 d.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends)) 57 d.setVar('RDEPENDS:' + metapkg, ' '.join(metapkg_rdepends))
55 d.setVar('DESCRIPTION_' + metapkg, pn + ' meta package') 58 d.setVar('DESCRIPTION:' + metapkg, pn + ' meta package')
56} 59}
57 60
58# each plugin-dev depends on PN-dev, plugin-staticdev on PN-staticdev 61# each plugin-dev depends on PN-dev, plugin-staticdev on PN-staticdev
59# so we need them even when empty (like in gst-plugins-good case) 62# so we need them even when empty (like in gst-plugins-good case)
60ALLOW_EMPTY_${PN} = "1" 63ALLOW_EMPTY:${PN} = "1"
61ALLOW_EMPTY_${PN}-dev = "1" 64ALLOW_EMPTY:${PN}-dev = "1"
62ALLOW_EMPTY_${PN}-staticdev = "1" 65ALLOW_EMPTY:${PN}-staticdev = "1"
63 66
64PACKAGES += "${PN}-apps ${PN}-meta ${PN}-glib" 67PACKAGES += "${PN}-apps ${PN}-meta ${PN}-glib"
65 68
66FILES_${PN} = "" 69FILES:${PN} = ""
67FILES_${PN}-apps = "${bindir}" 70FILES:${PN}-apps = "${bindir}"
68FILES_${PN}-glib = "${datadir}/glib-2.0" 71FILES:${PN}-glib = "${datadir}/glib-2.0"
69 72
70RRECOMMENDS_${PN} += "${PN}-meta" 73RRECOMMENDS:${PN} += "${PN}-meta"