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_lib port:popt |
| 6 | PortGroup muniversal 1.0 |
| 7 | |
| 8 | name distcc |
| 9 | version 3.2rc1 |
| 10 | revision 1 |
| 11 | categories devel net |
| 12 | platforms darwin |
| 13 | maintainers nomaintainer |
| 14 | license GPL-2+ |
| 15 | |
| 16 | description Distributed C compiler |
| 17 | |
| 18 | long_description distcc is a program to distribute compilation of C or \ |
| 19 | C++ code across several machines on a network without \ |
| 20 | requiring that they share filesystems, have the same \ |
| 21 | headers/libraries or have syncronized clocks. distcc \ |
| 22 | should always generate the same results as a local \ |
| 23 | compile but is often 2 to 3 times faster. |
| 24 | |
| 25 | homepage http://distcc.org/ |
| 26 | master_sites googlecode |
| 27 | use_bzip2 yes |
| 28 | |
| 29 | checksums rmd160 505447b910d90ea403a98fe0d0a3a0fa92cd7039 \ |
| 30 | sha256 311671e844625d7fdb18dd3d096cd855751cfe8de13827682bcb7beff9133b30 |
| 31 | |
| 32 | depends_build port:pkgconfig |
| 33 | |
| 34 | depends_lib port:popt |
| 35 | |
| 36 | patchfiles-append patch-zeroconf-reg.c.diff |
| 37 | |
| 38 | configure.args-append \ |
| 39 | ac_cv_path_PYTHON="" \ |
| 40 | --disable-Werror \ |
| 41 | --without-avahi \ |
| 42 | --without-gtk \ |
| 43 | --without-gnome \ |
| 44 | --without-included-popt |
| 45 | |
| 46 | configure.env-append \ |
| 47 | ac_cv_path_PYTHON="" |
| 48 | #TODO: add python variants so that it can be possible to run all the tests |
| 49 | |
| 50 | test.run yes |
| 51 | test.target maintainer-check |
| 52 | |
| 53 | post-destroot { |
| 54 | if {[file exists ${worksrcpath}/pump]} { |
| 55 | xinstall -m 0755 ${worksrcpath}/pump ${destroot}${prefix}/bin/distcc-pump |
| 56 | } |
| 57 | if {[file exists ${destroot}${prefix}/share/man/man1/pump.1.gz]} { |
| 58 | copy ${destroot}${prefix}/share/man/man1/pump.1.gz ${destroot}${prefix}/share/man/man1/distcc-pump.1.gz |
| 59 | } |
| 60 | if {[file exists ${destroot}${prefix}/bin/distcc-pump] && [file exists ${filespath}/distcc-pumpedshell]} { |
| 61 | xinstall -m 0755 ${filespath}/distcc-pumpedshell ${destroot}${prefix}/bin |
| 62 | } |
| 63 | if {![file exists ${prefix}/Library/LaunchDaemons/org.macports.distccd.plist]} { |
| 64 | xinstall -d -m 0755 ${destroot}${prefix}/Library/LaunchDaemons |
| 65 | xinstall -m 0644 ${filespath}/org.macports.distccd.plist ${destroot}${prefix}/Library/LaunchDaemons |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | variant zeroconf description {use Avahi to advertise distcc via ZeroConf} { |
| 70 | depends_lib-append port:avahi |
| 71 | |
| 72 | configure.args-replace --without-avahi --with-avahi |
| 73 | } |
| 74 | |
| 75 | variant gtk description {Build GTK interface to distccmon} { |
| 76 | depends_lib-append port:gtk2 \ |
| 77 | port:libglade2 \ |
| 78 | path:lib/pkgconfig/glib-2.0.pc:glib2 |
| 79 | # it will also opportunistically link with a bunch of gtk libraries |
| 80 | # that it does not actually use symbols from: atk, cairo, fontconfig, |
| 81 | # freetype, gdk-pixbuf2, gettext, pango, xorg-libX11, |
| 82 | # xorg-libXcomposite, xorg-libXcursor, xorg-libXdamage, xorg-libXext, |
| 83 | # xorg-libXfixes, xorg-libXi, xorg-libXinerama, xorg-libXrandr, and |
| 84 | # xrender |
| 85 | |
| 86 | configure.args-replace --without-gtk --with-gtk |
| 87 | } |
| 88 | |
| 89 | variant gnome requires gtk description {Add GNOME support to the GTK interface to distccmon} { |
| 90 | depends_lib-append port:libgnome \ |
| 91 | port:libgnomeui \ |
| 92 | path:lib/pkgconfig/pango.pc:pango |
| 93 | # it will also opportunistically link with a bunch of gnome libraries |
| 94 | # that it does not actually use symbols from: besides the ones listed |
| 95 | # under gtk, append also: gconf, gnome-vfs, libart_lgpl, libbonobo, |
| 96 | # libbonoboui, libgnomecanvas, orbit2, xorg-libice, and xorg-libsm |