<commit_before># $FreeBSD$

PORTNAME=		tor
DISTVERSION=		0.3.4.5
DISTVERSIONSUFFIX=	-rc
CATEGORIES=		security net ipv6
MASTER_SITES=		TOR
PKGNAMESUFFIX=		-devel

MAINTAINER=	<EMAIL>
COMMENT=	Unofficial/experimental version of security/tor-devel

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_mips64=		Does not build: error: Need a uint128_t implementation!
BROKEN_powerpc64=	Does not build: error: Need a uint128_t implementation!
BROKEN_sparc64=		Does not build: error: Need a uint128_t implementation!

CPE_VENDOR=	torproject

USES=		cpe pkgconfig

GNU_CONFIGURE=	yes

CONFIGURE_ARGS=	--disable-gcc-hardening --disable-gcc-warnings-advisory \
		--with-tor-user=${USERS} --with-tor-group=${GROUPS} \
		--with-openssl-dir=${OPENSSLBASE} \
		--with-libevent-dir=${LOCALBASE} \
		--with-zlib-dir=/usr

CONFIGURE_ENV=	TOR_CPPFLAGS_libevent='-I${LOCALBASE}/include' \
		TOR_CPPFLAGS_openssl='-I${OPENSSLINC}' \
		TOR_CPPFLAGS_zlib='-I/usr/include' \
		TOR_LDFLAGS_libevent='-L${LOCALBASE}/lib' \
		TOR_LDFLAGS_openssl='-L${OPENSSLLIB} -Wl,-rpath,${OPENSSLRPATH}' \
		TOR_LDFLAGS_zlib='-L/usr/lib'

MAKE_ENV=	USE_OPENSSL_RPATH=yes

OPTIONS_DEFINE=			DOCS EXAMPLES GNUMAKE STATIC TOR2WEB
OPTIONS_GROUP=			COMPRESSION
OPTIONS_GROUP_COMPRESSION=	LZMA ZSTD
OPTIONS_RADIO=			MALLOC
OPTIONS_RADIO_MALLOC=		DMALLOC TCMALLOC
OPTIONS_SINGLE=			SSLTLS
OPTIONS_SINGLE_SSLTLS=		SSLTLS_BASE SSLTLS_PORTS

COMPRESSION_DESC=	Compression support schemes
DMALLOC_DESC=		Use debug memory allocation library
MALLOC_DESC=		Dynamic memory allocation management
GNUMAKE_DESC=		Use 'GNU Make' as default make tool
SSLTLS_DESC=		SSL/TLS support
SSLTLS_BASE_DESC=	Use FreeBSD's base SSL/TLS libraries
SSLTLS_PORTS_DESC=	Use SSL/TLS from ports instead of FreeBSD's
LZMA_DESC=		Lempel-Ziv-Markov (LZMA)
STATIC_DESC=		Create an entirely static Tor binary
TCMALLOC_DESC=		Use tcmalloc memory allocation library
TOR2WEB_DESC=		Support Tor2Web non-anonymous mode
ZSTD_DESC=		Zstandard (Zstd)

OPTIONS_DEFAULT=	DOCS EXAMPLES SSLTLS_BASE

DMALLOC_CONFIGURE_ON=		--with-dmalloc
DMALLOC_LIB_DEPENDS=		libdmalloc.so:devel/dmalloc
DOCS_CONFIGURE_ENABLE=		asciidoc
DOCS_BUILD_DEPENDS=		asciidoc:textproc/asciidoc
GNUMAKE_USES=			gmake
LZMA_CONFIGURE_ENABLE=		lzma
LZMA_LIB_DEPENDS=		liblzma.so:archivers/lzmalib
SSLTLS_BASE_LIB_DEPENDS=	libevent.so:devel/libevent
SSLTLS_BASE_MAKE_ENV=		OPENSSLRPATH=/usr/lib
SSLTLS_PORTS_BUILD_DEPENDS=	openssl:${OPENSSL_PORT}
SSLTLS_PORTS_LIB_DEPENDS=	libevent.so:devel/libevent
SSLTLS_PORTS_MAKE_ENV=		OPENSSLRPATH=${OPENSSLLIB}
STATIC_CONFIGURE_ARGS=		--disable-linker-hardening
STATIC_CONFIGURE_ENABLE=	static-tor
STATIC_BUILD_DEPENDS=		${LOCALBASE}/lib/libevent.a:devel/libevent
STATIC_USES=			ssl:build<commit_msg>actual-package-depends: dependency on /usr/lib/liblzma.so not registered (normal if it belongs to base)<commit_after># $FreeBSD$

PORTNAME=		tor
DISTVERSION=		0.3.4.5
DISTVERSIONSUFFIX=	-rc
CATEGORIES=		security net ipv6
MASTER_SITES=		TOR
PKGNAMESUFFIX=		-devel

MAINTAINER=	<EMAIL>
COMMENT=	Unofficial/experimental version of security/tor-devel

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_mips64=		Does not build: error: Need a uint128_t implementation!
BROKEN_powerpc64=	Does not build: error: Need a uint128_t implementation!
BROKEN_sparc64=		Does not build: error: Need a uint128_t implementation!

CPE_VENDOR=	torproject

USES=		cpe pkgconfig

GNU_CONFIGURE=	yes

CONFIGURE_ARGS=	--disable-gcc-hardening --disable-gcc-warnings-advisory \
		--with-tor-user=${USERS} --with-tor-group=${GROUPS} \
		--with-openssl-dir=${OPENSSLBASE} \
		--with-libevent-dir=${LOCALBASE} \
		--with-zlib-dir=/usr

CONFIGURE_ENV=	TOR_CPPFLAGS_libevent='-I${LOCALBASE}/include' \
		TOR_CPPFLAGS_openssl='-I${OPENSSLINC}' \
		TOR_CPPFLAGS_zlib='-I/usr/include' \
		TOR_LDFLAGS_libevent='-L${LOCALBASE}/lib' \
		TOR_LDFLAGS_openssl='-L${OPENSSLLIB} -Wl,-rpath,${OPENSSLRPATH}' \
		TOR_LDFLAGS_zlib='-L/usr/lib'

MAKE_ENV=	USE_OPENSSL_RPATH=yes

OPTIONS_DEFINE=			DOCS EXAMPLES GNUMAKE STATIC TOR2WEB
OPTIONS_GROUP=			COMPRESSION
OPTIONS_GROUP_COMPRESSION=	LZMA ZSTD
OPTIONS_RADIO=			MALLOC
OPTIONS_RADIO_MALLOC=		DMALLOC TCMALLOC
OPTIONS_SINGLE=			SSLTLS
OPTIONS_SINGLE_SSLTLS=		SSLTLS_BASE SSLTLS_PORTS

COMPRESSION_DESC=	Compression support schemes
DMALLOC_DESC=		Use debug memory allocation library
MALLOC_DESC=		Dynamic memory allocation management
GNUMAKE_DESC=		Use 'GNU Make' as default make tool
SSLTLS_DESC=		SSL/TLS support
SSLTLS_BASE_DESC=	Use FreeBSD's base SSL/TLS libraries
SSLTLS_PORTS_DESC=	Use SSL/TLS from ports instead of FreeBSD's
LZMA_DESC=		Lempel-Ziv-Markov (LZMA)
STATIC_DESC=		Create an entirely static Tor binary
TCMALLOC_DESC=		Use tcmalloc memory allocation library
TOR2WEB_DESC=		Support Tor2Web non-anonymous mode
ZSTD_DESC=		Zstandard (Zstd)

OPTIONS_DEFAULT=	DOCS EXAMPLES SSLTLS_BASE

DMALLOC_CONFIGURE_ON=		--with-dmalloc
DMALLOC_LIB_DEPENDS=		libdmalloc.so:devel/dmalloc
DOCS_CONFIGURE_ENABLE=		asciidoc
DOCS_BUILD_DEPENDS=		asciidoc:textproc/asciidoc
GNUMAKE_USES=			gmake
LZMA_CONFIGURE_ENABLE=		lzma
SSLTLS_BASE_LIB_DEPENDS=	libevent.so:devel/libevent
SSLTLS_BASE_MAKE_ENV=		OPENSSLRPATH=/usr/lib
SSLTLS_PORTS_BUILD_DEPENDS=	openssl:${OPENSSL_PORT}
SSLTLS_PORTS_LIB_DEPENDS=	libevent.so:devel/libevent
SSLTLS_PORTS_MAKE_ENV=		OPENSSLRPATH=${OPENSSLLIB}
STATIC_CONFIGURE_ARGS=		--disable-linker-hardening
STATIC_CONFIGURE_ENABLE=	static-tor
STATIC_BUILD_DEPENDS=		${LOCALBASE}/lib/libevent.a:devel/libevent
STATIC_USES=			ssl:build
{'fraction_non_alphanumeric': 0.0904952658412236, 'fraction_numerical': 0.00873998543335761, 'mean_word_length': 6.256274768824307, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '213402', 'n_tokens_mistral': 2335, 'n_tokens_neox': 2223, 'n_words': 408}