xref: /OK3568_Linux_fs/buildroot/package/gensio/gensio.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# gensio
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunGENSIO_VERSION = 2.2.9
8*4882a593SmuzhiyunGENSIO_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net
9*4882a593SmuzhiyunGENSIO_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (tools)
10*4882a593SmuzhiyunGENSIO_LICENSE_FILES = COPYING.LIB COPYING
11*4882a593SmuzhiyunGENSIO_INSTALL_STAGING = YES
12*4882a593SmuzhiyunGENSIO_CONF_OPTS = \
13*4882a593Smuzhiyun	--without-openipmi \
14*4882a593Smuzhiyun	--without-swig \
15*4882a593Smuzhiyun	--without-python
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y)
18*4882a593SmuzhiyunGENSIO_DEPENDENCIES += host-pkgconf openssl
19*4882a593SmuzhiyunGENSIO_CONF_OPTS += --with-openssl
20*4882a593Smuzhiyunelse
21*4882a593SmuzhiyunGENSIO_CONF_OPTS += --without-openssl
22*4882a593Smuzhiyunendif
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
25*4882a593SmuzhiyunGENSIO_CONF_ENV += LIBS=-latomic
26*4882a593Smuzhiyunendif
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
29*4882a593SmuzhiyunGENSIO_CONF_OPTS += --with-pthreads
30*4882a593Smuzhiyunelse
31*4882a593SmuzhiyunGENSIO_CONF_OPTS += --without-pthreads
32*4882a593Smuzhiyunendif
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun$(eval $(autotools-package))
35