source: trunk/dports/net/FreeRDP/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 139229 2015-08-08 03:10:35Z jeremyhu@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}
15categories          net
16platforms           darwin
17license             Apache
18maintainers         nomaintainer
19description         A Remote Desktop Protocol implementation
20long_description    FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released \
21                    under the Apache license.
22
23homepage            http://www.freerdp.com
24
25checksums           rmd160  d7ae573f32a0e53b467bb5e0526d52b8e94a6dfe \
26                    sha256  5e4035d314134d7afa3891c88039c278c4bc6e607e5e322e4e10c066013a6437
27
28depends_build-append \
29                    port:pkgconfig \
30                    port:libxslt \
31                    port:docbook-xsl
32
33depends_lib-append  path:lib/libavcodec.dylib:ffmpeg \
34                    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
48post-patch {
49    if {[string match "*gcc*" ${configure.compiler}]} {
50        reinplace "s:-fobjc-nonfragile-abi::" \
51            ${worksrcpath}/client/Mac/cli/CMakeLists.txt \
52            ${worksrcpath}/client/Mac/CMakeLists.txt
53    }
54
55    if {${os.platform} eq "darwin" && ${os.major} == 10} {
56        # move ${worksrcpath}/client/Mac/PasswordDialog.xib ${worksrcpath}/client/Mac/PasswordDialog.xib.old
57        # move ${worksrcpath}/client/Mac/cli/en.lproj/MainMenu.xib ${worksrcpath}/client/Mac/cli/en.lproj/MainMenu.xib.old
58        # move ${worksrcpath}/client/Mac/cli/MainMenu.xib ${worksrcpath}/client/Mac/cli/MainMenu.xib.old
59        copy -force ${filespath}/PasswordDialog.xib ${worksrcpath}/client/Mac/PasswordDialog.xib
60        copy -force ${filespath}/en-MainMenu.xib ${worksrcpath}/client/Mac/cli/en.lproj/MainMenu.xib
61        copy -force ${filespath}/MainMenu.xib ${worksrcpath}/client/Mac/cli/MainMenu.xib
62    }
63}
64
65cmake.out_of_source yes
66
67# optional ffmpeg support is disabled by default
68
69configure.args-append \
70                    "-DWITH_X11=ON" \
71                    "-DWITH_FFMPEG=ON" \
72                    "-DWITH_ALSA=OFF"
73
74variant pulseaudio description {Enable pulseaudio sound support (audio input, audio output and multimedia redirection)} {
75    depends_lib-append      port:pulseaudio
76    configure.args-append   "-DWITH_PULSE=ON"
77}
78
79livecheck.type      none
Note: See TracBrowser for help on using the repository browser.