Changeset View
Changeset View
Standalone View
Standalone View
math/mkl-dnn/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= mkl-dnn | PORTNAME= mkl-dnn | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
DISTVERSION= 1.1.20191027 | DISTVERSION= 1.1.20191027 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= math | CATEGORIES= math | ||||
MAINTAINER= yuri@FreeBSD.org | MAINTAINER= yuri@FreeBSD.org | ||||
COMMENT= Intel(R) Math Kernel Library for Deep Neural Networks | COMMENT= Intel(R) Math Kernel Library for Deep Neural Networks | ||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
BROKEN_i386= error: shift count >= width of type (and other errors), see https://github.com/intel/mkl-dnn/issues/315 | BROKEN_i386= error: shift count >= width of type (and other errors), see https://github.com/intel/mkl-dnn/issues/315 | ||||
TEST_DEPENDS= bash:shells/bash | TEST_DEPENDS= bash:shells/bash | ||||
USES= cmake compiler:c++11-lang | USES= cmake compiler:c++11-lang | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= intel | GH_ACCOUNT= intel | ||||
GH_TAGNAME= f32e21b | GH_TAGNAME= f32e21b | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
OPTIONS_DEFINE= OPENMP | OPTIONS_DEFINE= OPENMP | ||||
OPTIONS_DEFAULT= OPENMP | OPTIONS_DEFAULT= OPENMP | ||||
OPENMP_CMAKE_BOOL= USE_OPENMP | OPENMP_CMAKE_BOOL= USE_OPENMP | ||||
OPENMP_LIB_DEPENDS= libomp.so:devel/openmp | |||||
OPENMP_BROKEN_OFF= still requires omp.h, see https://github.com/intel/mkl-dnn/issues/581 | OPENMP_BROKEN_OFF= still requires omp.h, see https://github.com/intel/mkl-dnn/issues/581 | ||||
CXXFLAGS_amd64= -msse4.1 | CXXFLAGS_amd64= -msse4.1 | ||||
CXXFLAGS_i386= -msse4.1 | CXXFLAGS_i386= -msse4.1 | ||||
post-install: | post-install: | ||||
@${RM} -r ${STAGEDIR}${PREFIX}/share/doc | @${RM} -r ${STAGEDIR}${PREFIX}/share/doc | ||||
do-test: # some tests are known to fail: https://github.com/intel/mkl-dnn/issues/350 | do-test: # some tests are known to fail: https://github.com/intel/mkl-dnn/issues/350 | ||||
@${REINPLACE_CMD} 's| /bin/bash | ${LOCALBASE}/bin/bash |' ${WRKSRC}/tests/CMakeLists.txt | @${REINPLACE_CMD} 's| /bin/bash | ${LOCALBASE}/bin/bash |' ${WRKSRC}/tests/CMakeLists.txt | ||||
@cd ${BUILD_WRKSRC} && \ | @cd ${BUILD_WRKSRC} && \ | ||||
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS=ON ${CMAKE_SOURCE_PATH} && \ | ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS=ON ${CMAKE_SOURCE_PATH} && \ | ||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ | ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ | ||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test | ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |