From: Vitaly Perov <[email protected]> fplib provides a set of routines that implement the FTP protocol.
Build tested with 'angstrom v2011.12' and Angstrom-console-image for machine AT91SAM9260 Signed-off-by: Vitaly Perov <[email protected]> --- recipes/ftplib/ftplib_3.1.bb | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 recipes/ftplib/ftplib_3.1.bb diff --git a/recipes/ftplib/ftplib_3.1.bb b/recipes/ftplib/ftplib_3.1.bb new file mode 100644 index 0000000..00a49bc --- /dev/null +++ b/recipes/ftplib/ftplib_3.1.bb @@ -0,0 +1,38 @@ +DESCRIPTION = "A set of routines that implement the FTP protocol" +HOMEPAGE = "http://nbpfaus.net/~pfau/ftplib/" +LICENSE = "LGPLv2" + +PR = "r0" + +# LDFLAGS are missing in Makefile build section +TARGET_CC_ARCH += "${LDFLAGS}" + +# Use current directory for linking qftp with just-build ftplib +EXTRA_OEMAKE = "LDFLAGS='${LDFLAGS} -L.'" + +SRC_URI = "http://nbpfaus.net/~pfau/ftplib/ftplib-${PV}-src.tar.gz" + +S = "${WORKDIR}/ftplib-${PV}" + +SRC_URI[md5sum] = "c6af758ccbf806b28f022a587a41d9c5" +SRC_URI[sha256sum] = "be524e1086cfe9d86afa832e1413dde79a4e88ee8ea5325a87ffaaf6620a0a2b" + +do_compile() { + cd linux && oe_runmake +} + +do_install() { + install -d ${D}/${libdir} + install -d ${D}/${includedir} + install -d ${D}/${bindir} + oe_libinstall -so -C linux libftp ${D}/${libdir} + install -m 755 ${S}/linux/libftp.a ${D}/${libdir} + install -m 644 ${S}/linux/ftplib.h ${D}/${includedir} + install -m 755 ${S}/linux/qftp ${D}/${bindir} + (cd ${D}/${bindir} && \ + ln -sf qftp ftpdir && \ + ln -sf qftp ftpget && \ + ln -sf qftp ftplist && \ + ln -sf qftp fptrm && \ + ln -sf qftp ftpsend) +} -- 1.7.6 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
