1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/lang/halide/Makefile
Mathieu Arnold cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00

47 lines
1.3 KiB
Makefile

PORTNAME= halide
DISTVERSIONPREFIX= release_
DISTVERSION= 2019_08_27-2654
DISTVERSIONSUFFIX= -g664dc4993
CATEGORIES= lang
PATCH_SITES= https://github.com/halide/Halide/commit/
PATCHFILES= 890a5199ae8ade759de076217670ae980bf44823.patch:-p1
MAINTAINER= yuri@FreeBSD.org
COMMENT= Language for fast and portable data-parallel computation
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BROKEN_riscv64= fails to build: /usr/include/c++/v1/__config:1141:6: No thread API
BUILD_DEPENDS= llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT} # because halide expects LLVMConfig.cmake
RUN_DEPENDS= llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT}
USES= cmake
USE_GITHUB= yes
GH_PROJECT= Halide
USE_LDCONFIG= yes
# use the same compiler that devel/llvmNN installs
CC= clang${LLVM_DEFAULT}
CXX= clang++${LLVM_DEFAULT}
CPP= clang-cpp${LLVM_DEFAULT}
CMAKE_ARGS= -DLLVM_DIR=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/cmake/llvm
CMAKE_ON= LLVM_USE_SHARED_LLVM_LIBRARY HALIDE_SHARED_LIBRARY
CMAKE_OFF= WITH_PYTHON_BINDINGS WITH_APPS WITH_TUTORIALS WITH_DOCS WITH_TESTS # APPS are demos
OPTIONS_DEFINE= NATIVE
OPTIONS_DEFAULT=
NATIVE_DESC= Build with native optimizations (-march=native)
post-patch-NATIVE-off:
@${REINPLACE_CMD} -e 's| -march=native | |' ${WRKSRC}/apps/linear_algebra/Makefile
post-install:
${RM} -r ${STAGEDIR}${PREFIX}/share
.include <bsd.port.mk>