freebsd-ports/math/hpcombi/Makefile
Thierry Thomas c7b78d48b2 Disable HPCombi on i386:
Intrinsic _mm_extract_epi64 not supported by compiler.

Reported by:	pkg-fallout
2020-04-07 08:57:27 +00:00

48 lines
1.1 KiB
Makefile

# Created by: thierry@pompo.net
# $FreeBSD$
PORTNAME= HPCombi
PORTVERSION= 0.0.6
DISTVERSIONPREFIX= v
CATEGORIES= math devel
MAINTAINER= thierry@FreeBSD.org
COMMENT= Fast combinatorics in C++ using SSE/AVX instruction sets
LICENSE= GPLv3
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= Uses Advanced Vector Extensions (AVX) instructions set
BUILD_DEPENDS= sparsehash>0:devel/sparsehash
LIB_DEPENDS= libbenchmark.so:devel/benchmark
USE_GITHUB= yes
GH_ACCOUNT= hivert
USES= cmake compiler:c++11-lang localbase:ldflags
#OPTIONS_DEFINE= DOXYGEN TEST
OPTIONS_DEFINE= DOXYGEN
OPTIONS_SUB= yes
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_CMAKE_ON= -DAPIDOC_DIR=${DOCSDIR}
TEST_CMAKE_ON= -DBUILD_TESTING=1
TEST_LIB_DEPENDS= libboost_thread.so:devel/boost-libs
.include <bsd.port.options.mk>
pre-configure-DOXYGEN-off:
${REINPLACE_CMD} -e 's/add_subdirectory(doc)/# No doc/' \
${WRKSRC}/CMakeLists.txt
post-stage:
${MKDIR} ${STAGEDIR}${DATADIR}
${MV} ${STAGEDIR}${PREFIX}/VERSION ${STAGEDIR}${DATADIR}/
post-stage-DOXYGEN-on:
${MV} ${STAGEDIR}${PREFIX}/doc/${PORTNAME}/html ${STAGEDIR}${DOCSDIR}/
${RM} -r ${STAGEDIR}${PREFIX}/doc
.include <bsd.port.mk>