void-packages/srcpkgs/freerdp/template
2018-08-06 23:05:51 +02:00

43 lines
1.5 KiB
Bash

# Template file for 'freerdp'
pkgname=freerdp
version=2.0.0rc3
revision=1
wrksrc="FreeRDP-${version/r/-r}"
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=OFF
-DWITH_XCURSOR=ON -DWITH_XEXT=ON -DWITH_XI=ON -DWITH_XINERAMA=ON
-DWITH_XKBFILE=ON -DWITH_XRENDER=ON -DWITH_XV=ON"
hostmakedepends="pkg-config xmlto"
makedepends="alsa-lib-devel ffmpeg-devel glib-devel
libXcursor-devel libXinerama-devel libXrandr-devel libXv-devel
libjpeg-turbo-devel libressl-devel libxkbfile-devel pulseaudio-devel"
short_desc="Free RDP (Remote Desktop Protocol) client"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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/r/-r}.tar.gz"
checksum=d32d4a092e468deb3a1296e8358f900bf7e80afd0876d815ba43622ce29596c5
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) configure_args+=" -DWITH_SSE2=ON";;
esac
libfreerdp_package() {
replaces="${sourcepkg}<1.0.2_2"
short_desc+=" - runtime libraries"
pkg_install() {
vmove usr/lib/*.so.*
}
}
freerdp-devel_package() {
short_desc+=" - development files"
depends="lib${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}