xref: /OK3568_Linux_fs/buildroot/package/atftp/atftp.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# atftp
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunATFTP_VERSION = 0.7.5
8*4882a593SmuzhiyunATFTP_SITE = http://sourceforge.net/projects/atftp/files
9*4882a593SmuzhiyunATFTP_LICENSE = GPL-2.0+
10*4882a593SmuzhiyunATFTP_LICENSE_FILES = LICENSE
11*4882a593SmuzhiyunATFTP_CPE_ID_VENDOR = atftp_project
12*4882a593SmuzhiyunATFTP_SELINUX_MODULES = tftp
13*4882a593SmuzhiyunATFTP_CONF_OPTS = --disable-libwrap --disable-mtftp
14*4882a593Smuzhiyun# For static we need to explicitly link against libpthread
15*4882a593SmuzhiyunATFTP_LIBS = -lpthread
16*4882a593Smuzhiyun# -fgnu89-inline is needed to avoid multiple definition error with gcc 5. See
17*4882a593Smuzhiyun# https://gcc.gnu.org/gcc-5/porting_to.html.
18*4882a593SmuzhiyunATFTP_CONF_ENV = LIBS="$(ATFTP_LIBS)" \
19*4882a593Smuzhiyun	CFLAGS="$(TARGET_CFLAGS) -fgnu89-inline"
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_READLINE),y)
22*4882a593SmuzhiyunATFTP_DEPENDENCIES += readline
23*4882a593SmuzhiyunATFTP_CONF_OPTS += --enable-libreadline
24*4882a593Smuzhiyun# For static, readline links with ncurses
25*4882a593SmuzhiyunATFTP_LIBS += -lncurses
26*4882a593Smuzhiyunelse
27*4882a593SmuzhiyunATFTP_CONF_OPTS += --disable-libreadline
28*4882a593Smuzhiyunendif
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PCRE),y)
31*4882a593SmuzhiyunATFTP_DEPENDENCIES += pcre
32*4882a593SmuzhiyunATFTP_CONF_OPTS += --enable-libpcre
33*4882a593Smuzhiyunelse
34*4882a593SmuzhiyunATFTP_CONF_OPTS += --disable-libpcre
35*4882a593Smuzhiyunendif
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun$(eval $(autotools-package))
38