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 / softether / softether.mk
1 ################################################################################
2 #
3 # softether
4 #
5 ################################################################################
6
7 SOFTETHER_VERSION = 18b120e5f747a84d26302ec706f6c1c91d642ace
8 SOFTETHER_SITE = $(call github,SoftEtherVPN,SoftEtherVPN,$(SOFTETHER_VERSION))
9 SOFTETHER_PATCH = \
10         https://github.com/dajhorn/SoftEtherVPN/commit/c5e5d7e93c6f3302adf5821c29c4efdb7630e418.patch \
11         https://github.com/dajhorn/SoftEtherVPN/commit/75625af541fd128f51079d0ffe5ef24645b8f421.patch
12 SOFTETHER_LICENSE = GPLv2
13 SOFTETHER_LICENSE_FILES = LICENSE
14 SOFTETHER_DEPENDENCIES = host-softether openssl readline
15 SOFTETHER_AUTORECONF = YES
16
17 ifeq ($(BR2_ENABLE_LOCALE),)
18 SOFTETHER_DEPENDENCIES += libiconv
19 SOFTETHER_CONF_ENV = LIBS+=" -liconv"
20 endif
21
22 ifeq ($(BR2_STATIC_LIBS),y)
23 # openssl needs zlib
24 SOFTETHER_CONF_ENV += LIBS+=" -lz"
25 endif
26
27 SOFTETHER_CONF_OPTS = \
28         --with-openssl="$(STAGING_DIR)/usr" \
29         --with-zlib="$(STAGING_DIR)/usr"
30
31 # host-libiconv does not exist, therefore we need this extra line
32 HOST_SOFTETHER_DEPENDENCIES = host-pkgconf host-openssl host-readline
33
34 # target build creates the file hamcore.se2 which needs the host variant of
35 # hamcorebuilder, for details see http://www.vpnusers.com/viewtopic.php?p=5426
36 define HOST_SOFTETHER_BUILD_CMDS
37         $(MAKE) -C $(@D)/src/Mayaqua
38         $(MAKE) -C $(@D)/src/Cedar
39         $(MAKE) -C $(@D)/src/hamcorebuilder
40 endef
41
42 define HOST_SOFTETHER_INSTALL_CMDS
43         $(INSTALL) -m 0755 $(@D)/src/hamcorebuilder/hamcorebuilder $(HOST_DIR)/usr/bin/hamcorebuilder
44 endef
45
46 $(eval $(autotools-package))
47 $(eval $(host-autotools-package))