blob: d446a31a5df6f54cb068d958522d7c03c0d27cc6 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001# 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 gitpkgv
12
Andrew Geissler82c905d2020-04-13 13:39:40 -050013PE = "1"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014PKGV = "${GITPKGVTAG}"
15
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050016SRCREV = "d2ba84a6885f57674098fe8e76c5f99d880e580d"
17SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=stable-2.0 \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018 file://winpr-makecert-Build-with-install-RPATH.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019"
20
21S = "${WORKDIR}/git"
22
23EXTRA_OECMAKE += " \
24 -DWITH_ALSA=ON \
25 -DWITH_PCSC=ON \
26 -DWITH_FFMPEG=OFF \
27 -DWITH_CUNIT=OFF \
28 -DWITH_NEON=OFF \
29 -DBUILD_STATIC_LIBS=OFF \
30 -DCMAKE_POSITION_INDEPENDANT_CODE=ON \
31 -DWITH_MANPAGES=OFF \
32"
33
Brad Bishop6e60e8b2018-02-01 10:27:11 -050034PACKAGECONFIG ??= " \
35 ${@bb.utils.filter('DISTRO_FEATURES', 'directfb pam pulseaudio wayland x11', d)}\
36 gstreamer cups \
37"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050038
39X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile"
40PACKAGECONFIG[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}"
Andrew Geisslerd688a012020-09-18 13:36:00 -050041PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland wayland-native libxkbcommon"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050042PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb"
43PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam"
44PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio"
45PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base"
46PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups"
47
48PACKAGES =+ "libfreerdp"
49
50LEAD_SONAME = "libfreerdp.so"
51FILES_libfreerdp = "${libdir}/lib*${SOLIBS}"
52
53PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*"
54
55# we will need winpr-makecert to generate TLS certificates
56do_install_append () {
57 install -d ${D}${bindir}
Brad Bishop316dfdd2018-06-25 12:45:53 -040058 install -m755 winpr/tools/makecert-cli/winpr-makecert ${D}${bindir}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050059 rm -rf ${D}${libdir}/cmake
60 rm -rf ${D}${libdir}/freerdp
61}
62
63python populate_packages_prepend () {
64 freerdp_root = d.expand('${libdir}/freerdp')
65
66 do_split_packages(d, freerdp_root, '^(audin_.*)\.so$',
67 output_pattern='libfreerdp-plugin-%s',
68 description='FreeRDP plugin %s',
69 prepend=True, extra_depends='libfreerdp-plugin-audin')
70
71 do_split_packages(d, freerdp_root, '^(rdpsnd_.*)\.so$',
72 output_pattern='libfreerdp-plugin-%s',
73 description='FreeRDP plugin %s',
74 prepend=True, extra_depends='libfreerdp-plugin-rdpsnd')
75
76 do_split_packages(d, freerdp_root, '^(tsmf_.*)\.so$',
77 output_pattern='libfreerdp-plugin-%s',
78 description='FreeRDP plugin %s',
79 prepend=True, extra_depends='libfreerdp-plugin-tsmf')
80
81 do_split_packages(d, freerdp_root, '^([^-]*)\.so$',
82 output_pattern='libfreerdp-plugin-%s',
83 description='FreeRDP plugin %s',
84 prepend=True, extra_depends='')
85}