lang/cling: fix build ahead of CMake 3.20

The --target command-line argument is ignored when not applicable
in versions of CMake up to 3.20. It should never be necessary in
FreeBSD ports **anyway** since we generate a build system (ninja
or make) and use that, rather than building directly out of CMake.

Bumping PORTREVISION even though there shouldn't be a difference.
This commit is contained in:
Adriaan de Groot 2021-04-06 23:21:26 +02:00
parent dad35af59d
commit 41c875bfe9

View File

@ -2,7 +2,7 @@
PORTNAME= cling
DISTVERSION= 0.5-2018-08-13
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= lang devel
MASTER_SITES= https://root.cern.ch/download/cling/
DISTNAME= ${PORTNAME}_${DISTVERSION:C/^[0-9]\.[0-9]-//}_sources
@ -49,8 +49,7 @@ PLIST_SUB+= LLVM_SUFFIX=${LLVM_SUFFIX} LLVM_RELEASE=${LLVM_RELEASE}
CMAKE_BUILD_TYPE= Release
CMAKE_INSTALL_PREFIX= ${LLVM_PREFIX}
CMAKE_ARGS+= -DINSTALL_LAYOUT=FREEBSD \
--target ${PORTNAME}
CMAKE_ARGS+= -DINSTALL_LAYOUT=FREEBSD
post-patch:
@${REINPLACE_CMD} -e 's|%%LLVM_PREFIX%%|${LLVM_PREFIX}|g' \