annotate src/boost.mk @ 1460:8d3d9c28aaa2

improved update script of package boost
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 01 Dec 2010 03:34:13 +0100
parents ab321c66a9b4
children 61dda1d437e2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 569
diff changeset
1 # This file is part of mingw-cross-env.
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 :=
1409
ab321c66a9b4 upgrade package boost
Lothar May <lothar.imap@googlemail.com>
parents: 1354
diff changeset
7 $(PKG)_VERSION := 1.45.0
ab321c66a9b4 upgrade package boost
Lothar May <lothar.imap@googlemail.com>
parents: 1354
diff changeset
8 $(PKG)_CHECKSUM := eb7424ef99df4e38af7431e38ff9849651b8aaf5
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)_SUBDIR := boost_$(subst .,_,$($(PKG)_VERSION))
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)_FILE := $($(PKG)_SUBDIR).tar.bz2
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
11 $(PKG)_WEBSITE := http://www.boost.org/
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
12 $(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
13 $(PKG)_DEPS := gcc zlib bzip2 expat
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
1460
8d3d9c28aaa2 improved update script of package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 1409
diff changeset
16 wget -q -O- 'http://sourceforge.net/projects/boost/files/boost/?sort=date&sortdir=desc' | \
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 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
534
fae9e962bf83 avoid beta versions of package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
18 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
19 head -1
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
899
d74f83417a91 fix missing library archive index(es) in package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 759
diff changeset
23 echo 'using gcc : : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar ;' > '$(1)/user-config.jam'
238
2815bfcdc270 corrected typo
Volker Grabsch <vog@notjusthosting.com>
parents: 229
diff changeset
24 # 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
25 $(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
26 # compile boost jam
1409
ab321c66a9b4 upgrade package boost
Lothar May <lothar.imap@googlemail.com>
parents: 1354
diff changeset
27 cd '$(1)/tools/build/v2/engine/src' && ./build.sh
ab321c66a9b4 upgrade package boost
Lothar May <lothar.imap@googlemail.com>
parents: 1354
diff changeset
28 cd '$(1)' && tools/build/v2/engine/src/bin.*/bjam \
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 -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
30 --ignore-site-config \
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --user-config=user-config.jam \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 target-os=windows \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 threading=multi \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 link=static \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 threadapi=win32 \
437
fa53f265a028 update version of package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 419
diff changeset
36 --layout=tagged \
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --without-mpi \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --without-python \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --prefix='$(PREFIX)/$(TARGET)' \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --exec-prefix='$(PREFIX)/$(TARGET)/bin' \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 --libdir='$(PREFIX)/$(TARGET)/lib' \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 --includedir='$(PREFIX)/$(TARGET)/include' \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 -sEXPAT_INCLUDE='$(PREFIX)/$(TARGET)/include' \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 -sEXPAT_LIBPATH='$(PREFIX)/$(TARGET)/lib' \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 stage install
900
27fc875921a2 add test program for package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 899
diff changeset
46
27fc875921a2 add test program for package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 899
diff changeset
47 '$(TARGET)-g++' \
971
d22c7eaea312 improved coding style in package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 956
diff changeset
48 -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
49 '$(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
50 -DBOOST_THREAD_USE_LIB \
01510a2ca4bf fixed build command of test program of package boost
Lothar May <lothar.imap@googlemail.com>
parents: 1120
diff changeset
51 -lboost_serialization-mt -lboost_thread_win32-mt
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 endef