blob: 373c4979fd7c78ba2baf53884cd154b11d008603 [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
Brad Bishop316dfdd2018-06-25 12:45:53 -040013PV = "2.0.0+gitr${SRCPV}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014PKGV = "${GITPKGVTAG}"
15
Brad Bishop19323692019-04-05 15:28:33 -040016# 2.0.0-rc4
17SRCREV = "e21b72c95f857817b4b32b5ef5406355c005a9e8"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \
19 file://winpr-makecert-Build-with-install-RPATH.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020"
21
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
Brad Bishop6e60e8b2018-02-01 10:27:11 -050035PACKAGECONFIG ??= " \
36 ${@bb.utils.filter('DISTRO_FEATURES', 'directfb pam pulseaudio wayland x11', d)}\
37 gstreamer cups \
38"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050039
40X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile"
41PACKAGECONFIG[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}"
42PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland"
43PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb"
44PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam"
45PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio"
46PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base"
47PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups"
48
49PACKAGES =+ "libfreerdp"
50
51LEAD_SONAME = "libfreerdp.so"
52FILES_libfreerdp = "${libdir}/lib*${SOLIBS}"
53
54PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*"
55
56# we will need winpr-makecert to generate TLS certificates
57do_install_append () {
58 install -d ${D}${bindir}
Brad Bishop316dfdd2018-06-25 12:45:53 -040059 install -m755 winpr/tools/makecert-cli/winpr-makecert ${D}${bindir}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050060 rm -rf ${D}${libdir}/cmake
61 rm -rf ${D}${libdir}/freerdp
62}
63
64python populate_packages_prepend () {
65 freerdp_root = d.expand('${libdir}/freerdp')
66
67 do_split_packages(d, freerdp_root, '^(audin_.*)\.so$',
68 output_pattern='libfreerdp-plugin-%s',
69 description='FreeRDP plugin %s',
70 prepend=True, extra_depends='libfreerdp-plugin-audin')
71
72 do_split_packages(d, freerdp_root, '^(rdpsnd_.*)\.so$',
73 output_pattern='libfreerdp-plugin-%s',
74 description='FreeRDP plugin %s',
75 prepend=True, extra_depends='libfreerdp-plugin-rdpsnd')
76
77 do_split_packages(d, freerdp_root, '^(tsmf_.*)\.so$',
78 output_pattern='libfreerdp-plugin-%s',
79 description='FreeRDP plugin %s',
80 prepend=True, extra_depends='libfreerdp-plugin-tsmf')
81
82 do_split_packages(d, freerdp_root, '^([^-]*)\.so$',
83 output_pattern='libfreerdp-plugin-%s',
84 description='FreeRDP plugin %s',
85 prepend=True, extra_depends='')
86}