source: trunk/dports/aqua/mumble/Portfile @ 81291

Last change on this file since 81291 was 81291, checked in by snc@…, 6 years ago

snc ports: update checksum to use new default (rmd160/sha256)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
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: Portfile 81291 2011-07-29 02:51:08Z snc@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                mumble
8version             1.2.2
9revision            3
10categories          aqua audio
11license             GPL
12maintainers         snc openmaintainer
13description         low-latency voice chat for gaming
14long_description \
15    Mumble is an open source, low-latency, high quality \
16    voice chat software primarily intended for use while gaming.
17homepage            http://mumble.sourceforge.net/
18platforms           macosx
19supported_archs     ppc i386
20
21master_sites        sourceforge
22
23checksums           rmd160  501aa1c4c170fb5aad2841cdfe3421376e62a07b \
24                    sha256  2c564e3d5b7481129482f2365375a2dc77e134c0c00012073cfdfbeadaa49be8
25
26livecheck.type      regex
27livecheck.url       http://sourceforge.net/project/showfiles.php?group_id=147372&package_id=162594
28livecheck.regex     "${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}"
29
30depends_lib-append \
31    port:openssl \
32    port:portaudio \
33    port:ice-cpp \
34    port:libsndfile \
35    port:protobuf-cpp \
36    lib:pkgconfig/speex.pc:speex
37
38depends_build-append \
39    port:boost
40
41configure.args
42
43variant debug description "Build as both release and debug" {}
44
45post-patch {
46    # when not doing debug ...
47    if {![variant_isset debug]} {
48        # ... build just the release version
49        configure.args-append release
50        foreach fixfile [exec find ${worksrcpath} -name "*.pr*"] {
51            reinplace "s@debug_and_release@release@" ${fixfile}
52        }
53    } else {
54        # else build both debug and release
55        configure.args-append debug_and_release
56    }
57
58    # Fix LIBPATH -> QMAKE_LIBPATH per Qt 4.7's warnings
59    foreach fixfile [exec find ${worksrcpath} -name "*.pr*"] {
60        reinplace "s@LIBPATH@QMAKE_LIBDIR@" ${fixfile}
61    }
62}
63
64configure.env-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++
65configure.cmd       ${qt_qmake_cmd}
66configure.pre_args  CONFIG+=\"
67configure.post_args \" DEFINES+=NO_UPDATE_CHECK main.pro
68configure.args-append no-dbus no-universal no-server \
69    no-embed-qt-translations no-bundled-speex no-g15 \
70    no-update
71
72variant dbus description {Build DBus support} {
73    configure.args-delete no-dbus
74}
75
76variant universal {
77    configure.args-delete no-universal
78}
79
80build.env-append    QMAKESPEC=${qt_mkspecs_dir}/macx-g++
81
82destroot {
83    file copy ${worksrcpath}/release/Mumble.app ${prefix}${applications_dir}/Mumble.app
84    file copy ${worksrcpath}/release/plugins ${prefix}${applications_dir}/Mumble.app/Contents/Plugins
85}
Note: See TracBrowser for help on using the repository browser.