void-packages/srcpkgs/freerdp3/template

108 lines
4.1 KiB
Bash

# Template file for 'freerdp3'
pkgname=freerdp3
version=3.9.0
revision=1
build_style=cmake
build_helper=qemu
configure_args="-DCHANNEL_URBDRC_CLIENT=ON
-DPKG_CONFIG_RELOCATABLE=OFF -DPROXY_PLUGINDIR=/usr/lib/${pkgname}/server/proxy/plugins
-DRDTK_FORCE_STATIC_BUILD=ON -DWAYLAND_SCANNER=/usr/bin/wayland-scanner
-DWITH_BINARY_VERSIONING=ON
-DWITH_ALSA=ON -DWITH_CHANNELS=ON -DWITH_CLIENT_CHANNELS=ON -DWITH_CUPS=ON
-DWITH_FREERDP_DEPRECATED_COMMANDLINE=ON -DWITH_FUSE=ON -DWITH_GSTREAMER_1_0=OFF
-DWITH_ICU=ON -DWITH_JPEG=ON -DWITH_LIBSYSTEMD=OFF -DWITH_PULSE=ON -DWITH_SAMPLE=OFF
-DWITH_SERVER=ON -DWITH_SERVER_CHANNELS=ON -DWITH_WINPR_TOOLS=ON -DWITH_X11=ON
-DWITH_XCURSOR=ON -DWITH_XEXT=ON -DWITH_XI=ON -DWITH_XINERAMA=ON -DWITH_XKBFILE=ON
-DWITH_XRENDER=ON -DWITH_XV=ON -DUWAC_FORCE_STATIC_BUILD=$(vopt_if wayland ON OFF)
-DWITH_AAD=$(vopt_if aad ON OFF) -DWITH_CAIRO=$(vopt_if ffmpeg OFF ON)
-DWITH_CLIENT_SDL=$(vopt_if sdl2 ON OFF) -DWITH_DSP_FFMPEG=$(vopt_if ffmpeg ON OFF)
-DWITH_FFMPEG=$(vopt_if ffmpeg ON OFF) -DWITH_PCSC=$(vopt_if smartcard ON OFF)
-DWITH_PKCS11=$(vopt_if smartcard ON OFF) -DWITH_SWSCALE=$(vopt_if ffmpeg ON OFF)
-DWITH_WAYLAND=$(vopt_if wayland ON OFF) -DWITH_WEBVIEW=$(vopt_if webview ON OFF)
-DWITH_CLIENT_SDL_VERSIONED=$(vopt_if sdl2 ON OFF)"
hostmakedepends="pkg-config $(vopt_if wayland wayland-devel)"
makedepends="alsa-lib-devel cups-devel fuse3-devel icu-devel libXcursor-devel
libXdamage-devel libXinerama-devel libXrandr-devel libXv-devel
libjpeg-turbo-devel libusb-devel libxkbfile-devel mit-krb5-devel openssl-devel
pulseaudio-devel uriparser-devel $(vopt_if aad cJSON-devel)
$(vopt_if ffmpeg ffmpeg6-devel cairo-devel) $(vopt_if sdl2 SDL2_ttf-devel)
$(vopt_if smartcard 'pcsclite-devel pkcs11-helper-devel')
$(vopt_if wayland 'libxkbcommon-devel wayland-devel')
$(vopt_if webview libwebkit2gtk41-devel)"
short_desc="Free RDP (Remote Desktop Protocol) client"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="Apache-2.0"
homepage="https://www.freerdp.com/"
changelog="https://raw.githubusercontent.com/FreeRDP/FreeRDP/master/ChangeLog"
distfiles="https://github.com/FreeRDP/FreeRDP/archive/${version}.tar.gz"
checksum=a1d2946c67037bf6bb8aa2f0441c7cacd5e92c835d776cecffb4fcdbaa45ec4f
CFLAGS="-Wno-dev"
# wayland - deprecated, sdl2 - experimental
build_options="aad ffmpeg sdl2 smartcard wayland webview"
build_options_default="aad ffmpeg sdl2 smartcard"
desc_option_aad="Compile with support for Azure AD authentication"
desc_option_smartcard="Build with smartcard support"
desc_option_webview="Build with WebView support for AAD login popup browser"
if [ "$build_option_webview" -a -z "$build_option_sdl2" ]; then
broken="WebView requires SDL"
fi
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) configure_args+=" -DWITH_SSE2=ON" ;;
arm*) configure_args+=" -DUSE_UNWIND=OFF -DWITH_NEON=OFF" ;;
esac
if [ "$CROSS_BUILD" ]; then
configure_args+="
-DCMAKE_CXX_COMPILER_AR=/usr/bin/${XBPS_CROSS_TRIPLET}-ar
-DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/${XBPS_CROSS_TRIPLET}-ranlib"
pre_configure() {
export CXX="$XBPS_WRAPPERDIR/${XBPS_CROSS_TRIPLET}-c++"
}
fi
# first we want to separate -server, everything else then goes to client
subpackages="libfreerdp3-server freerdp3-server libfreerdp3 freerdp3-devel"
libfreerdp3_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
freerdp3-devel_package() {
short_desc+=" - development files"
depends="cJSON-devel libfreerdp3-server>=${version}_${revision}
libfreerdp3>=${version}_${revision} openssl-devel"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}
libfreerdp3-server_package() {
short_desc="Free RDP (Remote Desktop Protocol) server - runtime libraries"
pkg_install() {
vmove "usr/lib/freerdp3/server/proxy/plugins"
vmove "usr/lib/libfreerdp-server*.so.*"
vmove "usr/lib/libfreerdp-shadow*.so.*"
}
}
freerdp3-server_package() {
short_desc="Free RDP (Remote Desktop Protocol) server"
pkg_install() {
vmove usr/bin/freerdp-proxy3
vmove usr/bin/freerdp-shadow-cli3
vmove usr/share/man/man1/freerdp-proxy3.1
vmove usr/share/man/man1/freerdp-shadow-cli3.1
}
}