blob: 79ebf1af1de93f069ecc67aeac3725f0e203a370 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Johannes M Dieterich <jmd@FreeBSD.org>
PORTNAME= flang-clang
DISTVERSION= 7.0-g20191020
PORTREVISION= 2
CATEGORIES= devel lang
MAINTAINER= jmd@FreeBSD.org
COMMENT= Fortran compiler targeting LLVM (modified clang part)
LICENSE= LLVM
LICENSE_NAME= LLVM Release License
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
ONLY_FOR_ARCHS= amd64
LLVM_VER= 70
BUILD_DEPENDS= llvm${LLVM_VER}>=0:devel/llvm${LLVM_VER}
RUN_DEPENDS= llvm${LLVM_VER}>=0:devel/llvm${LLVM_VER}
USES= cmake gnome libedit perl5 python shebangfix tar:xz
USE_LDCONFIG= ${PREFIX}/flang/lib
USE_GNOME= libxml2
SHEBANG_FILES= tools/scan-view/bin/scan-view \
tools/clang-format/git-clang-format \
tools/clang-format/clang-format-diff.py \
utils/hmaptool/hmaptool
USE_GITHUB= yes
GH_ACCOUNT= flang-compiler
GH_PROJECT= flang-driver
GH_TAGNAME= 984936a
CMAKE_ARGS+= -DLLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_VER} \
-DLLVM_DIR=${LOCALBASE}/llvm${LLVM_VER}/lib/cmake/llvm
CMAKE_INSTALL_PREFIX= ${PREFIX}/flang
CC= ${LOCALBASE}/llvm${LLVM_VER}/bin/clang
CXX= ${LOCALBASE}/llvm${LLVM_VER}/bin/clang++
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/lib/Driver/ToolChains/FreeBSD.cpp
post-install:
@${GZIP_CMD} ${STAGEDIR}/${PREFIX}/flang/man/man1/scan-build.1
${RLN} ${STAGEDIR}${PREFIX}/flang/bin/flang ${STAGEDIR}${PREFIX}/bin/flang
.include <bsd.port.mk>
|