aboutsummaryrefslogtreecommitdiffstats
path: root/devel/embb/Makefile
blob: 95b3353d0ae9c56eb50c9a3de0ed2e3ed4fff22c (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
51
52
# Created by: Thomas Zander <riggs@FreeBSD.org>
# $FreeBSD$

PORTNAME=   embb
PORTVERSION=    0.2.2
CATEGORIES= devel

MAINTAINER= riggs@FreeBSD.org
COMMENT=    C/C++ library for parallel programming

LICENSE=    BSD2CLAUSE BSD3CLAUSE
LICENSE_COMB=   multi

USE_GITHUB= yes
GH_ACCOUNT= siemens
GH_COMMIT=  d9c1d0c
GH_TAGNAME= ${GH_COMMIT}

USES=       cmake:outsource compiler:c11

CMAKE_ARGS= -DINSTALL_PREFIX=${PREFIX}

OPTIONS_DEFINE= DOCS EXAMPLES TESTS

TESTS_DESC= Build and run parallel unit tests

DOCS_CMAKE_OFF= -DINSTALL_DOCS=OFF

TESTS_CMAKE_OFF=-DBUILD_TESTS=OFF

OPTIONS_SUB=    yes

ONLY_FOR_ARCHS= i386 amd64

.include <bsd.port.options.mk>

post-patch:
    ${RM} ${WRKSRC}/doc/examples/CMakeLists.txt
    ${MV} ${WRKSRC}/doc/examples ${WRKSRC}
    ${REINPLACE_CMD} -e \
        's|$${INSTALL_PREFIX_DOCS} PARENT_SCOPE|"${DOCSDIR}" PARENT_SCOPE|' \
        ${WRKSRC}/CMakeCommon/SetInstallPaths.cmake

.if ${PORT_OPTIONS:MTESTS}
post-build:
    (cd ${BUILD_WRKSRC}/binaries && ./run_tests.sh)
.endif

post-install:
    cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}/${EXAMPLESDIR}

.include <bsd.port.mk>