aboutsummaryrefslogtreecommitdiff
path: root/security/xca/Makefile
blob: 49c3b47864cd8c744cf2bb0a1cdd8ea70a22823d (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
# Created by: Valentin Zahariev <curly@e-card.bg>
# $FreeBSD$

PORTNAME=	xca
PORTVERSION=	2.3.0
CATEGORIES=	security
MASTER_SITES=	https://github.com/${GH_ACCOUNT}/xca/releases/download/RELEASE.${PORTVERSION}/

MAINTAINER=	madpilot@FreeBSD.org
COMMENT=	Graphical certification authority

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYRIGHT

LIB_DEPENDS=	libltdl.so:devel/libltdl

USES=		compiler:c++11-lang desktop-file-utils gmake localbase \
		pkgconfig qt:5 shared-mime-info shebangfix ssl
USE_QT=		buildtools_build core gui linguist_build sql widgets
USE_CXXSTD=	c++11

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-openssl=${OPENSSLDIR} \
		--with-qt=${PREFIX} \
		--with-qt-version=5
MAKE_ARGS=	DOCTOOL="${TRUE}"
SHEBANG_FILES=	doc/code2html

GH_ACCOUNT=	chris2511

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e \
		'/^CFLAGS/s|-O2||' ${WRKSRC}/Local.mak.in
	@${REINPLACE_CMD} -e \
		'/install/s|-D|-c|' ${WRKSRC}/img/Makefile

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xca*

.include <bsd.port.mk>