freebsd-ports/devel/f18/Makefile
2019-10-20 07:59:16 +00:00

39 lines
789 B
Makefile

# Created by: Johannes M Dieterich <jmd@FreeBSD.org>
# $FreeBSD$
PORTNAME= f18
DISTVERSION= g20191019
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= jmd@FreeBSD.org
COMMENT= Fortran compiler targeting LLVM
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64
BUILD_DEPENDS= llvm80>=0:devel/llvm80
RUN_DEPENDS= llvm80>=0:devel/llvm80
USES= cmake:noninja libedit perl5 tar:xz \
shebangfix
_USES_PYTHON?= python:build
USES+= ${_USES_PYTHON}
USE_GITHUB= yes
GH_ACCOUNT= flang-compiler
GH_TAGNAME= 1688bef
SHEBANG_FILES= tools/f18/flang.sh
CC= ${LOCALBASE}/llvm80/bin/clang
CXX= ${LOCALBASE}/llvm80/bin/clang++
CMAKE_ARGS+= -DLLVM_DIR=${LOCALBASE}/llvm80/lib/cmake/llvm \
-DBUILD_WITH_CLANG=${LOCALBASE}/llvm80
MAKE_JOBS_UNSAFE= yes
.include <bsd.port.mk>