The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / openswan / openswan.mk
1 ################################################################################
2 #
3 # openswan
4 #
5 ################################################################################
6
7 OPENSWAN_VERSION = 2.6.42
8 OPENSWAN_SITE = http://download.openswan.org/openswan
9 OPENSWAN_LICENSE = GPLv2+, BSD-3c
10 OPENSWAN_LICENSE_FILES = COPYING LICENSE
11
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_STATIC_LIBS),,-fPIE)" \
15         USERLINK="$(TARGET_LDFLAGS) $(if $(BR2_STATIC_LIBS),,-fPIE)" \
16         INC_USRLOCAL=/usr USE_KLIPS=false USE_MAST=false USE_NM=false
17
18 ifeq ($(BR2_PACKAGE_LIBCURL),y)
19 OPENSWAN_DEPENDENCIES += libcurl
20 OPENSWAN_MAKE_OPTS += USE_LIBCURL=true
21 endif
22
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
28 endif
29 endif
30
31 define OPENSWAN_BUILD_CMDS
32         $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
33                 $(OPENSWAN_MAKE_OPTS) programs
34 endef
35
36 define OPENSWAN_INSTALL_TARGET_CMDS
37         $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
38                 $(OPENSWAN_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
39 endef
40
41 $(eval $(generic-package))