diff options
3 files changed, 71 insertions, 17 deletions
diff --git a/meta-oe/recipes-support/freerdp/freerdp.inc b/meta-oe/recipes-support/freerdp/freerdp.inc index 34dac4b7e..2937bc59b 100644 --- a/meta-oe/recipes-support/freerdp/freerdp.inc +++ b/meta-oe/recipes-support/freerdp/freerdp.inc | |||
@@ -1,23 +1,39 @@ | |||
1 | # Copyright (C) 2010-2012 O.S. Systems Software Ltda. All Rights Reserved | 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 | DESCRIPTION = "FreeRDP RDP client" | 4 | DESCRIPTION = "FreeRDP RDP client & server library" |
5 | HOMEPAGE = "http://www.freerdp.com" | 5 | HOMEPAGE = "http://www.freerdp.com" |
6 | DEPENDS = "virtual/libx11 openssl libxcursor libxv cups alsa-lib pulseaudio pcsc-lite libxkbfile libxinerama" | 6 | DEPENDS = "openssl alsa-lib pcsc-lite" |
7 | SECTION = "x11/network" | 7 | SECTION = "net" |
8 | LICENSE = "Apache-2.0" | 8 | LICENSE = "Apache-2.0" |
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
10 | 10 | ||
11 | inherit pkgconfig cmake | 11 | inherit pkgconfig cmake |
12 | 12 | ||
13 | EXTRA_OECMAKE += "-DWITH_PULSEAUDIO=ON \ | 13 | EXTRA_OECMAKE += "-DWITH_ALSA=ON \ |
14 | -DWITH_PCSC=ON \ | 14 | -DWITH_PCSC=ON \ |
15 | -DWITH_CUPS=ON \ | ||
16 | -DWITH_FFMPEG=OFF \ | 15 | -DWITH_FFMPEG=OFF \ |
17 | -DWITH_CUNIT=OFF \ | 16 | -DWITH_CUNIT=OFF \ |
18 | -DWITH_X11=ON \ | 17 | -DWITH_NEON=OFF \ |
19 | -DWITH_XKBFILE=ON \ | 18 | " |
20 | -DWITH_XINERAMA=ON" | 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" | ||
21 | 37 | ||
22 | PACKAGES =+ "libfreerdp" | 38 | PACKAGES =+ "libfreerdp" |
23 | 39 | ||
@@ -26,6 +42,13 @@ FILES_libfreerdp = "${libdir}/lib*${SOLIBS}" | |||
26 | 42 | ||
27 | PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*" | 43 | PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*" |
28 | 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 | |||
29 | python populate_packages_prepend () { | 52 | python populate_packages_prepend () { |
30 | freerdp_root = d.expand('${libdir}/freerdp') | 53 | freerdp_root = d.expand('${libdir}/freerdp') |
31 | 54 | ||
diff --git a/meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch b/meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch new file mode 100644 index 000000000..d279d6d91 --- /dev/null +++ b/meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 253eafc8c8da83fc2b1a99a9e43824efc6105c7a Mon Sep 17 00:00:00 2001 | ||
2 | From: Manuel Bachmann <manuel.bachmann@iot.bzh> | ||
3 | Date: Sun, 4 Oct 2015 10:44:49 +0200 | ||
4 | Subject: [PATCH] winpr-makecert: Build with install RPATH | ||
5 | |||
6 | As we are installing "winpr-makecert" manually, we do want | ||
7 | to refer to the library in DESTDIR, not the one resting in | ||
8 | the build tree. | ||
9 | |||
10 | Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh> | ||
11 | --- | ||
12 | winpr/tools/makecert/cli/CMakeLists.txt | 4 ++++ | ||
13 | 1 file changed, 4 insertions(+) | ||
14 | |||
15 | diff --git a/winpr/tools/makecert/cli/CMakeLists.txt b/winpr/tools/makecert/cli/CMakeLists.txt | ||
16 | index 17954c4..90c446b 100644 | ||
17 | --- a/winpr/tools/makecert/cli/CMakeLists.txt | ||
18 | +++ b/winpr/tools/makecert/cli/CMakeLists.txt | ||
19 | @@ -45,5 +45,9 @@ set(${MODULE_PREFIX}_LIBS winpr-makecert-tool) | ||
20 | |||
21 | target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS}) | ||
22 | |||
23 | +set_target_properties(${MODULE_NAME} PROPERTIES | ||
24 | + BUILD_WITH_INSTALL_RPATH 1) | ||
25 | + | ||
26 | set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools") | ||
27 | |||
28 | + | ||
29 | -- | ||
30 | 1.8.3.1 | ||
31 | |||
diff --git a/meta-oe/recipes-support/freerdp/freerdp_git.bb b/meta-oe/recipes-support/freerdp/freerdp_git.bb index fd7f74c86..f9cb9a6b6 100644 --- a/meta-oe/recipes-support/freerdp/freerdp_git.bb +++ b/meta-oe/recipes-support/freerdp/freerdp_git.bb | |||
@@ -5,17 +5,17 @@ include freerdp.inc | |||
5 | 5 | ||
6 | inherit gitpkgv | 6 | inherit gitpkgv |
7 | 7 | ||
8 | PV = "1.0.2+gitr${SRCPV}" | 8 | PV = "1.2.5+gitr${SRCPV}" |
9 | PKGV = "${GITPKGVTAG}" | 9 | PKGV = "${GITPKGVTAG}" |
10 | 10 | ||
11 | EXTRA_OECMAKE += "-DWITH_MANPAGES=OFF" | 11 | EXTRA_OECMAKE += "-DBUILD_STATIC_LIBS=OFF \ |
12 | -DCMAKE_POSITION_INDEPENDANT_CODE=ON \ | ||
13 | -DWITH_MANPAGES=OFF \ | ||
14 | " | ||
12 | 15 | ||
13 | SRCREV = "f311acaffb9190567e2b478a98d7cbfaf2709f6b" | 16 | SRCREV = "62da9d28c674814c81c245c1c7882eb0da7be76b" |
14 | SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=stable-1.0" | 17 | SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \ |
18 | file://winpr-makecert-Build-with-install-RPATH.patch \ | ||
19 | " | ||
15 | 20 | ||
16 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
17 | |||
18 | PNBLACKLIST[freerdp] ?= "Installs into double prefix, causing all files installed in /usr/usr and empty packages" | ||
19 | # freerdp-1.0.2+gitrAUTOINC+f311acaffb: freerdp: Files/directories were installed but not shipped | ||
20 | # /usr/usr | ||
21 | # .... | ||