summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gst-plugins-package.inc
diff options
context:
space:
mode:
authorCarlos Rafael Giani <crg7475@mailbox.org>2020-01-12 14:59:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-16 22:33:08 +0000
commit6239efc725f4ace274f506da49531ae16b472e81 (patch)
tree6cc0b2d882f7646bc08a5f9334a26d91de1004bb /meta/recipes-multimedia/gstreamer/gst-plugins-package.inc
parentc14cf3abb28d9ea4a1e59277ebf9464a4ce0b6b0 (diff)
downloadpoky-6239efc725f4ace274f506da49531ae16b472e81.tar.gz
gstreamer: Remove unused common files and patches
gst-plugins-package.inc gstreamer1.0-plugins.inc got replaced by gstreamer1.0-plugins-packaging.inc and gstreamer1.0-plugins-common.inc, respectively. (From OE-Core rev: 238080ed896ea817a23aab2f25c246832ab9c7b3) Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gst-plugins-package.inc')
-rw-r--r--meta/recipes-multimedia/gstreamer/gst-plugins-package.inc56
1 files changed, 0 insertions, 56 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gst-plugins-package.inc b/meta/recipes-multimedia/gstreamer/gst-plugins-package.inc
deleted file mode 100644
index 6781e98c31..0000000000
--- a/meta/recipes-multimedia/gstreamer/gst-plugins-package.inc
+++ /dev/null
@@ -1,56 +0,0 @@
1PACKAGESPLITFUNCS_prepend = " split_gstreamer10_packages "
2PACKAGESPLITFUNCS_append = " set_metapkg_rdepends "
3
4python split_gstreamer10_packages () {
5 gst_libdir = d.expand('${libdir}/gstreamer-${LIBV}')
6 postinst = d.getVar('plugin_postinst')
7 glibdir = d.getVar('libdir')
8
9 do_split_packages(d, glibdir, r'^lib(.*)\.so\.*', 'lib%s', 'gstreamer %s library', extra_depends='', allow_links=True)
10 do_split_packages(d, gst_libdir, r'libgst(.*)\.so$', d.expand('${PN}-%s'), 'GStreamer plugin for %s', postinst=postinst, extra_depends='')
11 do_split_packages(d, glibdir+'/girepository-1.0', r'Gst(.*)-1.0\.typelib$', d.expand('${PN}-%s-typelib'), 'GStreamer typelib file for %s', postinst=postinst, extra_depends='')
12 do_split_packages(d, gst_libdir, r'libgst(.*)\.la$', d.expand('${PN}-%s-dev'), 'GStreamer plugin for %s (development files)', extra_depends='${PN}-dev')
13 do_split_packages(d, gst_libdir, r'libgst(.*)\.a$', d.expand('${PN}-%s-staticdev'), 'GStreamer plugin for %s (static development files)', extra_depends='${PN}-staticdev')
14}
15
16python set_metapkg_rdepends () {
17 import os
18 import oe.utils
19
20 pn = d.getVar('PN')
21 metapkg = pn + '-meta'
22 d.setVar('ALLOW_EMPTY_' + metapkg, "1")
23 d.setVar('FILES_' + metapkg, "")
24 blacklist = [ pn, pn + '-meta' ]
25 metapkg_rdepends = []
26 pkgdest = d.getVar('PKGDEST')
27 for pkg in oe.utils.packages_filter_out_system(d):
28 if pkg not in blacklist and pkg not in metapkg_rdepends:
29 # See if the package is empty by looking at the contents of its PKGDEST subdirectory.
30 # If this subdirectory is empty, then the package is.
31 # Empty packages do not get added to the meta package's RDEPENDS
32 pkgdir = os.path.join(pkgdest, pkg)
33 if os.path.exists(pkgdir):
34 dir_contents = os.listdir(pkgdir) or []
35 else:
36 dir_contents = []
37 is_empty = len(dir_contents) == 0
38 if not is_empty:
39 metapkg_rdepends.append(pkg)
40 d.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends))
41 d.setVar('DESCRIPTION_' + metapkg, pn + ' meta package')
42}
43
44# each plugin-dev depends on PN-dev, plugin-staticdev on PN-staticdev
45# so we need them even when empty (like in gst-plugins-good case)
46ALLOW_EMPTY_${PN} = "1"
47ALLOW_EMPTY_${PN}-dev = "1"
48ALLOW_EMPTY_${PN}-staticdev = "1"
49
50PACKAGES += "${PN}-apps ${PN}-meta ${PN}-glib"
51
52FILES_${PN} = ""
53FILES_${PN}-apps = "${bindir}"
54FILES_${PN}-glib = "${datadir}/glib-2.0"
55
56RRECOMMENDS_${PN} += "${PN}-meta"