From 6de6447096b2bd73b2af0545ece84bee142d5535 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sun, 8 Aug 2021 12:11:18 +0200 Subject: [PATCH] freerdp: build freerdp-server --- common/shlibs | 3 +++ srcpkgs/freerdp-server | 1 + srcpkgs/freerdp-server-devel | 1 + srcpkgs/freerdp/template | 49 +++++++++++++++++++++++++++++++++--- srcpkgs/libfreerdp-server | 1 + 5 files changed, 51 insertions(+), 4 deletions(-) create mode 120000 srcpkgs/freerdp-server create mode 120000 srcpkgs/freerdp-server-devel create mode 120000 srcpkgs/libfreerdp-server diff --git a/common/shlibs b/common/shlibs index 39136a41cf..b536301495 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1581,6 +1581,9 @@ libfreerdp-codec.so.1.0 libfreerdp-2.2.0_3 libfreerdp-gdi.so.1.0 libfreerdp-2.2.0_3 libfreerdp-cache.so.1.0 libfreerdp-2.2.0_3 libuwac0.so.0 libfreerdp-2.2.0_3 +libfreerdp-server2.so.2 libfreerdp-server-2.4.0_1 +libfreerdp-shadow-subsystem2.so.2 libfreerdp-server-2.4.0_1 +libfreerdp-shadow2.so.2 libfreerdp-server-2.4.0_1 libcppunit-1.15.so.1 libcppunit-1.15.1_1 libcalc.so.2.12.7.1 libcalc-2.12.7.1_1 libcustcalc.so.2.12.7.1 libcalc-2.12.7.1_1 diff --git a/srcpkgs/freerdp-server b/srcpkgs/freerdp-server new file mode 120000 index 0000000000..ff5b2c64c0 --- /dev/null +++ b/srcpkgs/freerdp-server @@ -0,0 +1 @@ +freerdp \ No newline at end of file diff --git a/srcpkgs/freerdp-server-devel b/srcpkgs/freerdp-server-devel new file mode 120000 index 0000000000..ff5b2c64c0 --- /dev/null +++ b/srcpkgs/freerdp-server-devel @@ -0,0 +1 @@ +freerdp \ No newline at end of file diff --git a/srcpkgs/freerdp/template b/srcpkgs/freerdp/template index bf89ee95bf..dd0ad5e349 100644 --- a/srcpkgs/freerdp/template +++ b/srcpkgs/freerdp/template @@ -1,32 +1,41 @@ # Template file for 'freerdp' pkgname=freerdp version=2.4.0 -revision=1 +revision=2 wrksrc="FreeRDP-${version}" build_style=cmake configure_args="-DWITH_ALSA=ON -DWITH_CUPS=OFF -DWITH_FFMPEG=ON -DWITH_GSTREAMER_0_10=OFF -DWITH_GSTREAMER_1_0=OFF -DWITH_JPEG=ON -DWITH_LIBSYSTEMD=OFF -DWITH_PCSC=OFF -DWITH_PULSE=ON -DWITH_WAYLAND=ON -DWITH_XCURSOR=ON -DWITH_XEXT=ON -DWITH_XI=ON -DWITH_XINERAMA=ON - -DWITH_XKBFILE=ON -DWITH_XRENDER=ON -DWITH_XV=ON + -DWITH_XKBFILE=ON -DWITH_XRENDER=ON -DWITH_XV=ON -DWITH_SERVER=ON -DWAYLAND_SCANNER=/usr/bin/wayland-scanner" hostmakedepends="pkg-config xmlto wayland-devel" makedepends="alsa-lib-devel ffmpeg-devel glib-devel libusb-devel - libXcursor-devel libXinerama-devel libXrandr-devel libXv-devel + libXcursor-devel libXinerama-devel libXrandr-devel libXv-devel libjpeg-turbo-devel openssl-devel libxkbfile-devel pulseaudio-devel - libxkbcommon-devel wayland-devel cairo-devel" + libxkbcommon-devel wayland-devel cairo-devel libXdamage-devel" short_desc="Free RDP (Remote Desktop Protocol) client" maintainer="Orphaned " license="Apache-2.0" homepage="https://www.freerdp.com/" distfiles="https://github.com/FreeRDP/FreeRDP/archive/${version}.tar.gz" checksum=80eb7e09e2a106345d07f0985608c480341854b19b6f8fc653cb7043a9531e52 +CFLAGS="-Wno-dev" case "$XBPS_TARGET_MACHINE" in i686*|x86_64*) configure_args+=" -DWITH_SSE2=ON";; armv5tel*) configure_args+=" -DWITH_NEON=OFF";; esac +post_install() { + rm -f ${DESTDIR}/usr/lib64 +} + +# first we want to separate -server, everything else then goes to client +subpackages="libfreerdp-server freerdp-server freerdp-server-devel libfreerdp + freerdp-devel" + libfreerdp_package() { replaces="${sourcepkg}<1.0.2_2" short_desc+=" - runtime libraries" @@ -45,3 +54,35 @@ freerdp-devel_package() { vmove "usr/lib/*.so" } } + +libfreerdp-server_package() { + short_desc="Free RDP (Remote Desktop Protocol) server - runtime files" + depends="libfreerdp>=${version}_${revision}" + pkg_install() { + vmove "usr/lib/libfreerdp-server*.so.*" + vmove "usr/lib/libfreerdp-shadow*.so.*" + } +} + +freerdp-server_package() { + short_desc="Free RDP (Remote Desktop Protocol) server" + depends="libfreerdp-server>=${version}_${revision}" + pkg_install() { + vmove usr/bin/freerdp-proxy + vmove usr/bin/freerdp-shadow-cli + vmove usr/share/man/man1/freerdp-shadow-cli.1 + } +} + +freerdp-server-devel_package() { + depends="libfreerdp-server>=${version}_${revision}" + short_desc="Free RDP (Remote Desktop Protocol) server - development files" + pkg_install() { + vmove usr/lib/cmake/FreeRDP-Server2 + vmove usr/lib/cmake/FreeRDP-Shadow2 + vmove usr/lib/pkgconfig/freerdp-server2.pc + vmove usr/lib/pkgconfig/freerdp-shadow2.pc + vmove "usr/lib/libfreerdp-server*.so" + vmove "usr/lib/libfreerdp-shadow*.so" + } +} diff --git a/srcpkgs/libfreerdp-server b/srcpkgs/libfreerdp-server new file mode 120000 index 0000000000..ff5b2c64c0 --- /dev/null +++ b/srcpkgs/libfreerdp-server @@ -0,0 +1 @@ +freerdp \ No newline at end of file