2014-10-04 23:44:58 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# softether
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-10-18 02:07:03 +02:00
|
|
|
SOFTETHER_VERSION = v4.22-9634-beta
|
2014-10-04 23:44:58 +02:00
|
|
|
SOFTETHER_SITE = $(call github,SoftEtherVPN,SoftEtherVPN,$(SOFTETHER_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
SOFTETHER_LICENSE = GPL-2.0
|
2014-10-04 23:44:58 +02:00
|
|
|
SOFTETHER_LICENSE_FILES = LICENSE
|
2017-10-18 04:38:27 +02:00
|
|
|
SOFTETHER_DEPENDENCIES = host-softether libopenssl readline
|
2014-10-04 23:44:58 +02:00
|
|
|
SOFTETHER_AUTORECONF = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_ENABLE_LOCALE),)
|
|
|
|
SOFTETHER_DEPENDENCIES += libiconv
|
2015-03-10 20:00:19 +01:00
|
|
|
SOFTETHER_CONF_ENV = LIBS+=" -liconv"
|
2014-10-04 23:44:58 +02:00
|
|
|
endif
|
|
|
|
|
2015-03-10 20:02:28 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
# openssl needs zlib
|
|
|
|
SOFTETHER_CONF_ENV += LIBS+=" -lz"
|
|
|
|
endif
|
|
|
|
|
2014-10-04 23:44:58 +02:00
|
|
|
SOFTETHER_CONF_OPTS = \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
|
|
|
--with-zlib="$(STAGING_DIR)/usr"
|
|
|
|
|
|
|
|
# host-libiconv does not exist, therefore we need this extra line
|
2017-10-18 04:38:27 +02:00
|
|
|
HOST_SOFTETHER_DEPENDENCIES = host-pkgconf host-libopenssl host-readline
|
2014-10-04 23:44:58 +02:00
|
|
|
|
|
|
|
# target build creates the file hamcore.se2 which needs the host variant of
|
|
|
|
# hamcorebuilder, for details see http://www.vpnusers.com/viewtopic.php?p=5426
|
|
|
|
define HOST_SOFTETHER_BUILD_CMDS
|
2016-10-17 18:06:22 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)/src/Mayaqua
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)/src/Cedar
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)/src/hamcorebuilder
|
2014-10-04 23:44:58 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_SOFTETHER_INSTALL_CMDS
|
2017-07-05 13:14:19 +02:00
|
|
|
$(INSTALL) -m 0755 $(@D)/src/hamcorebuilder/hamcorebuilder $(HOST_DIR)/bin/hamcorebuilder
|
2014-10-04 23:44:58 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|