# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.1 epoch 3 github.setup FreeRDP FreeRDP 3.5.1 github.tarball_from releases revision 1 categories net license Apache maintainers nomaintainer description A Remote Desktop Protocol implementation long_description FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released \ under the Apache license. homepage https://www.freerdp.com checksums rmd160 305e517c1d54579b56b4b0969e8965bc7d70630a \ sha256 28036fd3c7d23ad320fd3eb2463119d1bde0dddb624b5a8353bf43197f1044c0 \ size 9338947 depends_build-append \ path:bin/pkg-config:pkgconfig depends_lib-append port:libsdl2_ttf \ port:xorg-libX11 \ port:xorg-libXcursor \ port:xorg-libXext \ port:xorg-libXi \ port:xorg-libXinerama \ port:xorg-libxkbfile \ port:xorg-libXrandr \ port:xorg-libXv \ port:xrender \ port:zlib \ path:include/turbojpeg.h:libjpeg-turbo \ path:lib/libssl.dylib:openssl \ path:lib/pkgconfig/libusb-1.0.pc:libusb \ path:lib/pkgconfig/cairo.pc:cairo worksrcdir freerdp-${version} patchfiles-append patch-cmake-docbook.diff # AVAudioBuffer was introduced in OS X 10.10 if {${os.platform} eq "darwin" && ${os.major} < 14} { configure.args-append \ -DCHANNEL_RDPSND=OFF } post-patch { if {[string match "*gcc*" ${configure.compiler}]} { reinplace "s:-fobjc-nonfragile-abi::" \ ${worksrcpath}/client/Mac/cli/CMakeLists.txt \ ${worksrcpath}/client/Mac/CMakeLists.txt } } use_xcode yes configure.args-append \ -DWITH_ALSA=OFF \ -DWITH_CCACHE=OFF \ -DWITH_FFMPEG=OFF \ -DWITH_X11=ON \ -DWITH_MANPAGES=OFF \ -DWITH_PULSE=OFF \ -DWITH_JPEG=ON \ -DWITH_LAME=OFF \ -DWITH_FAAD2=OFF \ -DWITH_FAAC=OFF \ -DWITH_SOXR=OFF \ -DWITH_CUPS=ON \ -DWITH_CAIRO=ON \ -DWITH_PKCS11=OFF # ffmpeg only supports VDA (video hardware acceleration, mostly H264) on 10.6.3+ (#48397) if {${os.platform} ne "darwin" || ${os.major} > 10 || (${os.major} == 10 && ${os.minor} >= 3)} { set ffmpeg_ver 6 configure.args-replace -DWITH_FFMPEG=OFF -DWITH_FFMPEG=ON depends_lib-append port:ffmpeg${ffmpeg_ver} configure.pkg_config_path \ ${prefix}/libexec/ffmpeg${ffmpeg_ver}/lib/pkgconfig } # I've seen manpage building fail for unclear reasons, so provide a variant to turn it off variant docs description {build the manpages} { depends_build-append \ port:libxslt \ port:docbook-xsl-nons configure.args-replace \ -DWITH_MANPAGES=OFF \ -DWITH_MANPAGES=ON } default_variants-append +docs variant pulseaudio description {build PulseAudio support} { depends_lib-append \ port:pulseaudio configure.args-replace \ -DWITH_PULSE=OFF \ -DWITH_PULSE=ON } variant codecs description {support MP3, FAAD2, FAAC and SOXR codecs} { depends_lib-append \ port:lame \ port:faad2 \ port:faac \ port:soxr configure.args-replace \ -DWITH_LAME=OFF \ -DWITH_LAME=ON \ -DWITH_FAAD2=OFF \ -DWITH_FAAD2=ON \ -DWITH_FAAC=OFF \ -DWITH_FAAC=ON \ -DWITH_SOXR=OFF \ -DWITH_SOXR=ON } build.post_args-append -k set app_dir ${applications_dir}/MacFreeRDP.app/Contents post-destroot { xinstall -d ${destroot}${app_dir} move ${destroot}${prefix}/Info.plist ${destroot}${prefix}/PkgInfo \ ${destroot}${app_dir} xinstall -d ${destroot}${app_dir}/MacOS move ${destroot}${prefix}/bin/MacFreeRDP ${destroot}${app_dir}/MacOS xinstall -d ${destroot}${app_dir}/Resources move ${destroot}${prefix}/share/FreeRDP.icns \ {*}[glob ${destroot}${prefix}/share/*.nib] \ ${destroot}${app_dir}/Resources xinstall -d ${destroot}${app_dir}/Resources/en.lproj move {*}[glob ${destroot}${prefix}/share/*.strings] \ ${destroot}${app_dir}/Resources/en.lproj }