annotate src/llvm.mk @ 2129:2373562288ba

package llvm: disable unnecessary components and targets
author Tony Theodore <tonyt@logyst.com>
date Fri, 25 Nov 2011 23:53:37 +1100
parents c249980b95df
children 48db4bc35a28
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
2127
c249980b95df package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents: 2126
diff changeset
6 $(PKG)_IGNORE := 2.9
2126
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
7 $(PKG)_VERSION := 2.8
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 6d49fe039d28e8664de25491c775cb2c599e30c1
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
9 $(PKG)_SUBDIR := llvm-$($(PKG)_VERSION)
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
10 $(PKG)_FILE := llvm-$($(PKG)_VERSION).tgz
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
2126
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
29 $(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
30 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
31 endef