summaryrefslogtreecommitdiff
path: root/devel/vera++/Makefile
blob: 897d535214e73ca2131081ba0cc53aeb279998bc (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
48
49
50
# Created by: Cristiano Rolim Pereira <cristianorolim@outlook.com>
# $FreeBSD$

PORTNAME=	vera++
PORTVERSION=	1.3.0
CATEGORIES=	devel
MASTER_SITES=	https://bitbucket.org/verateam/vera/downloads/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		${DISTNAME}-doc${EXTRACT_SUFX}

MAINTAINER=	cristianorolim@outlook.com
COMMENT=	Tool for verification of C++ source code

LICENSE=	BSL
LICENSE_FILE=	${WRKSRC}/LICENSE_1_0.txt

BUILD_DEPENDS=	boost-libs>=0:devel/boost-libs

USES=		cmake:outsource tk

CMAKE_ARGS+=	-DTCL_INCLUDE_PATH=${TCL_INCLUDEDIR} \
		-DTK_INCLUDE_PATH=${TK_INCLUDEDIR} \
		-DVERA_USE_SYSTEM_BOOST:BOOL=ON

PLIST_FILES=	bin/vera++ man/man1/vera++.1.gz

DATADIR=	${PREFIX}/lib/${PORTNAME}
PORTDATA=	*
PORTDOCS=	*

OPTIONS_DEFINE=	DOCS LUA PYTHON
OPTIONS_DEFAULT=	LUA PYTHON

PYTHON_CMAKE_OFF=	-DVERA_PYTHON:BOOL=OFF
PYTHON_CMAKE_ON=	-DVERA_PYTHON:BOOL=ON
PYTHON_LIB_DEPENDS=	libboost_python.so:devel/boost-python-libs
LUA_CMAKE_OFF=	-DVERA_LUA:BOOL=OFF
LUA_CMAKE_ON=	-DVERA_LUA:BOOL=ON
LUA_LIB_DEPENDS=	libluabind.so:devel/luabind

post-patch:
	@${REINPLACE_CMD} -e '/^add_subdirectory(doc/d' \
		${WRKSRC}/CMakeLists.txt

post-install:
	${INSTALL_MAN} ${WRKDIR}/vera++.1 ${STAGEDIR}${PREFIX}/man/man1
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKDIR}/vera++.html ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>