Ticket #38241: Portfile

File Portfile, 2.8 KB (added by macports@…, 11 years ago)
Line 
1# $id$
2
3PortSystem 1.0
4PortGroup cmake 1.0
5
6name            quassel
7version         0.8.0
8categories      irc
9license         GPL-3
10platforms       darwin
11maintainers     nomaintainer
12homepage        http://quassel-irc.org
13master_sites    ${homepage}/pub
14distname        ${name}-${version}
15
16checksums       rmd160  413e77a3359aac44f75f0952094fef561f47033d \
17                sha256  a3515bd18e2b100eb9a72480e76b1faefaa5e84cdb236b6af1f05b477a1e9071
18
19depends_lib     port:qt4-mac
20
21use_bzip2       yes
22
23configure.args  -DWANT_CORE=OFF \
24                -DWANT_QTCLIENT=OFF \
25                -DWANT_MONO=OFF \
26                -DWITH_CRYPT=OFF \
27                -DWITH_DBUS=OFF \
28                -DWITH_KDE=OFF \
29                -DWITH_PHONON=OFF \
30                -DWITH_OPENSSL=OFF
31
32if {${name} == ${subport}} {
33
34    description \
35        Qt4 IRC client
36    long_description \
37        Quassel IRC is a modern, cross-platform IRC client. This port installs \
38        the monolithic variant, which does not require a separate Quassel core.
39
40    configure.args-replace s/-DWANT_MONO=OFF/-DWANT_MONO=ON/
41
42    destroot {
43        xinstall -m 755 -d "${destroot}${applications_dir}"
44        copy "${worksrcpath}/Quassel.app" "${destroot}${applications_dir}"
45    }
46}
47
48subport ${name}-client {
49
50    description \
51        Qt4 IRC client - client component
52    long_description \
53        Quassel IRC is a modern, cross-platform, distributed IRC client, \
54        meaning that one (or multiple) client(s) can attach to and detach from \
55        a central core - much like the popular combination of screen and a \
56        text-based IRC client such as WeeChat, but graphical.
57
58    depends_lib-append port:qt4-mac-sqlite3-plugin
59   
60    if {[variant_isset crypt]} {
61        depends_run-append port:qca-ossl
62    }
63
64    configure.args-replace s/-DWANT_QTCLIENT=OFF/-DWANT_QTCLIENT=ON/
65
66    destroot {
67        xinstall -m 755 -d "${destroot}${applications_dir}"
68        copy "${worksrcpath}/Quassel Client.app" \
69             "${destroot}${applications_dir}"
70    }
71}
72
73variant crypt description \
74    {Support per-channel and per-query blowfish encryption via qca} {
75    depends_lib-append      port:qca
76    configure.args-replace  s/-DWITH_CRYPT=OFF/-DWITH_CRYPT=ON/
77}
78
79variant dbus description {Enable dbus support} {
80    depends_lib-append      port:dbusmenu-qt
81    configure.args-replace  s/-DWITH_DBUS=OFF/-DWITH_DBUS=ON/
82}
83
84variant openssl description {Enable OpenSSL support} {
85    depends_lib-append      port:openssl
86    configure.args-replace  s/-DWITH_OPENSSL=OFF/-DWITH_OPENSSL=ON/
87}
88
89variant phonon description {Enable support for audio notifications via phonon} {
90    depends_lib-append      port:phonon
91    configure.args-replace  s/-DWITH_PHONON=OFF/-DWITH_PHONON=ON/
92}
93
94default_variants    +crypt +dbus +phonon +openssl