diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-08-20 14:15:10 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-08-20 14:15:10 +0000 |
commit | 578c6a90816c5308fb768c0ae0c21702f341b871 (patch) | |
tree | c33edb5b08e143926864456dfd6e8d7ee261a1c4 /package/rsync | |
parent | dab85fae49f41c4f6bcf924105179c03dc2aab12 (diff) |
rsync: convert to Makefile.autotools.in format
Diffstat (limited to 'package/rsync')
-rw-r--r-- | package/rsync/rsync.mk | 58 |
1 files changed, 9 insertions, 49 deletions
diff --git a/package/rsync/rsync.mk b/package/rsync/rsync.mk index eb306e119..456d87841 100644 --- a/package/rsync/rsync.mk +++ b/package/rsync/rsync.mk @@ -3,57 +3,17 @@ # rsync # ############################################################# + RSYNC_VERSION:=2.6.9 RSYNC_SOURCE:=rsync-$(RSYNC_VERSION).tar.gz RSYNC_SITE:=http://rsync.samba.org/ftp/rsync/src -RSYNC_DIR:=$(BUILD_DIR)/rsync-$(RSYNC_VERSION) -RSYNC_CAT:=$(ZCAT) -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) - -$(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 - $(CONFIG_UPDATE) $(RSYNC_DIR) - touch $@ - -$(RSYNC_DIR)/.configured: $(RSYNC_DIR)/.unpacked - (cd $(RSYNC_DIR); rm -rf config.cache; \ - $(TARGET_CONFIGURE_OPTS) \ - $(TARGET_CONFIGURE_ARGS) \ - ./configure \ - --target=$(GNU_TARGET_NAME) \ - --host=$(GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --prefix=/usr \ - --with-included-popt \ - ) - touch $@ - -$(RSYNC_DIR)/$(RSYNC_BINARY): $(RSYNC_DIR)/.configured - $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(RSYNC_DIR) +RSYNC_AUTORECONF:=no +RSYNC_INSTALL_STAGING:=NO +RSYNC_INSTALL_TARGET:=YES +RSYNC_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) INSTALLCMD='./install-sh -c' \ + STRIPPROG="$(TARGET_STRIP)" install-strip +RSYNC_CONF_OPT:=--with-included-popt -$(TARGET_DIR)/$(RSYNC_TARGET_BINARY): $(RSYNC_DIR)/$(RSYNC_BINARY) - install -D $(RSYNC_DIR)/$(RSYNC_BINARY) $(TARGET_DIR)/$(RSYNC_TARGET_BINARY) +RSYNC_DEPENDENCIES:=uclibc -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 +$(eval $(call AUTOTARGETS,package,rsync)) |