Mercurial > mxe-octave
annotate src/boost.mk @ 2349:f48c5b085a38
Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 11:07:07 +0200 |
parents | f653602a0500 |
children | 99516e73b368 |
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. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
691
diff
changeset
|
2 # See doc/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 |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # Boost C++ Library |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
5 PKG := boost |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
437
diff
changeset
|
6 $(PKG)_IGNORE := |
2252 | 7 $(PKG)_CHECKSUM := 26a52840e9d12f829e3008589abf0a925ce88524 |
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
|
8 $(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
|
9 $(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
|
10 $(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
|
11 $(PKG)_DEPS := gcc zlib bzip2 expat |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
1822
fe8af58d10b5
provide a faster version recognition for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
1650
diff
changeset
|
14 wget -q -O- 'http://www.boost.org/users/download/' | \ |
fe8af58d10b5
provide a faster version recognition for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
1650
diff
changeset
|
15 $(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
|
16 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
|
17 head -1 |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
899
d74f83417a91
fix missing library archive index(es) in package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
21 echo 'using gcc : : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar ;' > '$(1)/user-config.jam' |
238 | 22 # make the build script generate .a library files instead of .lib |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
23 $(SED) -i 's,<target-os>windows : lib ;,<target-os>windows : a ;,' '$(1)/tools/build/v2/tools/types/lib.jam' |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 # compile boost jam |
1931 | 25 cd '$(1)/tools/build/v2/engine' && ./build.sh |
26 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \ | |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 -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
|
28 --ignore-site-config \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --user-config=user-config.jam \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 target-os=windows \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 threading=multi \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 link=static \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 threadapi=win32 \ |
437
fa53f265a028
update version of package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
419
diff
changeset
|
34 --layout=tagged \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --without-mpi \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 --without-python \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 --prefix='$(PREFIX)/$(TARGET)' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 --exec-prefix='$(PREFIX)/$(TARGET)/bin' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 --libdir='$(PREFIX)/$(TARGET)/lib' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 --includedir='$(PREFIX)/$(TARGET)/include' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 -sEXPAT_INCLUDE='$(PREFIX)/$(TARGET)/include' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 -sEXPAT_LIBPATH='$(PREFIX)/$(TARGET)/lib' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 stage install |
900
27fc875921a2
add test program for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
899
diff
changeset
|
44 |
27fc875921a2
add test program for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
899
diff
changeset
|
45 '$(TARGET)-g++' \ |
971
d22c7eaea312
improved coding style in package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
956
diff
changeset
|
46 -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
|
47 '$(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
|
48 -DBOOST_THREAD_USE_LIB \ |
01510a2ca4bf
fixed build command of test program of package boost
Lothar May <lothar.imap@googlemail.com>
parents:
1120
diff
changeset
|
49 -lboost_serialization-mt -lboost_thread_win32-mt |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
50 endef |