7c84418e41
Readline uses ncurses hence pull it in, also needs to explicitly link against libpthread. Fixes: http://autobuild.buildroot.net/results/259/2592612be38a2c1dde21b44be2ecf25d1cc5211a/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
33 lines
870 B
Makefile
33 lines
870 B
Makefile
################################################################################
|
|
#
|
|
# atftp
|
|
#
|
|
################################################################################
|
|
|
|
ATFTP_VERSION = 0.7.1
|
|
ATFTP_SITE = http://sourceforge.net/projects/atftp/files/
|
|
ATFTP_LICENSE = GPLv2+
|
|
ATFTP_LICENSE_FILES = LICENSE
|
|
ATFTP_CONF_OPT = --disable-libwrap --disable-mtftp
|
|
# For static we need to explicitly link against libpthread
|
|
ATFTP_LIBS = -lpthread
|
|
ATFTP_CONF_ENV = LIBS="$(ATFTP_LIBS)"
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
ATFTP_DEPENDENCIES += readline
|
|
ATFTP_CONF_OPT += --enable-libreadline
|
|
# For static, readline links with ncurses
|
|
ATFTP_LIBS += -lncurses
|
|
else
|
|
ATFTP_CONF_OPT += --disable-libreadline
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
ATFTP_DEPENDENCIES += pcre
|
|
ATFTP_CONF_OPT += --enable-libpcre
|
|
else
|
|
ATFTP_CONF_OPT += --disable-libpcre
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|