Mercurial > mxe-octave
annotate src/llvm.mk @ 4510:140689282d54
llvm: Update to version 5.0.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 16 Oct 2017 20:26:32 -0400 |
parents | 13be64f9f16d |
children | d73575e7de22 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2329
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
2126
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
3 |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
4 PKG := llvm |
2329
466e77a78672
Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents:
2166
diff
changeset
|
5 $(PKG)_IGNORE := |
4510
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
6 $(PKG)_VERSION := 5.0.0 |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
7 $(PKG)_CHECKSUM := 7b0fd212ecc38461e392cbdcbe6a1d4944138a04 |
2163 | 8 $(PKG)_SUBDIR := llvm-$($(PKG)_VERSION).src |
4510
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
9 $(PKG)_FILE := llvm-$($(PKG)_VERSION).src.tar.xz |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
10 $(PKG)_URL := http://releases.llvm.org/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := |
2126
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
12 |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
4510
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
14 $(WGET) -q -O- 'http://releases/llvm.org/download.html' | \ |
2127
c249980b95df
package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents:
2126
diff
changeset
|
15 grep 'Download LLVM' | \ |
c249980b95df
package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents:
2126
diff
changeset
|
16 $(SED) -n 's,.*\([0-9]\.[0-9]\).*,\1,p' | \ |
c249980b95df
package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents:
2126
diff
changeset
|
17 head -1 |
2126
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
18 endef |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
19 |
4510
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
20 ifeq ($(MXE_NATIVE_BUILD),yes) |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
21 ifeq ($(MXE_SYSTEM),gnu-linux) |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
22 define $(PKG)_BUILD |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
23 mkdir '$(1)/.build' && cd '$(1)/.build' && cmake .. \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
24 $($(PKG)_CMAKE_FLAGS) \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
25 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
26 -DLLVM_BUILD_LLVM_DYLIB=On \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
27 -DLLVM_LINK_LLVM_DYLIB=On \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
28 -DLLVM_VERSION_SUFFIX= \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
29 -DLLVM_TARGETS_TO_BUILD='X86' \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
30 -DLLVM_BUILD_EXAMPLES=Off \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
31 -DLLVM_INCLUDE_EXAMPLES=Off \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
32 -DLLVM_BUILD_TESTS=Off \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
33 -DLLVM_INCLUDE_TESTS=Off \ |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
34 -DLLVM_ENABLE_BACKTRACES=Off |
3247
2419325342a5
Update mingw native llvm for dynamic lib
John Donoghue <john.donoghue@ieee.org>
parents:
3239
diff
changeset
|
35 |
4510
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
36 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
37 endef |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
38 else |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
39 echo "unsupported LLVM configuration" && 1>&2 |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
40 exit 1 |
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
41 endif |
3030
0d67b4c363cd
Changes to llvm to build under native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
42 else |
4510
140689282d54
llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
43 echo "unsupported LLVM configuration" 1>&2 && exit 1 |
3030
0d67b4c363cd
Changes to llvm to build under native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
44 endif |