board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / strongswan / strongswan.mk
blob36b51485359239dc3469de53e4a309335dbee427
1 ################################################################################
3 # strongswan
5 ################################################################################
7 STRONGSWAN_VERSION = 5.4.0
8 STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
9 STRONGSWAN_SITE = http://download.strongswan.org
10 STRONGSWAN_LICENSE = GPLv2+
11 STRONGSWAN_LICENSE_FILES = COPYING LICENSE
12 STRONGSWAN_DEPENDENCIES = host-pkgconf
13 STRONGSWAN_CONF_OPTS += \
14 --without-lib-prefix \
15 --enable-led \
16 --enable-pkcs11=yes \
17 --enable-kernel-netlink=yes \
18 --enable-socket-default=yes \
19 --enable-openssl=$(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),yes,no) \
20 --enable-gcrypt=$(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),yes,no) \
21 --enable-gmp=$(if $(BR2_PACKAGE_STRONGSWAN_GMP),yes,no) \
22 --enable-af-alg=$(if $(BR2_PACKAGE_STRONGSWAN_AF_ALG),yes,no) \
23 --enable-curl=$(if $(BR2_PACKAGE_STRONGSWAN_CURL),yes,no) \
24 --enable-charon=$(if $(BR2_PACKAGE_STRONGSWAN_CHARON),yes,no) \
25 --enable-tnccs-11=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),yes,no) \
26 --enable-tnccs-20=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_20),yes,no) \
27 --enable-tnccs-dynamic=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_DYNAMIC),yes,no) \
28 --enable-eap-sim-pcsc=$(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),yes,no) \
29 --enable-unity=$(if $(BR2_PACKAGE_STRONGSWAN_UNITY),yes,no) \
30 --enable-stroke=$(if $(BR2_PACKAGE_STRONGSWAN_STROKE),yes,no) \
31 --enable-sql=$(if $(BR2_PACKAGE_STRONGSWAN_SQL),yes,no) \
32 --enable-pki=$(if $(BR2_PACKAGE_STRONGSWAN_PKI),yes,no) \
33 --enable-scepclient=$(if $(BR2_PACKAGE_STRONGSWAN_SCEP),yes,no) \
34 --enable-scripts=$(if $(BR2_PACKAGE_STRONGSWAN_SCRIPTS),yes,no) \
35 --enable-vici=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
36 --enable-swanctl=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no)
38 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
39 STRONGSWAN_CONF_ENV += LIBS='-latomic'
40 endif
42 ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP),y)
43 STRONGSWAN_CONF_OPTS += \
44 --enable-eap-sim \
45 --enable-eap-sim-file \
46 --enable-eap-aka \
47 --enable-eap-aka-3gpp2 \
48 --enable-eap-simaka-sql \
49 --enable-eap-simaka-pseudonym \
50 --enable-eap-simaka-reauth \
51 --enable-eap-identity \
52 --enable-eap-md5 \
53 --enable-eap-gtc \
54 --enable-eap-mschapv2 \
55 --enable-eap-tls \
56 --enable-eap-ttls \
57 --enable-eap-peap \
58 --enable-eap-tnc \
59 --enable-eap-dynamic \
60 --enable-eap-radius
61 STRONGSWAN_DEPENDENCIES += gmp
62 endif
64 STRONGSWAN_DEPENDENCIES += \
65 $(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),openssl) \
66 $(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),libgcrypt) \
67 $(if $(BR2_PACKAGE_STRONGSWAN_GMP),gmp) \
68 $(if $(BR2_PACKAGE_STRONGSWAN_CURL),libcurl) \
69 $(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),libxml2) \
70 $(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),pcsc-lite)
72 ifeq ($(BR2_PACKAGE_STRONGSWAN_SQL),y)
73 STRONGSWAN_DEPENDENCIES += \
74 $(if $(BR2_PACKAGE_SQLITE),sqlite) \
75 $(if $(BR2_PACKAGE_MYSQL),mysql)
76 endif
78 # disable connmark/forecast until net/if.h vs. linux/if.h conflict resolved
79 # problem exist since linux 4.5 header changes
80 STRONGSWAN_CONF_OPTS += \
81 --disable-connmark \
82 --disable-forecast
84 $(eval $(autotools-package))