Ticket #18289: Portfile

File Portfile, 1.5 KB (added by mikkel@…, 15 years ago)

audio/mumble Portfile

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