Ticket #48400: Portfile

File Portfile, 2.3 KB (added by detlevd (Detlev Droege), 7 years ago)

Portfile replacement for 0.4.5

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       qt5 1.0
5
6name            qjackctl
7version         0.4.5
8license         GPL-2
9categories      audio
10maintainers     nomaintainer
11platforms       darwin
12homepage        http://qjackctl.sourceforge.net/
13master_sites    http://downloads.sourceforge.net/qjackctl
14# master_sites    sourceforge:projects/qjackctl/files/qjackctl/${version}
15
16description \
17    QjackCtl is a simple Qt application to control the JACK sound server daemon.
18
19long_description \
20    ${description}
21
22universal_variant  no
23
24checksums       rmd160  d8746505931b81658b4a8ec05b28857634b7f8a9 \
25                sha256  c50da569ec8466ac6cc72c65e2d8212eb9c40149daed0a10fb7795ff9ddc4ab7
26
27depends_lib-append port:jack
28depends_lib-append  port:qt5
29
30configure.cxxflags-append --std=c++11
31
32configure.args-append --with-jack=${prefix} \
33                      --with-qt5=${qt_dir} \
34                      --disable-alsa-seq
35configure.args-delete --disable-dependency-tracking
36
37post-destroot {
38    # move the created .app to MacPorts' applications directory ...
39    move ${destroot}${prefix}/bin/qjackctl.app ${destroot}${applications_dir}
40    # ... and link the actual executable back to the bindir
41    ln -s ${applications_dir}/qjackctl.app/Contents/MacOS/qjackctl ${destroot}${prefix}/bin/qjackctl
42}
43
44variant debug description "Enable debugging" {}
45
46if {[variant_isset debug]} {
47    configure.args-append --enable-debug
48} else {
49    configure.args-append --disable-debug
50}
51
52variant portaudio description "enable PortAudio interface" {}
53default_variants +portaudio
54
55if {[variant_isset portaudio]} {
56    configure.args-append --enable-portaudio
57    depends_lib-append    port:portaudio
58} else {
59    configure.args-append --disable-portaudio
60}
61
62variant stacktrace description "enable debugger stack-trace" {}
63
64if {[variant_isset stacktrace]} {
65    configure.args-append --enable-stacktrace
66} else {
67    configure.args-append --disable-stacktrace
68}
69
70variant dbus description "enable D-Bus interface" {}
71default_variants +dbus
72
73if {[variant_isset dbus]} {
74    configure.args-append --enable-dbus
75} else {
76    configure.args-append --disable-dbus
77}
78
79livecheck.url   http://sourceforge.net/projects/${name}/files/
80livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"