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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name mumble |
---|
7 | version 1.1.7 |
---|
8 | categories aqua audio |
---|
9 | maintainers nomaintainer |
---|
10 | description low-latency voice chat for gaming |
---|
11 | long_description \ |
---|
12 | Mumble is an open source, low-latency, high quality \ |
---|
13 | voice chat software primarily intended for use while gaming. |
---|
14 | homepage http://mumble.sourceforge.net/ |
---|
15 | platforms macosx |
---|
16 | |
---|
17 | master_sites sourceforge:mumble |
---|
18 | checksums md5 5a382d5c065bb264abfe240ca6f03ddc |
---|
19 | distname mumble-${version} |
---|
20 | |
---|
21 | livecheck.check regex |
---|
22 | livecheck.url ${homepage} |
---|
23 | livecheck.regex ">Latest version: (.*?)<" |
---|
24 | |
---|
25 | depends_lib \ |
---|
26 | port:qt4-mac \ |
---|
27 | port:openssl \ |
---|
28 | port:portaudio |
---|
29 | |
---|
30 | depends_build \ |
---|
31 | port:boost |
---|
32 | |
---|
33 | configure.cmd qmake-mac |
---|
34 | configure.pre_args CONFIG+=\" |
---|
35 | configure.post_args \" DEFINES+=NO_UPDATE_CHECK |
---|
36 | configure.args release no-dbus no-universal no-server |
---|
37 | |
---|
38 | variant dbus description {Build DBus support} { |
---|
39 | configure.args-delete no-dbus |
---|
40 | } |
---|
41 | |
---|
42 | variant universal { |
---|
43 | configure.args-delete no-universal |
---|
44 | } |
---|
45 | |
---|
46 | pre-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 | |
---|
50 | build { |
---|
51 | system "cd ${worksrcpath} && make" |
---|
52 | } |
---|
53 | |
---|
54 | destroot { |
---|
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 | } |
---|