1 ################################################################################
5 ################################################################################
7 OPENSWAN_VERSION
= 2.6.46
8 OPENSWAN_SITE
= http
://download.openswan.org
/openswan
9 OPENSWAN_LICENSE
= GPLv2
+, BSD-3c
10 OPENSWAN_LICENSE_FILES
= COPYING LICENSE
12 OPENSWAN_DEPENDENCIES
= host-bison host-flex gmp iproute2
13 OPENSWAN_MAKE_OPTS
= ARCH
=$(BR2_ARCH
) CC
="$(TARGET_CC)" \
14 USERCOMPILE
="$(TARGET_CFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \
15 USERLINK
="$(TARGET_LDFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \
16 INC_USRLOCAL
=/usr USE_KLIPS
=false USE_MAST
=false USE_NM
=false
18 ifeq ($(BR2_PACKAGE_LIBCURL
),y
)
19 OPENSWAN_DEPENDENCIES
+= libcurl
20 OPENSWAN_MAKE_OPTS
+= USE_LIBCURL
=true
23 ifeq ($(BR2_PACKAGE_OPENSSL
),y
)
24 OPENSWAN_DEPENDENCIES
+= openssl
25 OPENSWAN_MAKE_OPTS
+= HAVE_OPENSSL
=true
26 ifeq ($(BR2_PACKAGE_OCF_LINUX
),y
)
27 OPENSWAN_MAKE_OPTS
+= HAVE_OCF
=true
31 define OPENSWAN_BUILD_CMDS
32 $(TARGET_MAKE_ENV
) $(MAKE1
) -C
$(@D
) \
33 $(OPENSWAN_MAKE_OPTS
) programs
36 define OPENSWAN_INSTALL_TARGET_CMDS
37 $(TARGET_MAKE_ENV
) $(MAKE1
) -C
$(@D
) \
38 $(OPENSWAN_MAKE_OPTS
) DESTDIR
=$(TARGET_DIR
) install
41 $(eval
$(generic-package
))