]>
Commit | Line | Data |
---|---|---|
8dfd59d1 | 1 | ################################################################################ |
a3bf0447 | 2 | # |
f2c2f25c | 3 | # ncftp |
a3bf0447 | 4 | # |
8dfd59d1 | 5 | ################################################################################ |
a3bf0447 | 6 | |
0deb8c4c YY |
7 | NCFTP_VERSION = 3.2.7 |
8 | NCFTP_SOURCE = ncftp-$(NCFTP_VERSION)-src.tar.xz | |
9 | NCFTP_SITE = https://www.ncftp.com/public_ftp/ncftp | |
ea729ab3 | 10 | NCFTP_TARGET_BINS = ncftp |
5d1c9f8c TDS |
11 | NCFTP_LICENSE = Clarified Artistic License |
12 | NCFTP_LICENSE_FILES = doc/LICENSE.txt | |
a3bf0447 | 13 | |
1963bc81 | 14 | NCFTP_DEPENDENCIES = host-autoconf |
9647c3c5 | 15 | NCFTP_CONF_OPTS = --disable-ccdv |
1963bc81 | 16 | |
5263aa68 AV |
17 | # The bundled configure script is generated by autoconf 2.13 and doesn't |
18 | # detect cross-compilation correctly. Therefore, we have to regenerate it. | |
19 | # We need to pass -I because of the non-standard m4 directory name, and | |
20 | # none of the other autotools are used, so the below is the easiest. | |
1963bc81 | 21 | define NCFTP_RUN_AUTOCONF |
3292f3de | 22 | (cd $(@D); $(AUTOCONF) -I$(@D)/autoconf_local/) |
1963bc81 | 23 | endef |
1963bc81 RN |
24 | NCFTP_PRE_CONFIGURE_HOOKS += NCFTP_RUN_AUTOCONF |
25 | ||
ac1d92c4 | 26 | ifeq ($(BR2_PACKAGE_NCFTP_GET),y) |
bd8c733f | 27 | NCFTP_TARGET_BINS += ncftpget |
b7001fb6 US |
28 | endif |
29 | ||
ac1d92c4 | 30 | ifeq ($(BR2_PACKAGE_NCFTP_PUT),y) |
bd8c733f | 31 | NCFTP_TARGET_BINS += ncftpput |
b7001fb6 US |
32 | endif |
33 | ||
ac1d92c4 | 34 | ifeq ($(BR2_PACKAGE_NCFTP_LS),y) |
bd8c733f | 35 | NCFTP_TARGET_BINS += ncftpls |
b7001fb6 US |
36 | endif |
37 | ||
ac1d92c4 | 38 | ifeq ($(BR2_PACKAGE_NCFTP_BATCH),y) |
bd8c733f JG |
39 | NCFTP_TARGET_BINS += ncftpbatch |
40 | NCFTP_INSTALL_NCFTP_BATCH = \ | |
41 | ln -sf /usr/bin/ncftpbatch $(TARGET_DIR)/usr/bin/ncftpspooler | |
b7001fb6 US |
42 | endif |
43 | ||
ac1d92c4 | 44 | ifeq ($(BR2_PACKAGE_NCFTP_BOOKMARKS),y) |
bd8c733f JG |
45 | NCFTP_TARGET_BINS += ncftpbookmarks |
46 | NCFTP_DEPENDENCIES += ncurses | |
a3bf0447 PK |
47 | endif |
48 | ||
0de10bf4 | 49 | define NCFTP_INSTALL_TARGET_CMDS |
4635eb92 | 50 | $(INSTALL) -m 0755 $(addprefix $(NCFTP_DIR)/bin/, $(NCFTP_TARGET_BINS)) $(TARGET_DIR)/usr/bin |
0de10bf4 TP |
51 | $(NCFTP_INSTALL_NCFTP_BATCH) |
52 | endef | |
a3bf0447 | 53 | |
e1502ebc | 54 | $(eval $(autotools-package)) |