Ticket #18289: Portfile-mumble

File Portfile-mumble, 1.7 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

modified mumble portfile (addresses formatting and lint warnings)

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id:$
3
4PortSystem          1.0
5
6name                mumble
7version             1.1.7
8categories          aqua audio
9maintainers         nomaintainer
10description         low-latency voice chat for gaming
11long_description \
12    Mumble is an open source, low-latency, high quality \
13    voice chat software primarily intended for use while gaming.
14homepage            http://mumble.sourceforge.net/
15platforms           macosx
16
17master_sites        sourceforge:mumble
18checksums           md5 5a382d5c065bb264abfe240ca6f03ddc
19distname            mumble-${version}
20
21livecheck.check     regex
22livecheck.url       ${homepage}
23livecheck.regex     ">Latest version: (.*?)<"
24
25depends_lib \
26    port:qt4-mac \
27    port:openssl \
28    port:portaudio
29
30depends_build \
31    port:boost
32
33configure.cmd       qmake-mac
34configure.pre_args  CONFIG+=\"
35configure.post_args \" DEFINES+=NO_UPDATE_CHECK
36configure.args      release no-dbus no-universal no-server
37
38variant dbus description {Build DBus support} {
39    configure.args-delete no-dbus
40}
41
42variant universal {
43    configure.args-delete no-universal
44}
45
46pre-build {
47    system "sed -i '' -e 's,a.setLibraryPaths(QStringList());,a.setLibraryPaths(QStringList(\"${prefix}/libexec/qt4-mac/plugins\"));,' ${worksrcpath}/src/mumble/main.cpp"
48}
49
50build {
51    system "cd ${worksrcpath} && make"
52}
53
54destroot {
55    set appPath ${destroot}/Applications/MacPorts
56    file mkdir ${appPath}
57    file copy ${worksrcpath}/release/Mumble.app ${appPath}/Mumble.app
58    file copy ${worksrcpath}/release/plugins ${appPath}/Mumble.app/Contents/Plugins
59}