Ticket #68413: Portfile

File Portfile, 2.3 KB (added by kencu (Ken), 13 months ago)

qt5 move WIP Portfile - incomplete but gets to the build

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
3PortSystem              1.0
4PortGroup               qmake5 1.0
5PortGroup               openssl 1.0
6
7name                    x2goclient
8version                 4.1.2.3
9revision                0
10
11checksums           sha256  ab8bb3c78d31625c749e42f15f810fe3d242927a15298308c13dea3b915aca3c \
12                    rmd160  65a8505d43101c9683a0699039a510b5e117e11f \
13                    size    2582072
14
15categories              aqua net
16platforms               macosx
17license                 {GPL-2+ OpenSSLException}
18
19maintainers             {ionic @Ionic} openmaintainer
20
21description             vnc-like remote desktop software
22long_description        X2Go is based on the (now closed source) NX libraries which provide \
23                        terminal server services. \
24                        This is a client application to access the remote side.
25
26homepage                https://www.x2go.org/
27master_sites            https://code.x2go.org/releases/source/${name}/
28
29installs_libs           no
30
31depends_lib-append      port:libssh \
32                        port:xorg-libX11
33
34depends_run-append      port:pulseaudio \
35                        port:nxproxy \
36                        port:xmodmap \
37                        port:xauth
38
39pre-build {
40    move ${worksrcpath}/VERSION ${worksrcpath}/VERSION.txt
41}
42
43configure.args-append    x2goclient.pro
44
45destroot {
46    copy ${worksrcpath}/client_build/${name}.app ${destroot}${applications_dir}
47    xinstall -d -m 755 ${destroot}${applications_dir}/${name}.app/Contents/exe
48    ln -s ${prefix}/bin/nxproxy ${destroot}${applications_dir}/${name}.app/Contents/exe/nxproxy
49    ln -s ${prefix}/bin/xauth ${destroot}${applications_dir}/${name}.app/Contents/exe/nxauth
50    ln -s ${applications_dir}/${name}.app/Contents/MacOS/${name} ${destroot}${prefix}/bin/${name}
51
52    copy ${worksrcpath}/res/audio/startup.wav ${destroot}${applications_dir}/${name}.app/Contents/Resources/
53}
54
55variant debug description {Builds a debug version. Only really useful with a debugging-enabled version of Qt.} {
56    configure.args-replace  CONFIG+=\"release\" \
57                            CONFIG+=\"debug\"
58}
59
60livecheck.url           https://code.x2go.org/releases/source/x2goclient/
61livecheck.regex         ${name}-(\\d+(?:\\.\\d+)*)\\.tar.gz