This adds USES=compiler:c11 because of: /usr/local/poudriere/ports/default/science/ncnn/work/ncnn-20190611-40-gd3be711/src/layer/convolutiondepthwise.cpp:450: error: expected '#pragma omp' clause before 'collapse' It's detected that our base compiler supports OpenMP and new OpenMP features are then used. That's why we need new GCC. USES=compiler:openmp would work but it uses a base compiler. Since this port builds also without OpenMP, no further modifications are needed. Approved by: mentors (implicit approval)
23 lines
560 B
Makefile
23 lines
560 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ncnn
|
|
DISTVERSION= 20190611-40
|
|
DISTVERSIONSUFFIX= -gd3be711
|
|
CATEGORIES= science
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= High-performance neural network inference framework
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
USES= cmake compiler:c11
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Tencent
|
|
|
|
post-install: # https://github.com/Tencent/ncnn/issues/1130
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake/${PORTNAME}
|
|
@${MV} ${STAGEDIR}${DATADIR}/* ${STAGEDIR}${PREFIX}/lib/cmake/${PORTNAME}
|
|
@${RMDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
.include <bsd.port.mk>
|