blob: 7cafbb7993d091afd8eb80b4b373a31062024373 [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"
Brad Bishop316dfdd2018-06-25 12:45:53 -040014PV = "2.0.0+gitr${SRCPV}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015PKGV = "${GITPKGVTAG}"
16
Andrew Geissler82c905d2020-04-13 13:39:40 -050017# 2.0.0 release
18SRCREV = "5ab2bed8749747b8e4b2ed431fd102bc726be684"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \
20 file://winpr-makecert-Build-with-install-RPATH.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021"
22
23S = "${WORKDIR}/git"
24
25EXTRA_OECMAKE += " \
26 -DWITH_ALSA=ON \
27 -DWITH_PCSC=ON \
28 -DWITH_FFMPEG=OFF \
29 -DWITH_CUNIT=OFF \
30 -DWITH_NEON=OFF \
31 -DBUILD_STATIC_LIBS=OFF \
32 -DCMAKE_POSITION_INDEPENDANT_CODE=ON \
33 -DWITH_MANPAGES=OFF \
34"
35
Brad Bishop6e60e8b2018-02-01 10:27:11 -050036PACKAGECONFIG ??= " \
37 ${@bb.utils.filter('DISTRO_FEATURES', 'directfb pam pulseaudio wayland x11', d)}\
38 gstreamer cups \
39"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050040
41X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile"
42PACKAGECONFIG[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 Geissler82c905d2020-04-13 13:39:40 -050043PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland wayland-native"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050044PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb"
45PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam"
46PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio"
47PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base"
48PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups"
49
50PACKAGES =+ "libfreerdp"
51
52LEAD_SONAME = "libfreerdp.so"
53FILES_libfreerdp = "${libdir}/lib*${SOLIBS}"
54
55PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*"
56
57# we will need winpr-makecert to generate TLS certificates
58do_install_append () {
59 install -d ${D}${bindir}
Brad Bishop316dfdd2018-06-25 12:45:53 -040060 install -m755 winpr/tools/makecert-cli/winpr-makecert ${D}${bindir}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050061 rm -rf ${D}${libdir}/cmake
62 rm -rf ${D}${libdir}/freerdp
63}
64
65python populate_packages_prepend () {
66 freerdp_root = d.expand('${libdir}/freerdp')
67
68 do_split_packages(d, freerdp_root, '^(audin_.*)\.so$',
69 output_pattern='libfreerdp-plugin-%s',
70 description='FreeRDP plugin %s',
71 prepend=True, extra_depends='libfreerdp-plugin-audin')
72
73 do_split_packages(d, freerdp_root, '^(rdpsnd_.*)\.so$',
74 output_pattern='libfreerdp-plugin-%s',
75 description='FreeRDP plugin %s',
76 prepend=True, extra_depends='libfreerdp-plugin-rdpsnd')
77
78 do_split_packages(d, freerdp_root, '^(tsmf_.*)\.so$',
79 output_pattern='libfreerdp-plugin-%s',
80 description='FreeRDP plugin %s',
81 prepend=True, extra_depends='libfreerdp-plugin-tsmf')
82
83 do_split_packages(d, freerdp_root, '^([^-]*)\.so$',
84 output_pattern='libfreerdp-plugin-%s',
85 description='FreeRDP plugin %s',
86 prepend=True, extra_depends='')
87}