2004-10-08 19:34:51 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# distcc
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
DISTCC_VERSION:=2.18.3
|
|
|
|
DISTCC_SOURCE:=distcc-$(DISTCC_VERSION).tar.bz2
|
2006-11-17 16:43:51 +01:00
|
|
|
DISTCC_CAT:=$(BZCAT)
|
2004-10-08 19:34:51 +02:00
|
|
|
DISTCC_SITE:=http://distcc.samba.org/ftp/distcc/
|
2007-08-29 17:43:59 +02:00
|
|
|
DISTCC_BUILDDIR:=$(BUILD_DIR)/distcc-$(DISTCC_VERSION)
|
2004-10-08 19:34:51 +02:00
|
|
|
DISTCC_BINARY:=distcc
|
|
|
|
DISTCC_TARGET_BINARY:=usr/bin/distcc
|
|
|
|
|
|
|
|
$(DL_DIR)/$(DISTCC_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(DISTCC_SITE),$(DISTCC_SOURCE))
|
2004-10-08 19:34:51 +02:00
|
|
|
|
2007-01-03 14:44:01 +01:00
|
|
|
distcc-source: $(DL_DIR)/$(CVS_SOURCE)
|
|
|
|
|
2007-08-29 17:43:59 +02:00
|
|
|
$(DISTCC_BUILDDIR)/.unpacked: $(DL_DIR)/$(DISTCC_SOURCE)
|
2006-11-17 16:43:51 +01:00
|
|
|
$(DISTCC_CAT) $(DL_DIR)/$(DISTCC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-08-29 17:43:59 +02:00
|
|
|
$(CONFIG_UPDATE) $(DISTCC_BUILDDIR)
|
|
|
|
touch $(DISTCC_BUILDDIR)/.unpacked
|
2004-10-08 19:34:51 +02:00
|
|
|
|
2007-08-29 17:43:59 +02:00
|
|
|
$(DISTCC_BUILDDIR)/.configured: $(DISTCC_BUILDDIR)/.unpacked
|
|
|
|
(cd $(DISTCC_BUILDDIR); rm -rf config.cache; \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2004-10-08 19:34:51 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2004-10-08 19:34:51 +02:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
--with-included-popt \
|
|
|
|
--without-gtk \
|
|
|
|
--without-gnome \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-08-29 17:43:59 +02:00
|
|
|
touch $(DISTCC_BUILDDIR)/.configured
|
2004-10-08 19:34:51 +02:00
|
|
|
|
2007-08-29 17:43:59 +02:00
|
|
|
$(DISTCC_BUILDDIR)/$(DISTCC_BINARY): $(DISTCC_BUILDDIR)/.configured
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(DISTCC_BUILDDIR)
|
2004-10-08 19:34:51 +02:00
|
|
|
|
2007-08-29 17:43:59 +02:00
|
|
|
$(TARGET_DIR)/$(DISTCC_TARGET_BINARY): $(DISTCC_BUILDDIR)/$(DISTCC_BINARY)
|
|
|
|
install -D $(DISTCC_BUILDDIR)/$(DISTCC_BINARY)d $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)d
|
|
|
|
install -D $(DISTCC_BUILDDIR)/$(DISTCC_BINARY) $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
|
2004-10-08 19:34:51 +02:00
|
|
|
|
|
|
|
distcc: uclibc $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
|
|
|
|
|
|
|
|
distcc-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
|
|
|
|
rm -f $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)d
|
2007-08-29 17:43:59 +02:00
|
|
|
-$(MAKE) -C $(DISTCC_BUILDDIR) clean
|
2004-10-08 19:34:51 +02:00
|
|
|
|
|
|
|
distcc-dirclean:
|
2007-08-29 17:43:59 +02:00
|
|
|
rm -rf $(DISTCC_BUILDDIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DISTCC),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=distcc
|
|
|
|
endif
|