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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name distcc |
---|
7 | version 3.2rc1 |
---|
8 | revision 1 |
---|
9 | categories devel net |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | license GPL-2+ |
---|
13 | |
---|
14 | description Distributed C compiler |
---|
15 | |
---|
16 | long_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 | |
---|
23 | homepage http://distcc.org/ |
---|
24 | master_sites googlecode |
---|
25 | use_bzip2 yes |
---|
26 | |
---|
27 | checksums rmd160 505447b910d90ea403a98fe0d0a3a0fa92cd7039 \ |
---|
28 | sha256 311671e844625d7fdb18dd3d096cd855751cfe8de13827682bcb7beff9133b30 |
---|
29 | |
---|
30 | depends_build port:pkgconfig |
---|
31 | |
---|
32 | depends_lib port:popt |
---|
33 | |
---|
34 | patchfiles patch-zeroconf-reg.c |
---|
35 | |
---|
36 | configure.args ac_cv_path_PYTHON= \ |
---|
37 | --disable-Werror \ |
---|
38 | --without-avahi |
---|
39 | |
---|
40 | post-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 | |
---|
50 | variant zeroconf description {use Avahi to advertise distcc via ZeroConf} { |
---|
51 | depends_lib-append port:avahi |
---|
52 | |
---|
53 | configure.args-delete --without-avahi |
---|
54 | } |
---|
55 | |
---|
56 | variant 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 | |
---|
63 | variant 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 | } |
---|