toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / softether / softether.mk
blobda7d12972330214094f0c3aec6e2600f34d19842
1 ################################################################################
3 # softether
5 ################################################################################
7 SOFTETHER_VERSION = 1e17c9bcfd7e7b31756aa5389bcbff76c2c9c88a
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
17 ifeq ($(BR2_ENABLE_LOCALE),)
18 SOFTETHER_DEPENDENCIES += libiconv
19 SOFTETHER_CONF_ENV = LIBS+=" -liconv"
20 endif
22 ifeq ($(BR2_STATIC_LIBS),y)
23 # openssl needs zlib
24 SOFTETHER_CONF_ENV += LIBS+=" -lz"
25 endif
27 SOFTETHER_CONF_OPTS = \
28 --with-openssl="$(STAGING_DIR)/usr" \
29 --with-zlib="$(STAGING_DIR)/usr"
31 # host-libiconv does not exist, therefore we need this extra line
32 HOST_SOFTETHER_DEPENDENCIES = host-pkgconf host-openssl host-readline
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 $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/src/Mayaqua
38 $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/src/Cedar
39 $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/src/hamcorebuilder
40 endef
42 define HOST_SOFTETHER_INSTALL_CMDS
43 $(INSTALL) -m 0755 $(@D)/src/hamcorebuilder/hamcorebuilder $(HOST_DIR)/usr/bin/hamcorebuilder
44 endef
46 $(eval $(autotools-package))
47 $(eval $(host-autotools-package))