Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 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 | |
| 8 | DEPENDS = "avahi binutils" |
| 9 | |
| 10 | PACKAGECONFIG ??= "popt" |
| 11 | PACKAGECONFIG[gtk] = "--with-gtk,--without-gtk --without-gnome,gtk+" |
| 12 | # use system popt by default |
| 13 | PACKAGECONFIG[popt] = "--without-included-popt,--with-included-popt,popt" |
| 14 | |
| 15 | RRECOMMENDS_${PN} = "avahi-daemon" |
| 16 | |
Brad Bishop | 0011132 | 2018-04-01 22:23:53 -0400 | [diff] [blame] | 17 | SRC_URI = "git://github.com/akuster/distcc.git;branch=${PV} \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 18 | file://separatebuilddir.patch \ |
| 19 | file://0001-zeroconf-Include-fcntl.h.patch \ |
| 20 | file://default \ |
| 21 | file://distccmon-gnome.desktop \ |
| 22 | file://distcc \ |
| 23 | file://distcc.service" |
| 24 | SRCREV = "d8b18df3e9dcbe4f092bed565835d3975e99432c" |
| 25 | S = "${WORKDIR}/git" |
| 26 | |
| 27 | inherit autotools pkgconfig update-rc.d useradd systemd |
| 28 | |
| 29 | EXTRA_OECONF += "--disable-Werror PYTHON='' --disable-pump-mode" |
| 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 | SYSTEMD_PACKAGES = "${PN}" |
| 41 | SYSTEMD_SERVICE_${PN} = "distcc.service" |
| 42 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 43 | do_install() { |
| 44 | # Improve reproducibility: compress w/o timestamps |
| 45 | oe_runmake 'DESTDIR=${D}' "GZIP_BIN=gzip -n" install |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 46 | install -d ${D}${sysconfdir}/init.d/ |
| 47 | install -d ${D}${sysconfdir}/default |
| 48 | install -m 0755 ${WORKDIR}/distcc ${D}${sysconfdir}/init.d/ |
| 49 | install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/distcc |
| 50 | install -d ${D}${systemd_unitdir}/system/ |
| 51 | install -m 0644 ${WORKDIR}/distcc.service ${D}${systemd_unitdir}/system |
| 52 | sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/distcc.service |
| 53 | ${DESKTOPINSTALL} |
| 54 | } |
| 55 | DESKTOPINSTALL = "" |
| 56 | DESKTOPINSTALL_libc-glibc () { |
| 57 | install -d ${D}${datadir}/distcc/ |
| 58 | install -m 0644 ${WORKDIR}/distccmon-gnome.desktop ${D}${datadir}/distcc/ |
| 59 | } |
| 60 | PACKAGES += "distcc-distmon-gnome" |
| 61 | |
| 62 | FILES_${PN} = " ${sysconfdir} \ |
| 63 | ${bindir}/distcc \ |
| 64 | ${bindir}/lsdistcc \ |
| 65 | ${bindir}/distccd \ |
| 66 | ${bindir}/distccmon-text \ |
| 67 | ${systemd_unitdir}/system/distcc.service" |
| 68 | FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \ |
| 69 | ${datadir}/distcc" |