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
|
|
|
|
2014-03-12 17:50:00 +01:00
|
|
|
OPENSWAN_VERSION = 2.6.41
|
2012-03-28 12:32:02 +02:00
|
|
|
OPENSWAN_SITE = http://download.openswan.org/openswan
|
2013-03-24 22:51:55 +01:00
|
|
|
OPENSWAN_LICENSE = GPLv2+, BSD-3c
|
|
|
|
OPENSWAN_LICENSE_FILES = COPYING LICENSE
|
|
|
|
|
2012-03-28 12:32:02 +02:00
|
|
|
OPENSWAN_DEPENDENCIES = host-bison gmp iproute2
|
|
|
|
OPENSWAN_MAKE_OPT = ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" \
|
2013-06-25 17:14:36 +02:00
|
|
|
USERCOMPILE="$(TARGET_CFLAGS) -fPIE" INC_USRLOCAL=/usr \
|
2012-03-28 12:32:02 +02:00
|
|
|
USE_KLIPS=false USE_MAST=false USE_NM=false
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
OPENSWAN_DEPENDENCIES += libcurl
|
|
|
|
OPENSWAN_MAKE_OPT += USE_LIBCURL=true
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
OPENSWAN_DEPENDENCIES += openssl
|
|
|
|
OPENSWAN_MAKE_OPT += HAVE_OPENSSL=true
|
2013-04-27 12:09:49 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OCF_LINUX),y)
|
2012-03-28 12:32:02 +02:00
|
|
|
OPENSWAN_MAKE_OPT += HAVE_OCF=true
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
define OPENSWAN_BUILD_CMDS
|
2013-03-24 22:51:55 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
|
|
$(OPENSWAN_MAKE_OPT) programs
|
2012-03-28 12:32:02 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define OPENSWAN_INSTALL_TARGET_CMDS
|
2013-03-24 22:51:55 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
|
|
$(OPENSWAN_MAKE_OPT) DESTDIR=$(TARGET_DIR) install
|
2012-03-28 12:32:02 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|