Ticket #43071: Portfile

File Portfile, 2.4 KB (added by RJVB (René Bertin), 10 years ago)

updated Portfile

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 114817 2013-12-16 07:46:32Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                distcc
7version             3.2rc1
8revision            1
9categories          devel net
10platforms           darwin
11maintainers         nomaintainer
12license             GPL-2+
13
14description         Distributed C compiler
15
16long_description    distcc is a program to distribute compilation of C or \
17                    C++ code across several machines on a network without \
18                    requiring that they share filesystems, have the same \
19                    headers/libraries or have syncronized clocks. distcc \
20                    should always generate the same results as a local \
21                    compile but is often 2 to 3 times faster.
22
23homepage            http://distcc.org/
24master_sites        googlecode
25use_bzip2           yes
26
27checksums           rmd160  505447b910d90ea403a98fe0d0a3a0fa92cd7039 \
28                    sha256  311671e844625d7fdb18dd3d096cd855751cfe8de13827682bcb7beff9133b30
29
30depends_build           port:pkgconfig
31
32depends_lib         port:popt
33
34patchfiles              patch-zeroconf-reg.c
35
36configure.args      ac_cv_path_PYTHON= \
37                    --disable-Werror \
38                                --without-avahi
39
40post-destroot {
41        xinstall -m 0755 ${worksrcpath}/pump ${destroot}${prefix}/bin/distcc-pump
42        copy ${destroot}${prefix}/share/man/man1/pump.1.gz ${destroot}${prefix}/share/man/man1/distcc-pump.1.gz
43        xinstall -m 0755 ${filespath}/distcc-pumpedshell ${destroot}${prefix}/bin
44        if {![file exists ${prefix}/Library/LaunchDaemons/org.macports.distccd.plist]} {
45                xinstall -d -m 0755 ${destroot}${prefix}/Library/LaunchDaemons
46                xinstall -m 0644 ${filespath}/org.macports.distccd.plist ${destroot}${prefix}/Library/LaunchDaemons
47        }
48}
49
50variant zeroconf description {use Avahi to advertise distcc via ZeroConf} {
51        depends_lib-append      port:avahi
52
53     configure.args-delete      --without-avahi
54}
55
56variant gtk description {Build GTK interface to distccmon} {
57        depends_lib-append      port:gtk2 \
58                                        port:libglade2
59
60     configure.args-append      --with-gtk
61}
62
63variant gnome description {Build GNOME interface to distccmon} {
64        depends_lib-append      port:gtk2 \
65                                        port:libglade2 \
66                                        port:libgnome \
67                                        port:libgnomeui \
68                                        port:pango
69
70     configure.args-append      --with-gtk
71}