Mercurial > mxe-octave
annotate src/boost.mk @ 2648:c740cf4f85e0
update package boost
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Sun, 01 Jul 2012 20:19:16 +0200 |
parents | 4d0f3a9da57e |
children | b05ef486ffea |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2252
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. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
4 PKG := boost |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
437
diff
changeset
|
5 $(PKG)_IGNORE := |
2648 | 6 $(PKG)_CHECKSUM := ee06f89ed472cf369573f8acf9819fbc7173344e |
1033
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
971
diff
changeset
|
7 $(PKG)_SUBDIR := boost_$(subst .,_,$($(PKG)_VERSION)) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1462
diff
changeset
|
8 $(PKG)_FILE := boost_$(subst .,_,$($(PKG)_VERSION)).tar.bz2 |
1033
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
971
diff
changeset
|
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/boost/boost/$($(PKG)_VERSION)/$($(PKG)_FILE) |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
10 $(PKG)_DEPS := gcc zlib bzip2 expat |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(WGET) -q -O- 'http://www.boost.org/users/download/' | \ |
1822
fe8af58d10b5
provide a faster version recognition for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
1650
diff
changeset
|
14 $(SED) -n 's,.*/boost/\([0-9][^"/]*\)/".*,\1,p' | \ |
534
fae9e962bf83
avoid beta versions of package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
15 grep -v beta | \ |
1033
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
971
diff
changeset
|
16 head -1 |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
2648 | 20 # old version appears to interfere |
21 rm -rf '$(PREFIX)/$(TARGET)/include/boost/' | |
899
d74f83417a91
fix missing library archive index(es) in package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
22 echo 'using gcc : : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar ;' > '$(1)/user-config.jam' |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 # compile boost jam |
1931 | 24 cd '$(1)/tools/build/v2/engine' && ./build.sh |
25 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \ | |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 -j '$(JOBS)' \ |
555
96ed9e4e854c
ensure that the cross build won't be confused by /etc/site-config.jam in package boost (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
534
diff
changeset
|
27 --ignore-site-config \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --user-config=user-config.jam \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 target-os=windows \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 threading=multi \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 link=static \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 threadapi=win32 \ |
437
fa53f265a028
update version of package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
419
diff
changeset
|
33 --layout=tagged \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 --without-mpi \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --without-python \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 --prefix='$(PREFIX)/$(TARGET)' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 --exec-prefix='$(PREFIX)/$(TARGET)/bin' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 --libdir='$(PREFIX)/$(TARGET)/lib' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 --includedir='$(PREFIX)/$(TARGET)/include' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 -sEXPAT_INCLUDE='$(PREFIX)/$(TARGET)/include' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 -sEXPAT_LIBPATH='$(PREFIX)/$(TARGET)/lib' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 stage install |
900
27fc875921a2
add test program for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
899
diff
changeset
|
43 |
27fc875921a2
add test program for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
899
diff
changeset
|
44 '$(TARGET)-g++' \ |
971
d22c7eaea312
improved coding style in package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
956
diff
changeset
|
45 -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \ |
900
27fc875921a2
add test program for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
899
diff
changeset
|
46 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-boost.exe' \ |
1336
01510a2ca4bf
fixed build command of test program of package boost
Lothar May <lothar.imap@googlemail.com>
parents:
1120
diff
changeset
|
47 -DBOOST_THREAD_USE_LIB \ |
2648 | 48 -lboost_serialization-mt \ |
49 -lboost_thread_win32-mt \ | |
50 -lboost_system-mt \ | |
51 -lboost_chrono-mt | |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
52 endef |