diff options
Diffstat (limited to 'meta/recipes-devtools/distcc/distcc_3.1.bb')
-rw-r--r-- | meta/recipes-devtools/distcc/distcc_3.1.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta/recipes-devtools/distcc/distcc_3.1.bb b/meta/recipes-devtools/distcc/distcc_3.1.bb new file mode 100644 index 0000000000..eeda054c74 --- /dev/null +++ b/meta/recipes-devtools/distcc/distcc_3.1.bb | |||
@@ -0,0 +1,64 @@ | |||
1 | SUMMARY = "A parallel build system" | ||
2 | DESCRIPTION = "distcc is a parallel build system that distributes \ | ||
3 | compilation of C/C++/ObjC code across machines on a network." | ||
4 | SECTION = "devel" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
7 | PR = "r0" | ||
8 | |||
9 | DEPENDS = "avahi" | ||
10 | |||
11 | GTKCONFIG = "gtk" | ||
12 | GTKCONFIG_libc-uclibc = "" | ||
13 | |||
14 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', '${GTKCONFIG}', '', d)}" | ||
15 | PACKAGECONFIG[gtk] = "--with-gtk,--without-gtk --without-gnome,gtk+" | ||
16 | |||
17 | RRECOMMENDS_${PN} = "avahi-daemon" | ||
18 | |||
19 | SRC_URI = "http://distcc.googlecode.com/files/${BPN}-${PV}.tar.bz2 \ | ||
20 | file://default \ | ||
21 | file://distccmon-gnome.desktop \ | ||
22 | file://distcc" | ||
23 | |||
24 | SRC_URI[md5sum] = "a1a9d3853df7133669fffec2a9aab9f3" | ||
25 | SRC_URI[sha256sum] = "f55dbafd76bed3ce57e1bbcdab1329227808890d90f4c724fcd2d53f934ddd89" | ||
26 | |||
27 | inherit autotools pkgconfig update-rc.d useradd | ||
28 | |||
29 | EXTRA_OECONF += "--disable-Werror PYTHON=/dev/null" | ||
30 | |||
31 | USERADD_PACKAGES = "${PN}" | ||
32 | USERADD_PARAM_${PN} = "--system \ | ||
33 | --home /dev/null \ | ||
34 | --no-create-home \ | ||
35 | --gid nogroup \ | ||
36 | distcc" | ||
37 | |||
38 | INITSCRIPT_NAME = "distcc" | ||
39 | |||
40 | do_install_append() { | ||
41 | install -d ${D}${sysconfdir}/init.d/ | ||
42 | install -d ${D}${sysconfdir}/default | ||
43 | install -m 0755 ${WORKDIR}/distcc ${D}${sysconfdir}/init.d/ | ||
44 | install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/distcc | ||
45 | ${DESKTOPINSTALL} | ||
46 | } | ||
47 | DESKTOPINSTALL = "" | ||
48 | DESKTOPINSTALL_libc-glibc () { | ||
49 | install -d ${D}${datadir}/distcc/ | ||
50 | install -m 0644 ${WORKDIR}/distccmon-gnome.desktop ${D}${datadir}/distcc/ | ||
51 | } | ||
52 | PACKAGES += "distcc-distmon-gnome" | ||
53 | |||
54 | FILES_${PN} = " ${sysconfdir} \ | ||
55 | ${bindir}/distcc \ | ||
56 | ${bindir}/lsdistcc \ | ||
57 | ${bindir}/distccd \ | ||
58 | ${bindir}/distccmon-text" | ||
59 | FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \ | ||
60 | ${datadir}/distcc" | ||
61 | |||
62 | pkg_postrm_${PN} () { | ||
63 | deluser distcc || true | ||
64 | } | ||