diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2016-02-23 17:28:39 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-02-25 17:47:29 +0100 |
commit | 2026a06ae4ad215219ff2a41110ce0e4da84b00f (patch) | |
tree | 3b1d0c0870037bbbf001f146c8429ff643200948 /meta-oe | |
parent | 3ba313d33eebbbddea512a2c8e97d4c5e320dee4 (diff) | |
download | meta-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.inc | 74 | ||||
-rw-r--r-- | meta-oe/recipes-support/freerdp/freerdp_git.bb | 83 |
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 | |||
4 | DESCRIPTION = "FreeRDP RDP client & server library" | ||
5 | HOMEPAGE = "http://www.freerdp.com" | ||
6 | DEPENDS = "openssl alsa-lib pcsc-lite" | ||
7 | SECTION = "net" | ||
8 | LICENSE = "Apache-2.0" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
10 | |||
11 | inherit pkgconfig cmake | ||
12 | |||
13 | EXTRA_OECMAKE += "-DWITH_ALSA=ON \ | ||
14 | -DWITH_PCSC=ON \ | ||
15 | -DWITH_FFMPEG=OFF \ | ||
16 | -DWITH_CUNIT=OFF \ | ||
17 | -DWITH_NEON=OFF \ | ||
18 | " | ||
19 | |||
20 | PACKAGECONFIG ??= " \ | ||
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 | |||
29 | X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile" | ||
30 | PACKAGECONFIG[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}" | ||
31 | PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland" | ||
32 | PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb" | ||
33 | PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam" | ||
34 | PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio" | ||
35 | PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base" | ||
36 | PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" | ||
37 | |||
38 | PACKAGES =+ "libfreerdp" | ||
39 | |||
40 | LEAD_SONAME = "libfreerdp.so" | ||
41 | FILES_libfreerdp = "${libdir}/lib*${SOLIBS}" | ||
42 | |||
43 | PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*" | ||
44 | |||
45 | # we will need winpr-makecert to generate TLS certificates | ||
46 | do_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 | |||
52 | python 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 | ||
4 | include freerdp.inc | 4 | DESCRIPTION = "FreeRDP RDP client & server library" |
5 | HOMEPAGE = "http://www.freerdp.com" | ||
6 | DEPENDS = "openssl alsa-lib pcsc-lite" | ||
7 | SECTION = "net" | ||
8 | LICENSE = "Apache-2.0" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
5 | 10 | ||
6 | inherit gitpkgv | 11 | inherit pkgconfig cmake gitpkgv |
7 | 12 | ||
8 | PV = "1.2.5+gitr${SRCPV}" | 13 | PV = "1.2.5+gitr${SRCPV}" |
9 | PKGV = "${GITPKGVTAG}" | 14 | PKGV = "${GITPKGVTAG}" |
10 | 15 | ||
11 | EXTRA_OECMAKE += "-DBUILD_STATIC_LIBS=OFF \ | ||
12 | -DCMAKE_POSITION_INDEPENDANT_CODE=ON \ | ||
13 | -DWITH_MANPAGES=OFF \ | ||
14 | " | ||
15 | |||
16 | SRCREV = "62da9d28c674814c81c245c1c7882eb0da7be76b" | 16 | SRCREV = "62da9d28c674814c81c245c1c7882eb0da7be76b" |
17 | SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \ | 17 | SRC_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 | ||
22 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
23 | |||
24 | EXTRA_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 | |||
35 | PACKAGECONFIG ??= " \ | ||
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 | |||
44 | X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile" | ||
45 | PACKAGECONFIG[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}" | ||
46 | PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland" | ||
47 | PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb" | ||
48 | PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam" | ||
49 | PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio" | ||
50 | PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base" | ||
51 | PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" | ||
52 | |||
53 | PACKAGES =+ "libfreerdp" | ||
54 | |||
55 | LEAD_SONAME = "libfreerdp.so" | ||
56 | FILES_libfreerdp = "${libdir}/lib*${SOLIBS}" | ||
57 | |||
58 | PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*" | ||
59 | |||
60 | # we will need winpr-makecert to generate TLS certificates | ||
61 | do_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 | |||
67 | python 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 | } | ||