aboutsummaryrefslogtreecommitdiff
path: root/security/boringssl/Makefile
blob: 9260e49db6e2723f78d5e6435a7ce3577dba0957 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PORTNAME=	boringssl
PORTVERSION=	0.0.0.0.2024.04.01.01
PORTREVISION=	2
CATEGORIES=	security
MASTER_SITES+=	https://proxy.golang.org/:gomods
DISTFILES+=	golang.org/x/crypto/@v/v0.17.0.zip:gomods \
		golang.org/x/crypto/@v/v0.17.0.mod:gomods \
		golang.org/x/net/@v/v0.17.0.zip:gomods \
		golang.org/x/net/@v/v0.17.0.mod:gomods \
		golang.org/x/sys/@v/v0.15.0.zip:gomods \
		golang.org/x/sys/@v/v0.15.0.mod:gomods \
		golang.org/x/term/@v/v0.15.0.zip:gomods \
		golang.org/x/term/@v/v0.15.0.mod:gomods
EXTRACT_ONLY=	${GH_ACCOUNT}-${PORTNAME}-${PORTVERSION}-${GH_TAGNAME}_GH0.tar.gz

MAINTAINER=	osa@FreeBSD.org
COMMENT=	Fork of OpenSSL
WWW=		https://boringssl.googlesource.com/boringssl/

LICENSE=	OpenSSL
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cmake:insource cpe go:no_targets localbase perl5

CONFLICTS_INSTALL=	libressl libressl-devel \
			openssl openssl3[012] openssl-quictls

CPE_VENDOR=	google

USE_GITHUB=	yes
GH_ACCOUNT=	google
GH_TAGNAME=	077d4d2
CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=1

CFLAGS_i386=	-msse2
USE_LDCONFIG=	yes
LDFLAGS+=	-Wl,-rpath,${LOCALBASE}/lib
TEST_TARGET=	run_tests
MAKE_ENV+=	GOFLAGS=-mod=readonly \
		GOPROXY=file://${DISTDIR}

post-install:
	${LN} -sf libcrypto.so.1 ${STAGEDIR}${PREFIX}/lib/libcrypto.so.1.0.0
	${LN} -sf libssl.so.1 ${STAGEDIR}${PREFIX}/lib/libssl.so.1.0.0

.include <bsd.port.mk>