source: trunk/dports/net/FreeRDP/Portfile

Last change on this file was 152669, checked in by ryandesign@…, 10 months ago

FreeRDP: remove unnecessary quotation marks

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- 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
2# $Id: Portfile 152669 2016-09-14 14:13:43Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github  1.0
6PortGroup           cmake   1.0
7
8set version_name    1.1.0-beta1
9# set to date, hash of latest commit to github stable-1.1 branch
10set version_date    2015031201
11set git_commit      770c67d
12github.setup        FreeRDP FreeRDP ${git_commit}
13epoch               1
14version             ${version_name}-${version_date}
15revision            3
16categories          net
17platforms           darwin
18license             Apache
19maintainers         nomaintainer
20description         A Remote Desktop Protocol implementation
21long_description    FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released \
22                    under the Apache license.
23
24homepage            http://www.freerdp.com
25
26checksums           rmd160  d7ae573f32a0e53b467bb5e0526d52b8e94a6dfe \
27                    sha256  5e4035d314134d7afa3891c88039c278c4bc6e607e5e322e4e10c066013a6437
28
29depends_build-append \
30                    port:pkgconfig \
31                    port:libxslt \
32                    port:docbook-xsl
33
34depends_lib-append  port:xorg-libX11 \
35                    port:xorg-libXcursor \
36                    port:xorg-libXext \
37                    port:xorg-libXi \
38                    port:xorg-libXinerama \
39                    port:xorg-libXv \
40                    port:xrender \
41                    port:zlib \
42                    path:lib/libssl.dylib:openssl
43
44patchfiles          patch-client_mac_mrdview.diff \
45                    patch-winpr-include-winpr-platform.h.diff \
46                    patch-freerdp.pc.in.diff \
47                    patch-ffmpeg-3.0.diff
48
49post-patch {
50    if {[string match "*gcc*" ${configure.compiler}]} {
51        reinplace "s:-fobjc-nonfragile-abi::" \
52            ${worksrcpath}/client/Mac/cli/CMakeLists.txt \
53            ${worksrcpath}/client/Mac/CMakeLists.txt
54    }
55
56    if {${os.platform} eq "darwin" && ${os.major} == 10} {
57        # move ${worksrcpath}/client/Mac/PasswordDialog.xib ${worksrcpath}/client/Mac/PasswordDialog.xib.old
58        # move ${worksrcpath}/client/Mac/cli/en.lproj/MainMenu.xib ${worksrcpath}/client/Mac/cli/en.lproj/MainMenu.xib.old
59        # move ${worksrcpath}/client/Mac/cli/MainMenu.xib ${worksrcpath}/client/Mac/cli/MainMenu.xib.old
60        copy -force ${filespath}/PasswordDialog.xib ${worksrcpath}/client/Mac/PasswordDialog.xib
61        copy -force ${filespath}/en-MainMenu.xib ${worksrcpath}/client/Mac/cli/en.lproj/MainMenu.xib
62        copy -force ${filespath}/MainMenu.xib ${worksrcpath}/client/Mac/cli/MainMenu.xib
63    }
64}
65
66cmake.out_of_source yes
67
68# optional ffmpeg support is disabled by default
69
70configure.args-append \
71                    -DWITH_X11=ON \
72                    -DWITH_ALSA=OFF
73
74# ffmpeg only supports VDA (video hardware acceleration, mostly H264) on 10.6.3+ (#48397)
75if {${os.major} > 10 || (${os.major} == 10 && ${os.minor} >= 3)} {
76    configure.args-append   -DWITH_FFMPEG=ON
77    depends_lib-append      path:lib/libavcodec.dylib:ffmpeg
78}
79
80variant pulseaudio description {Enable pulseaudio sound support (audio input, audio output and multimedia redirection)} {
81    depends_lib-append      port:pulseaudio
82    configure.args-append   -DWITH_PULSE=ON
83}
84
85livecheck.type      none
Note: See TracBrowser for help on using the repository browser.