Mercurial > mxe-octave
annotate src/llvm.mk @ 2329:466e77a78672
Fix annoying whitespaces at EOL
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 27 Mar 2012 13:29:57 +0200 |
parents | 1b0d2421cb80 |
children | f653602a0500 |
rev | line source |
---|---|
2126
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
1 # This file is part of mingw-cross-env. |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
2 # See doc/index.html for further information. |
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 # llvm |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
5 PKG := llvm |
2329
466e77a78672
Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents:
2166
diff
changeset
|
6 $(PKG)_IGNORE := |
2163 | 7 $(PKG)_VERSION := 3.0 |
8 $(PKG)_CHECKSUM := b683e7294fcf69887c0d709025d4640f5dca755b | |
9 $(PKG)_SUBDIR := llvm-$($(PKG)_VERSION).src | |
10 $(PKG)_FILE := llvm-$($(PKG)_VERSION).tar.gz | |
2126
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
11 $(PKG)_WEBSITE := http://llvm.org |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
12 $(PKG)_URL := http://llvm.org/releases/$($(PKG)_VERSION)/$($(PKG)_FILE) |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
13 $(PKG)_DEPS := gcc |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
14 |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
2127
c249980b95df
package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents:
2126
diff
changeset
|
16 wget -q -O- 'http://llvm.org/releases/download.html' | \ |
c249980b95df
package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents:
2126
diff
changeset
|
17 grep 'Download LLVM' | \ |
c249980b95df
package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents:
2126
diff
changeset
|
18 $(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
|
19 head -1 |
2126
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
20 endef |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
21 |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
22 define $(PKG)_BUILD |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
23 mkdir '$(1)/build' |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
24 cd '$(1)/build' && cmake .. \ |
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
25 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
2129
2373562288ba
package llvm: disable unnecessary components and targets
Tony Theodore <tonyt@logyst.com>
parents:
2127
diff
changeset
|
26 -DLIBTYPE=STATIC \ |
2373562288ba
package llvm: disable unnecessary components and targets
Tony Theodore <tonyt@logyst.com>
parents:
2127
diff
changeset
|
27 -DLLVM_TARGETS_TO_BUILD="X86;" \ |
2373562288ba
package llvm: disable unnecessary components and targets
Tony Theodore <tonyt@logyst.com>
parents:
2127
diff
changeset
|
28 -DLLVM_BUILD_TOOLS=OFF |
2166
1b0d2421cb80
package llvm: re-enable parallel build
Tony Theodore <tonyt@logyst.com>
parents:
2165
diff
changeset
|
29 $(MAKE) -C '$(1)/build' -j $(JOBS) llvm-tblgen |
1b0d2421cb80
package llvm: re-enable parallel build
Tony Theodore <tonyt@logyst.com>
parents:
2165
diff
changeset
|
30 $(MAKE) -C '$(1)/build' -j $(JOBS) intrinsics_gen |
1b0d2421cb80
package llvm: re-enable parallel build
Tony Theodore <tonyt@logyst.com>
parents:
2165
diff
changeset
|
31 $(MAKE) -C '$(1)/build' -j $(JOBS) install |
2129
2373562288ba
package llvm: disable unnecessary components and targets
Tony Theodore <tonyt@logyst.com>
parents:
2127
diff
changeset
|
32 ln -sf '$(PREFIX)/$(TARGET)/bin/llvm-config' '$(PREFIX)/bin/$(TARGET)-llvm-config' |
2126
18dc5e1dee6f
new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff
changeset
|
33 endef |