source: trunk/dports/irc/quassel/Portfile @ 104434

Last change on this file since 104434 was 104434, checked in by larryv@…, 7 years ago

quassel: Fix app bundle version number (#38466).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 104434 2013-03-25 18:08:10Z larryv@macports.org $
3
4PortSystem 1.0
5PortGroup cmake 1.0
6
7name            quassel
8version         0.8.0
9revision        1
10categories      irc
11license         GPL-3
12platforms       darwin
13maintainers     sicherha.de:macports openmaintainer
14homepage        http://quassel-irc.org
15master_sites    ${homepage}/pub
16
17checksums       rmd160  413e77a3359aac44f75f0952094fef561f47033d \
18                sha256  a3515bd18e2b100eb9a72480e76b1faefaa5e84cdb236b6af1f05b477a1e9071
19
20depends_lib     port:qt4-mac
21
22use_bzip2       yes
23
24# Do not use git to find out the program version - there is no ".git" directory
25# in the source tarball
26patchfiles      patch-scripts-build-macosx_makebundle.py.diff
27
28post-patch {
29    reinplace "s|@@VERSION@@|${version}|" \
30        ${worksrcpath}/scripts/build/macosx_makebundle.py
31}
32
33configure.args  -DWANT_CORE=OFF \
34                -DWANT_QTCLIENT=OFF \
35                -DWANT_MONO=OFF \
36                -DWITH_CRYPT=OFF \
37                -DWITH_DBUS=OFF \
38                -DWITH_KDE=OFF \
39                -DWITH_PHONON=OFF \
40                -DWITH_OPENSSL=OFF
41
42if {${name} == ${subport}} {
43
44    description \
45        Qt4 IRC client
46    long_description \
47        Quassel IRC is a modern, cross-platform IRC client. This port installs \
48        the monolithic variant, which does not require a separate Quassel core.
49
50    configure.args-replace -DWANT_MONO=OFF -DWANT_MONO=ON
51
52    destroot {
53        copy "${worksrcpath}/Quassel.app" "${destroot}${applications_dir}"
54    }
55}
56
57subport ${name}-client {
58
59    description \
60        Qt4 IRC client - client component
61    long_description \
62        Quassel IRC is a modern, cross-platform, distributed IRC client, \
63        meaning that one (or multiple) client(s) can attach to and detach from \
64        a central core - much like the popular combination of screen and a \
65        text-based IRC client such as WeeChat, but graphical.
66
67    depends_lib-append port:qt4-mac-sqlite3-plugin
68
69    if {[variant_isset crypt]} {
70        depends_run-append port:qca-ossl
71    }
72
73    configure.args-replace -DWANT_QTCLIENT=OFF -DWANT_QTCLIENT=ON
74
75    destroot {
76        copy "${worksrcpath}/Quassel Client.app" \
77             "${destroot}${applications_dir}"
78    }
79}
80
81variant crypt description \
82    {Support per-channel and per-query blowfish encryption via qca} {
83    depends_lib-append      port:qca
84    configure.args-replace  -DWITH_CRYPT=OFF -DWITH_CRYPT=ON
85}
86
87variant dbus description {Enable dbus support} {
88    depends_lib-append      port:dbusmenu-qt
89    configure.args-replace  -DWITH_DBUS=OFF -DWITH_DBUS=ON
90}
91
92variant openssl description {Enable OpenSSL support} {
93    depends_lib-append      port:openssl
94    configure.args-replace  -DWITH_OPENSSL=OFF -DWITH_OPENSSL=ON
95}
96
97variant phonon description {Enable support for audio notifications via phonon} {
98    depends_lib-append      port:phonon
99    configure.args-replace  -DWITH_PHONON=OFF -DWITH_PHONON=ON
100}
101
102default_variants    +crypt +dbus +phonon +openssl
Note: See TracBrowser for help on using the repository browser.