Use urandom for dropbear keying
[gumsense-br.git] / package / distcc / distcc.mk
blobdb72e50b92ca8cff022ed5dcb3611ac4d8e41377
1 #############################################################
3 # distcc
5 #############################################################
6 DISTCC_VER:=2.18.3
7 DISTCC_SOURCE:=distcc-$(DISTCC_VER).tar.bz2
8 DISTCC_SITE:=http://distcc.samba.org/ftp/distcc/
9 DISTCC_DIR:=$(BUILD_DIR)/distcc-$(DISTCC_VER)
10 DISTCC_BINARY:=distcc
11 DISTCC_TARGET_BINARY:=usr/bin/distcc
13 $(DL_DIR)/$(DISTCC_SOURCE):
14 $(WGET) -P $(DL_DIR) $(DISTCC_SITE)/$(DISTCC_SOURCE)
16 $(DISTCC_DIR)/.unpacked: $(DL_DIR)/$(DISTCC_SOURCE)
17 bzcat $(DL_DIR)/$(DISTCC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
18 touch $(DISTCC_DIR)/.unpacked
20 $(DISTCC_DIR)/.configured: $(DISTCC_DIR)/.unpacked
21 (cd $(DISTCC_DIR); rm -rf config.cache; \
22 $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --prefix=/usr \
29 --bindir=/usr/bin \
30 --sbindir=/usr/sbin \
31 --libexecdir=/usr/lib \
32 --sysconfdir=/etc \
33 --datadir=/usr/share \
34 --localstatedir=/var \
35 --mandir=/usr/man \
36 --infodir=/usr/info \
37 --with-included-popt \
38 --without-gtk \
39 --without-gnome \
41 touch $(DISTCC_DIR)/.configured
43 $(DISTCC_DIR)/$(DISTCC_BINARY): $(DISTCC_DIR)/.configured
44 $(TARGET_CONFIGURE_OPTS) $(MAKE) CC=$(TARGET_CC) -C $(DISTCC_DIR)
46 $(TARGET_DIR)/$(DISTCC_TARGET_BINARY): $(DISTCC_DIR)/$(DISTCC_BINARY)
47 install -D $(DISTCC_DIR)/$(DISTCC_BINARY)d $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)d
48 install -D $(DISTCC_DIR)/$(DISTCC_BINARY) $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
50 distcc: uclibc $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
52 distcc-clean:
53 rm -f $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
54 rm -f $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)d
55 -$(MAKE) -C $(DISTCC_DIR) clean
57 distcc-dirclean:
58 rm -rf $(DISTCC_DIR)
59 #############################################################
61 # Toplevel Makefile options
63 #############################################################
64 ifeq ($(strip $(BR2_PACKAGE_DISTCC)),y)
65 TARGETS+=distcc
66 endif