aboutsummaryrefslogblamecommitdiff
path: root/math/xtensor/Makefile
blob: e3d61879c3b9c3ac67d889f9daab5e83de9da40b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                       
                      







                                                                             





                                                         
                                         
                                             


                     
                             
 


                   
                                                                       

                                                                          
                                                                            

                                                          

                      
PORTNAME=	xtensor
DISTVERSION=	0.24.2
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Multi-dimensional arrays with broadcasting and lazy computing

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	nlohmann-json>0:devel/nlohmann-json \
		xtl-quant-stack>0:devel/xtl-quant-stack
RUN_DEPENDS=	nlohmann-json>0:devel/nlohmann-json \
		xtl-quant-stack>0:devel/xtl-quant-stack
TEST_DEPENDS=	nlohmann-json>0:devel/nlohmann-json \
		xtl-quant-stack>0:devel/xtl-quant-stack \
		doctest>0:devel/doctest \
		googletest>0:devel/googletest

USES=		cmake
USE_GITHUB=	yes
GH_ACCOUNT=	xtensor-stack

NO_BUILD=	yes
NO_ARCH=	yes

do-test: install # https://github.com/xtensor-stack/xtensor/issues/2466
	@${RLN} ${STAGEDIR}${PREFIX}/include ${WRKSRC}/test/staged-include
	@cd ${WRKSRC}/test && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} . && \
		${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \
		${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xtest

.include <bsd.port.mk>