aboutsummaryrefslogtreecommitdiff
path: root/security/gost-engine/Makefile
blob: a7196c482d49b6ff79ecf79c5fbb259b3d5ee151 (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
47
# Created by: Eugene Grosbein <eugen@FreeBSD.org>

PORTNAME=	gost-engine
DISTVERSION=	g20190421
CATEGORIES=	security

MAINTAINER=	eugen@FreeBSD.org
COMMENT=	Implementation of the Russian GOST crypto algorithms for OpenSSL

LICENSE=	OpenSSL
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_SSL=			libressl libressl-devel
BROKEN_SSL_REASON_libressl=	needs features only available in OpenSSL 1.1.1+
BROKEN_SSL_REASON_libressl-devel=needs features only available in OpenSSL 1.1.1+

USES=		cmake ssl
USE_GITHUB=	yes
GH_PROJECT=	engine
GH_TAGNAME=	7ed64cd

ENGINESDIR?=	${PREFIX}/lib/engines-1.1

CMAKE_ARGS+=	-DOPENSSL_ROOT_DIR=${OPENSSLBASE} \
		-DOPENSSL_ENGINES_DIR=${ENGINESDIR}

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

post-patch:
	${REINPLACE_CMD} 's/-Werror //' ${WRKSRC}/CMakeLists.txt

post-install:
	( cd ${STAGEDIR}${PREFIX}/lib/engines-1.1 && ${MV} gost.so libgost.so )

post-install-DOCS-off:
	( cd ${STAGEDIR}${PREFIX}/man/man1 && ${RM} gost12sum.1 gostsum.1 )

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	( cd ${WRKSRC} && ${INSTALL_MAN} INSTALL.md README.gost README.md \
		${STAGEDIR}${DOCSDIR} )

.include <bsd.port.mk>