The port wants to know what version of TLS it is using and asserts that it knows. Unsurprisingly, the mechanism depends on TLS1_3_VERSION being defined to the correct value. We cannot define this publicly in libssl yet since this would result in a lot of breakage in other ports, so use a local define in the build environment. Reported and tested by Martin (martingot () protonmail com) ok gonzalo (maintainer), kn
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.60 2020/07/21 08:05:06 tb Exp $
|
|
|
|
BROKEN-alpha = MetalinkParserStateV4Impl.cc:219:1: internal compiler error: Segmentation fault
|
|
|
|
COMMENT = lightweight multi-protocol & multi-source download utility
|
|
V = 1.35.0
|
|
DISTNAME = aria2-${V}
|
|
CATEGORIES = www
|
|
HOMEPAGE = https://aria2.github.io/
|
|
REVISION = 0
|
|
|
|
MAINTAINER = Gonzalo L. R. <gonzalo@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MASTER_SITES = https://github.com/aria2/aria2/releases/download/release-${V}/
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
LIB_DEPENDS = databases/sqlite3 \
|
|
devel/gettext,-runtime \
|
|
net/libcares \
|
|
security/libssh2
|
|
|
|
BUILD_DEPENDS = devel/m4 \
|
|
devel/cppunit
|
|
|
|
TEST_DEPENDS = ${BUILD_DEPENDS}
|
|
|
|
WANTLIB += c cares crypto expat iconv intl m pthread sqlite3 ssh2 ssl z ${COMPILER_LIBCXX}
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ENV = CPPFLAGS="-DTLS1_3_VERSION=0x0304 -I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS += --disable-rpath \
|
|
--with-sqlite3 \
|
|
--with-libz \
|
|
--with-libcares \
|
|
--with-libexpat \
|
|
--with-libssh2 \
|
|
--with-openssl \
|
|
--without-gnutls \
|
|
--without-libxml2
|
|
|
|
.include <bsd.port.mk>
|