46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# Created by: Yuri Victorovich <yuri@rawbw.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ispc
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.12.0-118
|
|
DISTVERSIONSUFFIX= -gf2948221
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Intel's compiler for high-performance SIMD programming
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
ONLY_FOR_ARCHS= aarch64 amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= only available for these architectures
|
|
|
|
BUILD_DEPENDS= m4:devel/m4
|
|
LIB_DEPENDS= libLLVM.so:devel/llvm${LLVM_DEFAULT}
|
|
|
|
USES= bison cmake compiler:c++14-lang python:build shebangfix
|
|
USE_GITHUB= yes
|
|
SHEBANG_FILES= *.py
|
|
|
|
CONFIGURE_ENV= PATH=${LOCALBASE}/llvm${LLVM_DEFAULT}/bin:${PATH}
|
|
CMAKE_OFF= ISPC_INCLUDE_EXAMPLES
|
|
|
|
BINARY_ALIAS= python=${PYTHON_CMD} m4=${LOCALBASE}/bin/gm4
|
|
|
|
PLIST_FILES= bin/ispc \
|
|
bin/check_isa
|
|
|
|
do-test: # tests are broken with python-3.6
|
|
@cd ${WRKSRC} && ISPC_HOME=${WRKSRC} ./run_tests.py
|
|
|
|
run-examples:
|
|
@[ -f ${LOCALBASE}/lib/libtbb.so ] || ! echo "ERROR run-examples target requires devel/tbb package installed"
|
|
.for e in simple sort mandelbrot stencil
|
|
@cd ${WRKSRC}/examples/${e} && \
|
|
${ECHO} "===> Running example ${e}" && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \
|
|
./${e}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|