2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-05-22 13:59:22 +02:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# ncftp
|
2007-05-22 13:59:22 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2016-11-30 18:21:52 +01:00
|
|
|
NCFTP_VERSION = 3.2.6
|
|
|
|
NCFTP_SOURCE = ncftp-$(NCFTP_VERSION)-src.tar.xz
|
2011-10-16 05:04:33 +02:00
|
|
|
NCFTP_SITE = ftp://ftp.ncftp.com/ncftp
|
|
|
|
NCFTP_TARGET_BINS = ncftp
|
2013-10-08 12:06:57 +02:00
|
|
|
NCFTP_LICENSE = Clarified Artistic License
|
|
|
|
NCFTP_LICENSE_FILES = doc/LICENSE.txt
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2014-02-21 22:00:52 +01:00
|
|
|
NCFTP_DEPENDENCIES = host-autoconf
|
|
|
|
|
2014-02-25 22:01:47 +01:00
|
|
|
# The bundled configure script is generated by autoconf 2.13 and doesn't
|
|
|
|
# detect cross-compilation correctly. Therefore, we have to regenerate it.
|
|
|
|
# We need to pass -I because of the non-standard m4 directory name, and
|
|
|
|
# none of the other autotools are used, so the below is the easiest.
|
2014-02-21 22:00:52 +01:00
|
|
|
define NCFTP_RUN_AUTOCONF
|
2014-10-25 20:29:31 +02:00
|
|
|
(cd $(@D); $(HOST_DIR)/usr/bin/autoconf -I$(@D)/autoconf_local/)
|
2014-02-21 22:00:52 +01:00
|
|
|
endef
|
|
|
|
NCFTP_PRE_CONFIGURE_HOOKS += NCFTP_RUN_AUTOCONF
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_GET),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpget
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_PUT),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpput
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_LS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpls
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BATCH),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpbatch
|
|
|
|
NCFTP_INSTALL_NCFTP_BATCH = \
|
|
|
|
ln -sf /usr/bin/ncftpbatch $(TARGET_DIR)/usr/bin/ncftpspooler
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BOOKMARKS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpbookmarks
|
|
|
|
NCFTP_DEPENDENCIES += ncurses
|
2007-05-22 13:59:22 +02:00
|
|
|
endif
|
|
|
|
|
2010-09-01 23:15:59 +02:00
|
|
|
define NCFTP_INSTALL_TARGET_CMDS
|
2009-04-01 22:52:41 +02:00
|
|
|
$(INSTALL) -m 0755 $(addprefix $(NCFTP_DIR)/bin/, $(NCFTP_TARGET_BINS)) $(TARGET_DIR)/usr/bin
|
2010-09-01 23:15:59 +02:00
|
|
|
$(NCFTP_INSTALL_NCFTP_BATCH)
|
|
|
|
endef
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|