2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-03-28 12:32:02 +02:00
|
|
|
#
|
|
|
|
# openswan
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-03-28 12:32:02 +02:00
|
|
|
|
2016-01-23 17:04:10 +01:00
|
|
|
OPENSWAN_VERSION = 2.6.46
|
2012-03-28 12:32:02 +02:00
|
|
|
OPENSWAN_SITE = http://download.openswan.org/openswan
|
2017-03-30 15:43:38 +02:00
|
|
|
OPENSWAN_LICENSE = GPL-2.0+, BSD-3-Clause
|
2013-03-24 22:51:55 +01:00
|
|
|
OPENSWAN_LICENSE_FILES = COPYING LICENSE
|
|
|
|
|
2014-07-21 14:20:16 +02:00
|
|
|
OPENSWAN_DEPENDENCIES = host-bison host-flex gmp iproute2
|
2014-09-27 21:32:38 +02:00
|
|
|
OPENSWAN_MAKE_OPTS = ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" \
|
2016-07-11 16:35:14 +02:00
|
|
|
USERCOMPILE="$(TARGET_CFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \
|
|
|
|
USERLINK="$(TARGET_LDFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \
|
2015-03-05 10:22:17 +01:00
|
|
|
INC_USRLOCAL=/usr USE_KLIPS=false USE_MAST=false USE_NM=false
|
2012-03-28 12:32:02 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
OPENSWAN_DEPENDENCIES += libcurl
|
|
|
|
OPENSWAN_MAKE_OPTS += USE_LIBCURL=true
|
2012-03-28 12:32:02 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
OPENSWAN_DEPENDENCIES += openssl
|
|
|
|
OPENSWAN_MAKE_OPTS += HAVE_OPENSSL=true
|
2013-04-27 12:09:49 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OCF_LINUX),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
OPENSWAN_MAKE_OPTS += HAVE_OCF=true
|
2012-03-28 12:32:02 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
define OPENSWAN_BUILD_CMDS
|
2015-07-14 12:53:42 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
|
2014-09-27 21:32:38 +02:00
|
|
|
$(OPENSWAN_MAKE_OPTS) programs
|
2012-03-28 12:32:02 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define OPENSWAN_INSTALL_TARGET_CMDS
|
2015-07-14 12:53:42 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
|
2014-09-27 21:32:38 +02:00
|
|
|
$(OPENSWAN_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
|
2012-03-28 12:32:02 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|