1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

devel/flang: Attempt to fix TESTS option

In r479159 the TESTS option was incorrectly switched to options
helpers.  Options helpers are ineffective when set after
bsd.port.options.mk and it should have used the CMAKE_BOOL helper.

Reported by:	tobik (in D19553)
This commit is contained in:
Tobias Kortkamp 2019-03-15 08:43:09 +00:00
parent 244f0f94fa
commit 00f5d93f7d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495775

View File

@ -3,7 +3,7 @@
PORTNAME= flang
DISTVERSION= 6.0-g20180904
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel
MAINTAINER= jmd@FreeBSD.org
@ -20,9 +20,6 @@ RUN_DEPENDS= llvm60>=0:devel/llvm60 \
flang-clang>=0:devel/flang-clang
LIB_DEPENDS= libpgmath.so:math/libpgmath
OPTIONS_DEFINE= TESTS
TESTS_DESC= build unit tests for flang
USES= cmake:noninja compiler:c++11-lib libedit perl5 tar:xz \
shebangfix
_USES_PYTHON?= python:build
@ -43,11 +40,14 @@ CMAKE_ARGS+= -DLLVM_CONFIG=${LOCALBASE}/bin/llvm-config60 \
CMAKE_INSTALL_PREFIX= ${PREFIX}/flang
.include <bsd.port.options.mk>
TESTS_CMAKE_ON= FLANG_INCLUDE_TESTS
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= TESTS
TESTS_DESC= build unit tests for flang
TESTS_CMAKE_BOOL= FLANG_INCLUDE_TESTS
post-patch:
@${CP} -r ${WRKSRC}/tools/flang2/flang2exe/x86_64-Linux ${WRKSRC}/tools/flang2/flang2exe/x86_64-FreeBSD