mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-14 12:31:18 +02:00
add llvm 10 with extras
This commit is contained in:
53
_oldver/llvm10beta/Makefile
Normal file
53
_oldver/llvm10beta/Makefile
Normal file
@@ -0,0 +1,53 @@
|
||||
# $FreeBSD: head/devel/llvm80/Makefile 499184 2019-04-17 16:20:06Z brooks $
|
||||
|
||||
PORTNAME= llvm
|
||||
PORTVERSION= ${LLVM_MAJOR}.0.${SNAPDATE}
|
||||
CATEGORIES= devel lang
|
||||
|
||||
MAINTAINER= brooks@FreeBSD.org
|
||||
COMMENT= LLVM and Clang
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_PROJECT= llvm-project
|
||||
GH_ACCOUNT= llvm
|
||||
GH_TAGNAME= ${LLVM_PROJECT_COMMIT}
|
||||
LLVM_MAJOR= 10
|
||||
LLVM_RELEASE= ${LLVM_MAJOR}.0.0
|
||||
SNAPDATE= 20200103
|
||||
LLVM_PROJECT_COMMIT= add743b4348095c0d2e407c7a2b8a87a5f8194b0
|
||||
|
||||
USES= cmake gmake compiler:c++11-lib perl5 tar:xz shebangfix python:3.6,build
|
||||
|
||||
SHEBANG_FILES= llvm/utils/lit/lit.py \
|
||||
llvm/utils/llvm-lit/llvm-lit.in \
|
||||
llvm/tools/opt-viewer/optrecord.py \
|
||||
llvm/tools/opt-viewer/opt-diff.py \
|
||||
llvm/tools/opt-viewer/opt-stats.py \
|
||||
llvm/tools/opt-viewer/opt-viewer.py
|
||||
|
||||
|
||||
CMAKE_ARGS= -DLLVM_BUILD_LLVM_DYLIB=ON
|
||||
CMAKE_ARGS= -DLLVM_LINK_LLVM_DYLIB=ON
|
||||
CMAKE_ARGS+= -DLLVM_ENABLE_RTTI=ON
|
||||
CMAKE_ARGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=${CONFIGURE_TARGET}
|
||||
CMAKE_ARGS+= -DLLVM_HOST_TRIPLE=${CONFIGURE_TARGET}
|
||||
CMAKE_ARGS+= -DCMAKE_INSTALL_MANDIR:PATH="man"
|
||||
CMAKE_ARGS+= -DLLVM_PARALLEL_LINK_JOBS=1
|
||||
|
||||
CFLAGS+= -DNDEBUG
|
||||
CXXFLAGS+= -DNDEBUG
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/arm64/aarch64/}-pc-${OPSYS:tl}${OSREL}${TARGET_ABI}
|
||||
|
||||
LLVM_ENABLE_PROJECTS+= clang
|
||||
LLVM_ENABLE_PROJECTS+= compiler-rt
|
||||
LLVM_ENABLE_PROJECTS+= lld
|
||||
|
||||
CMAKE_ARGS+= -DLLVM_ENABLE_PROJECTS="${LLVM_ENABLE_PROJECTS:ts;}"
|
||||
|
||||
WRKSRC= ${WRKDIR}/llvm-project-${LLVM_PROJECT_COMMIT}
|
||||
CMAKE_SOURCE_PATH= ${WRKSRC}/llvm
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
_oldver/llvm10beta/distinfo
Normal file
3
_oldver/llvm10beta/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1579429274
|
||||
SHA256 (llvm-llvm-project-10.0.20200103-add743b4348095c0d2e407c7a2b8a87a5f8194b0_GH0.tar.gz) = b6d44cbd083afa1dc9af8306ff8aae944b490322c81de614d619e5532e060b4a
|
||||
SIZE (llvm-llvm-project-10.0.20200103-add743b4348095c0d2e407c7a2b8a87a5f8194b0_GH0.tar.gz) = 120147591
|
||||
@@ -0,0 +1,32 @@
|
||||
--- clang/lib/Headers/CMakeLists.txt.orig
|
||||
+++ clang/lib/Headers/CMakeLists.txt
|
||||
@@ -56,7 +56,6 @@
|
||||
intrin.h
|
||||
inttypes.h
|
||||
iso646.h
|
||||
- limits.h
|
||||
lwpintrin.h
|
||||
lzcntintrin.h
|
||||
mm3dnow.h
|
||||
@@ -76,21 +75,13 @@
|
||||
s390intrin.h
|
||||
shaintrin.h
|
||||
smmintrin.h
|
||||
- stdalign.h
|
||||
- stdarg.h
|
||||
- stdatomic.h
|
||||
- stdbool.h
|
||||
- stddef.h
|
||||
__stddef_max_align_t.h
|
||||
- stdint.h
|
||||
- stdnoreturn.h
|
||||
tbmintrin.h
|
||||
tgmath.h
|
||||
tmmintrin.h
|
||||
unwind.h
|
||||
vadefs.h
|
||||
vaesintrin.h
|
||||
- varargs.h
|
||||
vecintrin.h
|
||||
vpclmulqdqintrin.h
|
||||
wmmintrin.h
|
||||
@@ -0,0 +1,11 @@
|
||||
--- llvm/cmake/modules/AddSphinxTarget.cmake.orig
|
||||
+++ llvm/cmake/modules/AddSphinxTarget.cmake
|
||||
@@ -29,6 +29,8 @@
|
||||
endif()
|
||||
|
||||
add_custom_target(${SPHINX_TARGET_NAME}
|
||||
+ COMMAND ${CMAKE_COMMAND}
|
||||
+ -E make_directory ${SPHINX_BUILD_DIR}
|
||||
COMMAND ${SPHINX_EXECUTABLE}
|
||||
-b ${builder}
|
||||
-d "${SPHINX_DOC_TREE_DIR}"
|
||||
11
_oldver/llvm10beta/files/patch-fformat_extensions.diff
Normal file
11
_oldver/llvm10beta/files/patch-fformat_extensions.diff
Normal file
@@ -0,0 +1,11 @@
|
||||
--- clang/include/clang/Driver/Options.td.orig 2019-10-21 21:45:02.000000000 +0100
|
||||
+++ clang/include/clang/Driver/Options.td 2019-10-22 00:00:39.833390000 +0100
|
||||
@@ -1186,6 +1186,8 @@
|
||||
Flags<[CC1Option]>;
|
||||
def fno_use_line_directives : Flag<["-"], "fno-use-line-directives">, Group<f_Group>;
|
||||
|
||||
+def fformat_extensions: Flag<["-"], "fformat-extensions">, Group<f_Group>, Flags<[CC1Option]>,
|
||||
+ HelpText<"Enable FreeBSD kernel specific format string extensions">;
|
||||
def ffreestanding : Flag<["-"], "ffreestanding">, Group<f_Group>, Flags<[CC1Option]>,
|
||||
HelpText<"Assert that the compilation takes place in a freestanding environment">;
|
||||
def fgnuc_version_EQ : Joined<["-"], "fgnuc-version=">, Group<f_Group>,
|
||||
21
_oldver/llvm10beta/files/patch-llvm-build_llvmbuild_main.py
Normal file
21
_oldver/llvm10beta/files/patch-llvm-build_llvmbuild_main.py
Normal file
@@ -0,0 +1,21 @@
|
||||
--- llvm/utils/llvm-build/llvmbuild/main.py.orig 2015-10-02 16:42:59 UTC
|
||||
+++ llvm/utils/llvm-build/llvmbuild/main.py
|
||||
@@ -747,7 +747,17 @@ def add_magic_target_components(parser,
|
||||
|
||||
# We handle a few special cases of target names here for historical
|
||||
# reasons, as these are the names configure currently comes up with.
|
||||
- native_target_name = { 'x86' : 'X86',
|
||||
+ native_target_name = { 'amd64' : 'X86',
|
||||
+ 'arm' : 'ARM',
|
||||
+ 'armeb' : 'ARM',
|
||||
+ 'armv6' : 'ARM',
|
||||
+ 'armv6hf' : 'ARM',
|
||||
+ 'i386' : 'X86',
|
||||
+ 'mips' : 'Mips',
|
||||
+ 'powerpc' : 'PowerPC',
|
||||
+ 'powerpc64' : 'PowerPC',
|
||||
+ 'sparc64' : 'Sparc',
|
||||
+ 'x86' : 'X86',
|
||||
'x86_64' : 'X86',
|
||||
'Unknown' : None }.get(opts.native_target,
|
||||
opts.native_target)
|
||||
@@ -0,0 +1,10 @@
|
||||
--- openmp/libomptarget/src/omptarget.cpp.orig
|
||||
+++ openmp/libomptarget/src/omptarget.cpp
|
||||
@@ -12,6 +12,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
+#include <stdarg.h>
|
||||
#include <omptarget.h>
|
||||
|
||||
#include "device.h"
|
||||
15
_oldver/llvm10beta/files/patch-tools_lldb_docs_conf.py
Normal file
15
_oldver/llvm10beta/files/patch-tools_lldb_docs_conf.py
Normal file
@@ -0,0 +1,15 @@
|
||||
--- lldb/docs/conf.py.orig
|
||||
+++ lldb/docs/conf.py
|
||||
@@ -97,9 +97,9 @@
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
-html_theme_options = {
|
||||
- 'font_size': '11pt'
|
||||
-}
|
||||
+#html_theme_options = {
|
||||
+# 'font_size': '11pt'
|
||||
+#}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
#html_theme_path = []
|
||||
8
_oldver/llvm10beta/pkg-descr
Normal file
8
_oldver/llvm10beta/pkg-descr
Normal file
@@ -0,0 +1,8 @@
|
||||
The LLVM Project is a collection of modular and reusable compiler and
|
||||
toolchain technologies.
|
||||
|
||||
This port includes Clang (a C/C++/Objective-C compiler), LLD (a linker),
|
||||
LLDB (a debugger), an OpenMP runtime library, and the LLVM infrastructure
|
||||
these are built on.
|
||||
|
||||
WWW: http://llvm.org/
|
||||
2784
_oldver/llvm10beta/pkg-plist
Normal file
2784
_oldver/llvm10beta/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user