blob: ee6da5737f1863b122539f89f4efa477f74847a4 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001DESCRIPTION = "A sophisticated console ftp client"
2HOMEPAGE = "http://ncftp.com/"
3SECTION = "net"
4LICENSE = "ClArtistic"
5LIC_FILES_CHKSUM = "file://ncftp/cmds.c;beginline=3;endline=4;md5=9c2390809f71465aa7ff76e03dc14d91"
6DEPENDS = "ncurses"
7
8SRC_URI = "ftp://ftp.ncftp.com/${BPN}/${BP}-src.tar.xz \
9 file://ncftp-configure-use-BUILD_CC-for-ccdv.patch \
10 file://unistd.patch \
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050011 file://ncftp-3.2.5-gcc10.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012"
13SRC_URI[md5sum] = "42d0f896d69a4d603ec097546444245f"
14SRC_URI[sha256sum] = "5f200687c05d0807690d9fb770327b226f02dd86155b49e750853fce4e31098d"
15
16inherit autotools-brokensep pkgconfig
17
18CFLAGS += "-DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -Wall"
19
20PACKAGECONFIG ??= ""
21PACKAGECONFIG[ccdv] = "--enable-ccdv,--disable-ccdv,,"
22
23EXTRA_OECONF = "--disable-precomp"
24TARGET_CC_ARCH_append = " ${SELECTED_OPTIMIZATION}"
25
26do_configure() {
27 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
28 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
29 oe_runconf
30}
31do_install () {
32 install -d ${D}${bindir} ${D}${sysconfdir} ${D}${mandir}
33 oe_runmake 'prefix=${D}${prefix}' 'BINDIR=${D}${bindir}' \
34 'SYSCONFDIR=${D}${sysconfdir}' 'mandir=${D}${mandir}' \
35 install
36}