# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.0 set version_name 1.1.0-beta1 # set to date, hash of latest commit to github stable-1.1 branch set version_date 2015031201 set git_commit 770c67d github.setup FreeRDP FreeRDP ${git_commit} epoch 1 version ${version_name}-${version_date} revision 3 categories net platforms darwin 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 http://www.freerdp.com checksums rmd160 d7ae573f32a0e53b467bb5e0526d52b8e94a6dfe \ sha256 5e4035d314134d7afa3891c88039c278c4bc6e607e5e322e4e10c066013a6437 depends_build-append \ port:pkgconfig \ port:libxslt \ port:docbook-xsl depends_lib-append port:xorg-libX11 \ port:xorg-libXcursor \ port:xorg-libXext \ port:xorg-libXi \ port:xorg-libXinerama \ port:xorg-libXv \ port:xrender \ port:zlib \ path:lib/libssl.dylib:openssl patchfiles patch-client_mac_mrdview.diff \ patch-winpr-include-winpr-platform.h.diff \ patch-freerdp.pc.in.diff \ patch-ffmpeg-3.0.diff post-patch { if {[string match "*gcc*" ${configure.compiler}]} { reinplace "s:-fobjc-nonfragile-abi::" \ ${worksrcpath}/client/Mac/cli/CMakeLists.txt \ ${worksrcpath}/client/Mac/CMakeLists.txt } if {${os.platform} eq "darwin" && ${os.major} == 10} { # move ${worksrcpath}/client/Mac/PasswordDialog.xib ${worksrcpath}/client/Mac/PasswordDialog.xib.old # move ${worksrcpath}/client/Mac/cli/en.lproj/MainMenu.xib ${worksrcpath}/client/Mac/cli/en.lproj/MainMenu.xib.old # move ${worksrcpath}/client/Mac/cli/MainMenu.xib ${worksrcpath}/client/Mac/cli/MainMenu.xib.old copy -force ${filespath}/PasswordDialog.xib ${worksrcpath}/client/Mac/PasswordDialog.xib copy -force ${filespath}/en-MainMenu.xib ${worksrcpath}/client/Mac/cli/en.lproj/MainMenu.xib copy -force ${filespath}/MainMenu.xib ${worksrcpath}/client/Mac/cli/MainMenu.xib } } cmake.out_of_source yes # optional ffmpeg support is disabled by default configure.args-append \ -DWITH_X11=ON \ -DWITH_ALSA=OFF # ffmpeg only supports VDA (video hardware acceleration, mostly H264) on 10.6.3+ (#48397) if {${os.major} > 10 || (${os.major} == 10 && ${os.minor} >= 3)} { configure.args-append -DWITH_FFMPEG=ON depends_lib-append path:lib/libavcodec.dylib:ffmpeg } variant pulseaudio description {Enable pulseaudio sound support (audio input, audio output and multimedia redirection)} { depends_lib-append port:pulseaudio configure.args-append -DWITH_PULSE=ON } livecheck.type none