2015-04-20 19:51:37 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# tor
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-10-28 08:57:29 +02:00
|
|
|
TOR_VERSION = 0.3.1.8
|
2015-04-20 19:51:37 +02:00
|
|
|
TOR_SITE = https://dist.torproject.org
|
2017-03-30 15:43:38 +02:00
|
|
|
TOR_LICENSE = BSD-3-Clause
|
2015-04-20 19:51:37 +02:00
|
|
|
TOR_LICENSE_FILES = LICENSE
|
|
|
|
TOR_DEPENDENCIES = libevent openssl zlib
|
|
|
|
TOR_AUTORECONF = YES
|
|
|
|
|
|
|
|
TOR_CONF_OPTS = \
|
|
|
|
--disable-gcc-hardening \
|
2016-03-07 14:46:48 +01:00
|
|
|
--disable-unittests \
|
2015-04-20 19:51:37 +02:00
|
|
|
--with-libevent-dir=$(STAGING_DIR)/usr \
|
|
|
|
--with-openssl-dir=$(STAGING_DIR)/usr \
|
|
|
|
--with-zlib-dir=$(STAGING_DIR)/usr
|
|
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
TOR_CONF_OPTS += \
|
|
|
|
--enable-static-libevent \
|
|
|
|
--enable-static-openssl \
|
|
|
|
--enable-static-tor \
|
|
|
|
--enable-static-zlib
|
|
|
|
endif
|
|
|
|
|
2016-12-04 11:37:22 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
TOR_DEPENDENCIES += libcap
|
|
|
|
endif
|
|
|
|
|
2017-09-23 10:46:28 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
|
|
TOR_CONF_OPTS += --enable-lzma
|
|
|
|
TOR_DEPENDENCIES += host-pkgconf xz
|
|
|
|
else
|
|
|
|
TOR_CONF_OPTS += --disable-lzma
|
|
|
|
endif
|
|
|
|
|
2015-04-26 12:29:46 +02:00
|
|
|
ifeq ($(BR2_arm)$(BR2_armeb)$(BR2_i386)$(BR2_x86_64)$(BR2_PACKAGE_LIBSECCOMP),yy)
|
2015-04-20 19:51:37 +02:00
|
|
|
TOR_CONF_OPTS += --enable-seccomp
|
|
|
|
TOR_DEPENDENCIES += libseccomp
|
|
|
|
else
|
|
|
|
TOR_CONF_OPTS += --disable-seccomp
|
|
|
|
endif
|
|
|
|
|
2015-07-03 09:02:47 +02:00
|
|
|
# uses gnu extensions
|
2015-07-02 12:14:15 +02:00
|
|
|
TOR_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
|
|
|
|
2015-04-20 19:51:37 +02:00
|
|
|
$(eval $(autotools-package))
|