void-packages/srcpkgs/freerdp/template

48 lines
1.4 KiB
Plaintext

# Template file for 'freerdp'
pkgname=freerdp
version=1.0.2
revision=3
wrksrc="FreeRDP-${version}"
build_style=cmake
configure_args="-DWITH_JPEG=ON -DWITH_PULSE=ON -DWITH_XINERAMA=ON
-DWITH_XEXT=ON -DWITH_XCURSOR=ON -DWITH_XI=ON -DWITH_XRENDER=ON -DWITH_XV=ON
-DWITH_XKBFILE=ON -DWITH_FFMPEG=ON -DWITH_GSTREAMER=OFF -DWITH_ALSA=ON
-DWITH_CUPS=OFF -DWITH_PCSC=OFF -DCMAKE_INSTALL_LIBDIR=lib"
hostmakedepends="pkg-config cmake"
makedepends="
alsa-lib-devel libjpeg-turbo-devel pulseaudio-devel libXinerama-devel
libXext-devel libXcursor-devel libXi-devel libXrender-devel libXv-devel
libxkbfile-devel ffmpeg-devel libressl-devel zlib-devel"
short_desc="A Free RDP (Remote Desktop Protocol) client"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Apache-2.0"
homepage="http://freerdp.sourceforge.net"
distfiles="https://github.com/FreeRDP/FreeRDP/archive/${version}.tar.gz"
checksum=c0f137df7ab6fb76d7e7d316ae4e0ca6caf356e5bc0b5dadbdfadea5db992df1
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) configure_args+=" -DWITH_SSE2=ON";;
esac
pre_configure() {
sed -e 's,des_,DES_,g' -i libfreerdp-core/ntlmssp.c
}
libfreerdp_package() {
replaces="freerdp<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"
}
}