annotate src/llvm.mk @ 2127:c249980b95df

package llvm: add update script and ignore v2.9
author Tony Theodore <tonyt@logyst.com>
date Thu, 24 Nov 2011 19:49:07 +1100
parents 18dc5e1dee6f
children 2373562288ba
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)' \
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
26 -DLIBTYPE=STATIC
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
27 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
28 endef