kumquat-buildroot/package/rsync/rsync.mk

60 lines
1.7 KiB
Makefile
Raw Normal View History

2004-10-09 22:07:08 +02:00
#############################################################
#
# rsync
#
#############################################################
2006-11-20 17:40:19 +01:00
RSYNC_VER:=2.6.9
2004-10-09 22:07:08 +02:00
RSYNC_SOURCE:=rsync-$(RSYNC_VER).tar.gz
RSYNC_SITE:=http://rsync.samba.org/ftp/rsync/
2004-10-09 22:07:08 +02:00
RSYNC_DIR:=$(BUILD_DIR)/rsync-$(RSYNC_VER)
RSYNC_CAT:=$(ZCAT)
2004-10-09 22:07:08 +02:00
RSYNC_BINARY:=rsync
RSYNC_TARGET_BINARY:=usr/bin/rsync
$(DL_DIR)/$(RSYNC_SOURCE):
$(WGET) -P $(DL_DIR) $(RSYNC_SITE)/$(RSYNC_SOURCE)
rsync-source: $(DL_DIR)/$(RSYNC_SOURCE)
2004-10-09 22:07:08 +02:00
$(RSYNC_DIR)/.unpacked: $(DL_DIR)/$(RSYNC_SOURCE)
$(RSYNC_CAT) $(DL_DIR)/$(RSYNC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(RSYNC_DIR) package/rsync/ rsync\*.patch
2004-10-09 22:07:08 +02:00
touch $(RSYNC_DIR)/.unpacked
$(RSYNC_DIR)/.configured: $(RSYNC_DIR)/.unpacked
(cd $(RSYNC_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
2004-10-09 22:07:08 +02:00
CFLAGS="$(TARGET_CFLAGS)" \
2007-03-13 23:59:59 +01:00
LDFLAGS="$(TARGET_LDFLAGS)" \
2004-10-09 22:07:08 +02:00
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--with-included-popt \
);
touch $(RSYNC_DIR)/.configured
$(RSYNC_DIR)/$(RSYNC_BINARY): $(RSYNC_DIR)/.configured
$(TARGET_CONFIGURE_OPTS) $(MAKE) CC=$(TARGET_CC) -C $(RSYNC_DIR)
$(TARGET_DIR)/$(RSYNC_TARGET_BINARY): $(RSYNC_DIR)/$(RSYNC_BINARY)
install -D $(RSYNC_DIR)/$(RSYNC_BINARY) $(TARGET_DIR)/$(RSYNC_TARGET_BINARY)
rsync: uclibc $(TARGET_DIR)/$(RSYNC_TARGET_BINARY)
rsync-clean:
rm -f $(TARGET_DIR)/$(RSYNC_TARGET_BINARY)
-$(MAKE) -C $(RSYNC_DIR) clean
rsync-dirclean:
rm -rf $(RSYNC_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_RSYNC)),y)
TARGETS+=rsync
endif