annotate src/boost.mk @ 3256:7fb479d0241c

Update build tools for native mingw * src/build-m4.mk: do nothing for native mingw build * Makefile.in: - add bison, m4 as natve mingw, and python as jit build requirements. - remove build-bison as a mingw build dependancy * index.html: Add msys-bison to mingw required packages and mention ghostscript and python.
author John Donoghue <john.donoghue@ieee.org>
date Thu, 26 Sep 2013 21:18:39 -0400
parents 5ef49fb3299d
children 13be64f9f16d
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: 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 :=
2843
3e0cb61c076d update package boost
Mark Brand <mabrand@mabrand.nl>
parents: 2708
diff changeset
6 $(PKG)_CHECKSUM := cddd6b4526a09152ddc5db856463eaa1dc29c5d9
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)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS := 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
2708
b05ef486ffea update package boost
Mark Brand <mabrand@mabrand.nl>
parents: 2648
diff changeset
20 # context switched library introduced in boost 1.51.0 does not build
b05ef486ffea update package boost
Mark Brand <mabrand@mabrand.nl>
parents: 2648
diff changeset
21 rm -r '$(1)/libs/context'
2648
c740cf4f85e0 update package boost
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
22 # old version appears to interfere
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
23 rm -rf '$(HOST_INCDIR)/boost'
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
24 echo 'using gcc : : $(MXE_CXX) : <rc>$(MXE_WINDRES) <archiver>$(MXE_AR) ;' > '$(1)/user-config.jam'
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 # compile boost jam
1931
f6a463c144b1 upgrade package boost
Mark Brand <mabrand@mabrand.nl>
parents: 1822
diff changeset
26 cd '$(1)/tools/build/v2/engine' && ./build.sh
f6a463c144b1 upgrade package boost
Mark Brand <mabrand@mabrand.nl>
parents: 1822
diff changeset
27 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 -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
29 --ignore-site-config \
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --user-config=user-config.jam \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 target-os=windows \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 threading=multi \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 link=static \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 threadapi=win32 \
437
fa53f265a028 update version of package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 419
diff changeset
35 --layout=tagged \
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --without-mpi \
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --without-python \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2843
diff changeset
38 --prefix='$(HOST_PREFIX)' \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
39 --exec-prefix='$(HOST_BINDIR)' \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
40 --libdir='$(HOST_LIBDIR)' \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
41 --includedir='$(HOST_INCDIR)' \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
42 -sEXPAT_INCLUDE='$(HOST_INCDIR)' \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
43 -sEXPAT_LIBPATH='$(HOST_LIBDIR)' \
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 stage install
900
27fc875921a2 add test program for package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 899
diff changeset
45
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
46 '$(MXE_CXX)' \
971
d22c7eaea312 improved coding style in package boost
Volker Grabsch <vog@notjusthosting.com>
parents: 956
diff changeset
47 -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
48 '$(2).cpp' -o '$(HOST_BINDIR)/test-boost.exe' \
1336
01510a2ca4bf fixed build command of test program of package boost
Lothar May <lothar.imap@googlemail.com>
parents: 1120
diff changeset
49 -DBOOST_THREAD_USE_LIB \
2648
c740cf4f85e0 update package boost
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
50 -lboost_serialization-mt \
c740cf4f85e0 update package boost
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
51 -lboost_thread_win32-mt \
c740cf4f85e0 update package boost
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
52 -lboost_system-mt \
c740cf4f85e0 update package boost
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
53 -lboost_chrono-mt
205
74275a3f9e54 new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 endef