2017-01-03 08:06:59 +00:00
|
|
|
# Created by: Mahdi Mokhtari <mokhi64@gmail.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cling
|
2018-08-15 13:16:31 +00:00
|
|
|
DISTVERSION= 0.5-2018-08-13
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 01:35:33 +00:00
|
|
|
PORTREVISION= 2
|
2017-01-03 08:06:59 +00:00
|
|
|
CATEGORIES= lang devel
|
|
|
|
MASTER_SITES= https://root.cern.ch/download/cling/
|
2018-08-15 13:16:31 +00:00
|
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION:C/^[0-9]\.[0-9]-//}_sources
|
2017-01-03 08:06:59 +00:00
|
|
|
|
2017-02-11 04:44:43 +00:00
|
|
|
MAINTAINER= mmokhi@FreeBSD.org
|
2017-01-03 08:06:59 +00:00
|
|
|
COMMENT= Interactive C++ Interpreter Based on LLVM and Clang Libs
|
|
|
|
|
|
|
|
LICENSE= LLVM NCSA
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE_NAME_LLVM= LLVM Release License
|
|
|
|
LICENSE_FILE_LLVM= ${WRKSRC}/LICENSE.TXT
|
|
|
|
LICENSE_FILE_NCSA= ${WRKSRC}/tools/cling/LICENSE.TXT
|
|
|
|
LICENSE_PERMS_LLVM= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
|
2017-05-22 16:04:19 +00:00
|
|
|
BROKEN_armv6= fails to compile: AArch64TargetMachine.cpp: relocation truncated to fit: R_ARM_CALL against symbol '__aeabi_uldivmod'
|
2017-11-30 06:13:34 +00:00
|
|
|
BROKEN_armv7= fails to compile: AArch64TargetMachine.cpp: relocation truncated to fit: R_ARM_CALL against symbol '__aeabi_uldivmod'
|
2017-05-22 16:04:19 +00:00
|
|
|
|
2018-08-16 14:10:17 +00:00
|
|
|
LIB_DEPENDS= libgtest.so:devel/googletest \
|
|
|
|
libz3.so:math/z3
|
|
|
|
|
2017-01-03 08:06:59 +00:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
|
2018-08-15 13:16:31 +00:00
|
|
|
LLVM_RELEASE= 5.0.0
|
|
|
|
LLVM_SUFFIX= 50_cern-root
|
2017-01-03 08:06:59 +00:00
|
|
|
LLVM_PREFIX= ${PREFIX}/llvm${LLVM_SUFFIX}
|
|
|
|
|
2018-12-25 20:25:39 +00:00
|
|
|
USES= cmake compiler:c11 compiler:c++11-lib cpe \
|
2018-08-15 13:16:31 +00:00
|
|
|
libedit ncurses python:build shebangfix tar:bzip2
|
|
|
|
USE_GNOME= libxml2
|
2017-01-03 08:06:59 +00:00
|
|
|
USE_LDCONFIG= ${LLVM_PREFIX}/lib
|
|
|
|
|
2017-05-16 21:16:02 +00:00
|
|
|
SHEBANG_FILES= tools/clang/tools/clang-format/clang-format-diff.py \
|
|
|
|
tools/clang/tools/clang-format/git-clang-format \
|
|
|
|
tools/clang/tools/scan-view/bin/scan-view
|
|
|
|
|
2018-08-15 13:16:31 +00:00
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
|
|
|
CMAKE_OFF= LLVM_BUILD_EXAMPLES LLVM_INCLUDE_TESTS LLVM_INCLUDE_GO_TESTS
|
|
|
|
|
2017-01-03 08:06:59 +00:00
|
|
|
SUB_LIST+= LLVM_PREFIX="${LLVM_PREFIX}" LLVM_SUFFIX="${LLVM_SUFFIX}"
|
|
|
|
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}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LLVM_PREFIX%%|${LLVM_PREFIX}|g' \
|
|
|
|
${PATCH_WRKSRC}/tools/cling/tools/driver/cling.cpp
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LLVM_PREFIX%%|${LLVM_PREFIX}|g' \
|
|
|
|
${PATCH_WRKSRC}/tools/cling/lib/Interpreter/CIFactory.cpp
|
|
|
|
|
|
|
|
post-install:
|
2018-08-15 13:16:31 +00:00
|
|
|
for e in $$(cd ${STAGEDIR}${PREFIX}/llvm50_cern-root/bin && ls *); do \
|
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/llvm50_cern-root/bin/$${e} ${STAGEDIR}${PREFIX}/bin/$${e}; \
|
|
|
|
done
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake
|
|
|
|
for m in cling llvm llvm-c clang; do \
|
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/llvm${LLVM_SUFFIX}/include/$${m} ${STAGEDIR}${PREFIX}/include/$${m}; \
|
|
|
|
done
|
|
|
|
for m in cling llvm clang; do \
|
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/llvm${LLVM_SUFFIX}/lib/cmake/$${m} ${STAGEDIR}${PREFIX}/lib/cmake/$${m}; \
|
|
|
|
done
|
|
|
|
for l in $$(cd ${STAGEDIR}${PREFIX}/llvm${LLVM_SUFFIX}/lib && ls *.so* *.a); do \
|
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/llvm${LLVM_SUFFIX}/lib/$${l} ${STAGEDIR}${PREFIX}/lib/$${l}; \
|
|
|
|
done
|
2017-01-03 08:06:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|