summaryrefslogtreecommitdiff
path: root/devel/corrade/Makefile
blob: 89cd103d73d4e44722a2499bf6a24ff4210a5817 (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
PORTNAME=	corrade
DISTVERSIONPREFIX=	v
DISTVERSION=	2020.06-1783
DISTVERSIONSUFFIX=	-gd83e30e5
CATEGORIES=	devel

PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES=	249ee71c78774f42301469d4f2f0a269d009cf66.patch:-p1 # https://github.com/mosra/corrade/pull/190

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	C++11/C++14 multiplatform utility library
WWW=		https://magnum.graphics/corrade/ \
		https://github.com/mosra/corrade

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		cmake:testing compiler:c++14-lang
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	mosra
GH_TUPLE=	mosra:toolchains:2243706:toolchains/toolchains

CMAKE_ARGS_armv7=	-DCORRADE_CPU_USE_IFUNC:BOOL=OFF
CMAKE_ARGS=	-DLIB_SUFFIX:STRING="" \
		${CMAKE_ARGS_${ARCH}}

OPTIONS_DEFINE=	TEST
TEST_CMAKE_BOOL=	CORRADE_BUILD_TESTS

.include <bsd.port.pre.mk>

post-patch:
.if ${COMPILER_TYPE} == clang
	@${REINPLACE_CMD} -e 's|#include <__tuple>|#include <tuple>|g' \
		${WRKSRC}/src/Corrade/Utility/StlForwardArray.h \
		${WRKSRC}/src/Corrade/Utility/StlForwardTuple.h
.endif

# tests: 97% tests passed, 5 tests failed out of 143, see https://github.com/mosra/corrade/issues/189

.include <bsd.port.post.mk>