2007-05-22 13:59:22 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ncftp client
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-10-06 11:23:08 +02:00
|
|
|
NCFTP_VERSION:=3.2.2
|
2007-05-22 13:59:22 +02:00
|
|
|
NCFTP_SOURCE:=ncftp-$(NCFTP_VERSION)-src.tar.bz2
|
|
|
|
NCFTP_SITE:=ftp://ftp.ncftp.com/ncftp
|
|
|
|
NCFTP_DIR:=$(BUILD_DIR)/ncftp-$(NCFTP_VERSION)
|
|
|
|
|
|
|
|
NCFTP_TARGET_BINS:=ncftp
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_GET),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpget
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_PUT),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpput
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_LS),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpls
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BATCH),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpbatch
|
|
|
|
endif
|
|
|
|
|
2009-01-25 09:18:35 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_SPOOLER),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
#Someone needs to figure out what to do...
|
|
|
|
NCFTP_TARGET_BINS+=
|
|
|
|
endif
|
|
|
|
|
2009-01-25 09:18:35 +01:00
|
|
|
# only set if NCURSES is available
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BOOKMARKS),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpbookmarks
|
2007-05-22 13:59:22 +02:00
|
|
|
endif
|
|
|
|
|
2009-01-25 09:18:35 +01:00
|
|
|
NCFTP_DEPS += ncurses
|
|
|
|
endif
|
|
|
|
|
2007-05-22 13:59:22 +02:00
|
|
|
ncftp-source: $(DL_DIR)/$(NCFTP_SOURCE)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(NCFTP_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(NCFTP_SITE),$(NCFTP_SOURCE))
|
2007-05-22 13:59:22 +02:00
|
|
|
|
|
|
|
$(NCFTP_DIR)/.source: $(DL_DIR)/$(NCFTP_SOURCE)
|
2007-08-22 12:11:18 +02:00
|
|
|
$(BZCAT) $(DL_DIR)/$(NCFTP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-05-22 13:59:22 +02:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(NCFTP_DIR)/.configured: $(NCFTP_DIR)/.source
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(NCFTP_DIR); rm -f config.cache; \
|
2007-05-22 13:59:22 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-05-22 13:59:22 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-05-22 13:59:22 +02:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(NCFTP_DIR)/bin/%: $(NCFTP_DIR)/.configured
|
|
|
|
$(MAKE) -C $(NCFTP_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/ncftp $(TARGET_DIR)/usr/bin/ncftp%: $(addprefix $(NCFTP_DIR)/bin/, $(NCFTP_TARGET_BINS))
|
|
|
|
$(INSTALL) -m 0755 $(NCFTP_DIR)/bin/$(notdir $@) $(TARGET_DIR)/usr/bin
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $@
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2009-01-25 09:18:35 +01:00
|
|
|
ncftp: uclibc $(NCFTP_DEPS) $(addprefix $(TARGET_DIR)/usr/bin/, $(NCFTP_TARGET_BINS))
|
2007-05-22 13:59:22 +02:00
|
|
|
|
|
|
|
ncftp-clean:
|
2008-03-27 16:42:42 +01:00
|
|
|
-$(MAKE) -C $(NCFTP_DIR) clean
|
2007-05-22 13:59:22 +02:00
|
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/, $(NCFTP_TARGET_BINS))
|
|
|
|
|
|
|
|
ncftp-dirclean:
|
|
|
|
rm -rf $(NCFTP_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP),y)
|
2007-05-22 13:59:22 +02:00
|
|
|
TARGETS+=ncftp
|
|
|
|
endif
|