kumquat-buildroot/package/tor/tor.mk
Bernd Kuhls 0ccb665e15 package/tor: add optional support for lzma
According to https://blog.torproject.org/tor-0317-now-released
we also need host-pkgconf for lzma support.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2017-09-26 22:46:58 +02:00

51 lines
1.2 KiB
Makefile

################################################################################
#
# tor
#
################################################################################
TOR_VERSION = 0.3.1.7
TOR_SITE = https://dist.torproject.org
TOR_LICENSE = BSD-3-Clause
TOR_LICENSE_FILES = LICENSE
TOR_DEPENDENCIES = libevent openssl zlib
TOR_AUTORECONF = YES
TOR_CONF_OPTS = \
--disable-gcc-hardening \
--disable-unittests \
--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
ifeq ($(BR2_PACKAGE_LIBCAP),y)
TOR_DEPENDENCIES += libcap
endif
ifeq ($(BR2_PACKAGE_XZ),y)
TOR_CONF_OPTS += --enable-lzma
TOR_DEPENDENCIES += host-pkgconf xz
else
TOR_CONF_OPTS += --disable-lzma
endif
ifeq ($(BR2_arm)$(BR2_armeb)$(BR2_i386)$(BR2_x86_64)$(BR2_PACKAGE_LIBSECCOMP),yy)
TOR_CONF_OPTS += --enable-seccomp
TOR_DEPENDENCIES += libseccomp
else
TOR_CONF_OPTS += --disable-seccomp
endif
# uses gnu extensions
TOR_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
$(eval $(autotools-package))