summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2016-02-23 17:28:39 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2016-02-25 17:47:29 +0100
commit2026a06ae4ad215219ff2a41110ce0e4da84b00f (patch)
tree3b1d0c0870037bbbf001f146c8429ff643200948 /meta-oe
parent3ba313d33eebbbddea512a2c8e97d4c5e320dee4 (diff)
downloadmeta-openembedded-2026a06ae4ad215219ff2a41110ce0e4da84b00f.tar.gz
freerdp: fold .inc into .bb
* currently it's broken again ERROR: freerdp-1.2.5+gitrAUTOINC+62da9d28c6-r0 do_package: QA Issue: freerdp: Files/directories were installed but not shipped in any package: /usr/bin Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. freerdp: 1 installed and not shipped files. [installed-vs-shipped] Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/freerdp/freerdp.inc74
-rw-r--r--meta-oe/recipes-support/freerdp/freerdp_git.bb83
2 files changed, 75 insertions, 82 deletions
diff --git a/meta-oe/recipes-support/freerdp/freerdp.inc b/meta-oe/recipes-support/freerdp/freerdp.inc
deleted file mode 100644
index 2937bc59b..000000000
--- a/meta-oe/recipes-support/freerdp/freerdp.inc
+++ /dev/null
@@ -1,74 +0,0 @@
1# Copyright (C) 2010-2012 O.S. Systems Software Ltda. All Rights Reserved
2# Released under the MIT license
3
4DESCRIPTION = "FreeRDP RDP client & server library"
5HOMEPAGE = "http://www.freerdp.com"
6DEPENDS = "openssl alsa-lib pcsc-lite"
7SECTION = "net"
8LICENSE = "Apache-2.0"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
10
11inherit pkgconfig cmake
12
13EXTRA_OECMAKE += "-DWITH_ALSA=ON \
14 -DWITH_PCSC=ON \
15 -DWITH_FFMPEG=OFF \
16 -DWITH_CUNIT=OFF \
17 -DWITH_NEON=OFF \
18 "
19
20PACKAGECONFIG ??= " \
21 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\
22 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}\
23 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}\
24 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}\
25 ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}\
26 gstreamer cups \
27 "
28
29X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile"
30PACKAGECONFIG[x11] = "-DWITH_X11=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON -DWITH_XCURSOR=ON -DWITH_XV=ON -DWITH_XI=ON -DWITH_XRENDER=ON -DWITH_XFIXES=ON -DWITH_XDAMAGE=ON -DWITH_XRANDR=ON -DWITH_XKBFILE=ON,-DWITH_X11=OFF,${X11_DEPS}"
31PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland"
32PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb"
33PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam"
34PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio"
35PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base"
36PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups"
37
38PACKAGES =+ "libfreerdp"
39
40LEAD_SONAME = "libfreerdp.so"
41FILES_libfreerdp = "${libdir}/lib*${SOLIBS}"
42
43PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*"
44
45# we will need winpr-makecert to generate TLS certificates
46do_install_append () {
47 install -m755 winpr/tools/makecert/cli/winpr-makecert ${D}${bindir}
48 rm -rf ${D}/${libdir}/cmake
49 rm -rf ${D}/${libdir}/freerdp
50}
51
52python populate_packages_prepend () {
53 freerdp_root = d.expand('${libdir}/freerdp')
54
55 do_split_packages(d, freerdp_root, '^(audin_.*)\.so$',
56 output_pattern='libfreerdp-plugin-%s',
57 description='FreeRDP plugin %s',
58 prepend=True, extra_depends='libfreerdp-plugin-audin')
59
60 do_split_packages(d, freerdp_root, '^(rdpsnd_.*)\.so$',
61 output_pattern='libfreerdp-plugin-%s',
62 description='FreeRDP plugin %s',
63 prepend=True, extra_depends='libfreerdp-plugin-rdpsnd')
64
65 do_split_packages(d, freerdp_root, '^(tsmf_.*)\.so$',
66 output_pattern='libfreerdp-plugin-%s',
67 description='FreeRDP plugin %s',
68 prepend=True, extra_depends='libfreerdp-plugin-tsmf')
69
70 do_split_packages(d, freerdp_root, '^([^-]*)\.so$',
71 output_pattern='libfreerdp-plugin-%s',
72 description='FreeRDP plugin %s',
73 prepend=True, extra_depends='')
74}
diff --git a/meta-oe/recipes-support/freerdp/freerdp_git.bb b/meta-oe/recipes-support/freerdp/freerdp_git.bb
index 13dff6ec2..c749b0c05 100644
--- a/meta-oe/recipes-support/freerdp/freerdp_git.bb
+++ b/meta-oe/recipes-support/freerdp/freerdp_git.bb
@@ -1,18 +1,18 @@
1# Copyright (C) 2010-2012, O.S. Systems Software Ltda. 1# Copyright (C) 2010-2012 O.S. Systems Software Ltda. All Rights Reserved
2# Released under the MIT license 2# Released under the MIT license
3 3
4include freerdp.inc 4DESCRIPTION = "FreeRDP RDP client & server library"
5HOMEPAGE = "http://www.freerdp.com"
6DEPENDS = "openssl alsa-lib pcsc-lite"
7SECTION = "net"
8LICENSE = "Apache-2.0"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
5 10
6inherit gitpkgv 11inherit pkgconfig cmake gitpkgv
7 12
8PV = "1.2.5+gitr${SRCPV}" 13PV = "1.2.5+gitr${SRCPV}"
9PKGV = "${GITPKGVTAG}" 14PKGV = "${GITPKGVTAG}"
10 15
11EXTRA_OECMAKE += "-DBUILD_STATIC_LIBS=OFF \
12 -DCMAKE_POSITION_INDEPENDANT_CODE=ON \
13 -DWITH_MANPAGES=OFF \
14 "
15
16SRCREV = "62da9d28c674814c81c245c1c7882eb0da7be76b" 16SRCREV = "62da9d28c674814c81c245c1c7882eb0da7be76b"
17SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \ 17SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \
18 file://winpr-makecert-Build-with-install-RPATH.patch \ 18 file://winpr-makecert-Build-with-install-RPATH.patch \
@@ -20,3 +20,70 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \
20" 20"
21 21
22S = "${WORKDIR}/git" 22S = "${WORKDIR}/git"
23
24EXTRA_OECMAKE += " \
25 -DWITH_ALSA=ON \
26 -DWITH_PCSC=ON \
27 -DWITH_FFMPEG=OFF \
28 -DWITH_CUNIT=OFF \
29 -DWITH_NEON=OFF \
30 -DBUILD_STATIC_LIBS=OFF \
31 -DCMAKE_POSITION_INDEPENDANT_CODE=ON \
32 -DWITH_MANPAGES=OFF \
33"
34
35PACKAGECONFIG ??= " \
36 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\
37 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}\
38 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}\
39 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}\
40 ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}\
41 gstreamer cups \
42 "
43
44X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile"
45PACKAGECONFIG[x11] = "-DWITH_X11=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON -DWITH_XCURSOR=ON -DWITH_XV=ON -DWITH_XI=ON -DWITH_XRENDER=ON -DWITH_XFIXES=ON -DWITH_XDAMAGE=ON -DWITH_XRANDR=ON -DWITH_XKBFILE=ON,-DWITH_X11=OFF,${X11_DEPS}"
46PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland"
47PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb"
48PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam"
49PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio"
50PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base"
51PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups"
52
53PACKAGES =+ "libfreerdp"
54
55LEAD_SONAME = "libfreerdp.so"
56FILES_libfreerdp = "${libdir}/lib*${SOLIBS}"
57
58PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*"
59
60# we will need winpr-makecert to generate TLS certificates
61do_install_append () {
62 install -m755 winpr/tools/makecert/cli/winpr-makecert ${D}${bindir}
63 rm -rf ${D}/${libdir}/cmake
64 rm -rf ${D}/${libdir}/freerdp
65}
66
67python populate_packages_prepend () {
68 freerdp_root = d.expand('${libdir}/freerdp')
69
70 do_split_packages(d, freerdp_root, '^(audin_.*)\.so$',
71 output_pattern='libfreerdp-plugin-%s',
72 description='FreeRDP plugin %s',
73 prepend=True, extra_depends='libfreerdp-plugin-audin')
74
75 do_split_packages(d, freerdp_root, '^(rdpsnd_.*)\.so$',
76 output_pattern='libfreerdp-plugin-%s',
77 description='FreeRDP plugin %s',
78 prepend=True, extra_depends='libfreerdp-plugin-rdpsnd')
79
80 do_split_packages(d, freerdp_root, '^(tsmf_.*)\.so$',
81 output_pattern='libfreerdp-plugin-%s',
82 description='FreeRDP plugin %s',
83 prepend=True, extra_depends='libfreerdp-plugin-tsmf')
84
85 do_split_packages(d, freerdp_root, '^([^-]*)\.so$',
86 output_pattern='libfreerdp-plugin-%s',
87 description='FreeRDP plugin %s',
88 prepend=True, extra_depends='')
89}