Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 gitpkgv |
| 12 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 13 | PV = "2.0.0+gitr${SRCPV}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | PKGV = "${GITPKGVTAG}" |
| 15 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 16 | # 2.0.0-rc4 |
| 17 | SRCREV = "e21b72c95f857817b4b32b5ef5406355c005a9e8" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \ |
| 19 | file://winpr-makecert-Build-with-install-RPATH.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | " |
| 21 | |
| 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 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 35 | PACKAGECONFIG ??= " \ |
| 36 | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb pam pulseaudio wayland x11', d)}\ |
| 37 | gstreamer cups \ |
| 38 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 39 | |
| 40 | X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile" |
| 41 | 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}" |
| 42 | PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland" |
| 43 | PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb" |
| 44 | PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam" |
| 45 | PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio" |
| 46 | PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base" |
| 47 | PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" |
| 48 | |
| 49 | PACKAGES =+ "libfreerdp" |
| 50 | |
| 51 | LEAD_SONAME = "libfreerdp.so" |
| 52 | FILES_libfreerdp = "${libdir}/lib*${SOLIBS}" |
| 53 | |
| 54 | PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*" |
| 55 | |
| 56 | # we will need winpr-makecert to generate TLS certificates |
| 57 | do_install_append () { |
| 58 | install -d ${D}${bindir} |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 59 | install -m755 winpr/tools/makecert-cli/winpr-makecert ${D}${bindir} |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 60 | rm -rf ${D}${libdir}/cmake |
| 61 | rm -rf ${D}${libdir}/freerdp |
| 62 | } |
| 63 | |
| 64 | python 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 | } |