annotate src/llvm.mk @ 4601:dc3eb553f5e9

update UPDATE rule for sourceforge projects with version directories * src/cppunit.mk, src/cunit.mk, src/expat.mk, src/freeimage.mk, src/freetype.mk, src/gnuplot.mk, src/graphicsmagick.mk, src/hunspell.mk, src/id3lib.mk, src/lcms.mk, src/libircclient.mk, src/liblo.mk, src/libmad.mk, src/libmng.mk, src/libmodplug.mk, src/libusb.mk, src/matio.mk, src/pcre.mk, src/pdcurses.mk, src/pfstools.mk, src/plotmm.mk, src/qjson.mk, src/qwt.mk, src/qwtplot3d.mk, src/sdl_pango.mk, src/sox.mk, src/tinyxml.mk, src/xmlwrapp.mk: update UPDATE rule for sourceforge projects with version directories * src/llvm.mk: update use wget not WGE so get uncompressed file)
author John D
date Mon, 29 Jan 2018 11:57:20 -0500
parents 7d1e45c2f175
children de2eedecd6ba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
48db4bc35a28 update package llvm
Tony Theodore <tonyt@logyst.com>
parents: 2129
diff changeset
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
4601
dc3eb553f5e9 update UPDATE rule for sourceforge projects with version directories
John D
parents: 4543
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' | \
4543
7d1e45c2f175 update: more PKG_UPDATE updates, added update-octaveforge target
John D
parents: 4514
diff changeset
16 $(SED) -n 's,.*LLVM \([0-9][^<]*\).*,\1,p' | \
2127
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
4514
d73575e7de22 llvm: fail except for native linux builds.
John W. Eaton <jwe@octave.org>
parents: 4510
diff changeset
39 define $(PKG)_BUILD
d73575e7de22 llvm: fail except for native linux builds.
John W. Eaton <jwe@octave.org>
parents: 4510
diff changeset
40 echo "unsupported LLVM configuration" 1>&2
d73575e7de22 llvm: fail except for native linux builds.
John W. Eaton <jwe@octave.org>
parents: 4510
diff changeset
41 exit 1
d73575e7de22 llvm: fail except for native linux builds.
John W. Eaton <jwe@octave.org>
parents: 4510
diff changeset
42 endef
4510
140689282d54 llvm: Update to version 5.0.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
43 endif
3030
0d67b4c363cd Changes to llvm to build under native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
44 else
4514
d73575e7de22 llvm: fail except for native linux builds.
John W. Eaton <jwe@octave.org>
parents: 4510
diff changeset
45 define $(PKG)_BUILD
d73575e7de22 llvm: fail except for native linux builds.
John W. Eaton <jwe@octave.org>
parents: 4510
diff changeset
46 echo "unsupported LLVM configuration" 1>&2
d73575e7de22 llvm: fail except for native linux builds.
John W. Eaton <jwe@octave.org>
parents: 4510
diff changeset
47 exit 1
d73575e7de22 llvm: fail except for native linux builds.
John W. Eaton <jwe@octave.org>
parents: 4510
diff changeset
48 endef
3030
0d67b4c363cd Changes to llvm to build under native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
49 endif