comparison src/boost.mk @ 3642:5a459f007b2f

boost: update to 1.53.0 * src/boost.mk: update to 1.53.0 * src/boost-1-intrinsics-fix.patch: new file from mxe_devel * src/boost-2-winerror.patch: new file from mxe-devel * dist-files.mk: add boost-1-intrinsics-fix.patch boost-2-winerror.patch
author John Donoghue
date Tue, 01 Jul 2014 09:11:16 -0400
parents 13be64f9f16d
children 979f5b397e51
comparison
equal deleted inserted replaced
3641:f362e10a0fa7 3642:5a459f007b2f
1 # This file is part of MXE. 1 # This file is part of MXE.
2 # See index.html for further information. 2 # See index.html for further information.
3 3
4 PKG := boost 4 PKG := boost
5 $(PKG)_IGNORE := 5 $(PKG)_IGNORE :=
6 $(PKG)_VERSION := 1.52.0 6 $(PKG)_VERSION := 1.53.0
7 $(PKG)_CHECKSUM := cddd6b4526a09152ddc5db856463eaa1dc29c5d9 7 $(PKG)_CHECKSUM := e6dd1b62ceed0a51add3dda6f3fc3ce0f636a7f3
8 $(PKG)_SUBDIR := boost_$(subst .,_,$($(PKG)_VERSION)) 8 $(PKG)_SUBDIR := boost_$(subst .,_,$($(PKG)_VERSION))
9 $(PKG)_FILE := boost_$(subst .,_,$($(PKG)_VERSION)).tar.bz2 9 $(PKG)_FILE := boost_$(subst .,_,$($(PKG)_VERSION)).tar.bz2
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/boost/boost/$($(PKG)_VERSION)/$($(PKG)_FILE) 10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/boost/boost/$($(PKG)_VERSION)/$($(PKG)_FILE)
11 $(PKG)_DEPS := zlib bzip2 expat 11 $(PKG)_DEPS := zlib bzip2 expat
12 12
19 19
20 define $(PKG)_BUILD 20 define $(PKG)_BUILD
21 # context switched library introduced in boost 1.51.0 does not build 21 # context switched library introduced in boost 1.51.0 does not build
22 rm -r '$(1)/libs/context' 22 rm -r '$(1)/libs/context'
23 # old version appears to interfere 23 # old version appears to interfere
24 rm -rf '$(HOST_INCDIR)/boost' 24 rm -rf '$(HOST_INCDIR)/boost/'
25 echo 'using gcc : : $(MXE_CXX) : <rc>$(MXE_WINDRES) <archiver>$(MXE_AR) ;' > '$(1)/user-config.jam' 25 echo 'using gcc : : $(MXE_CXX) : <rc>$(MXE_WINDRES) <archiver>$(MXE_AR) <ranlib>$(MXE_RANDLIB) ;' > '$(1)/user-config.jam'
26 # compile boost jam 26 # compile boost jam
27 cd '$(1)/tools/build/v2/engine' && ./build.sh 27 cd '$(1)/tools/build/v2/engine' && ./build.sh
28 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \ 28 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \
29 -j '$(JOBS)' \ 29 -j '$(JOBS)' \
30 --ignore-site-config \ 30 --ignore-site-config \
31 --user-config=user-config.jam \ 31 --user-config=user-config.jam \
32 target-os=windows \ 32 target-os=windows \
33 threading=multi \ 33 threading=multi \
34 link=static \ 34 link=$(if $(filter $(BUILD_STATIC),,yes),static,shared) \
35 threadapi=win32 \ 35 threadapi=win32 \
36 --layout=tagged \ 36 --layout=tagged \
37 --disable-icu \
37 --without-mpi \ 38 --without-mpi \
38 --without-python \ 39 --without-python \
39 --prefix='$(HOST_PREFIX)' \ 40 --prefix='$(HOST_PREFIX)' \
40 --exec-prefix='$(HOST_BINDIR)' \ 41 --exec-prefix='$(HOST_BINDIR)' \
41 --libdir='$(HOST_LIBDIR)' \ 42 --libdir='$(HOST_LIBDIR)' \
42 --includedir='$(HOST_INCDIR)' \ 43 --includedir='$(HOST_INCDIR)' \
43 -sEXPAT_INCLUDE='$(HOST_INCDIR)' \ 44 -sEXPAT_INCLUDE='$(HOST_INCDIR)' \
44 -sEXPAT_LIBPATH='$(HOST_LIBDIR)' \ 45 -sEXPAT_LIBPATH='$(HOST_LIBDIR)' \
45 stage install 46 stage install
46 47
47 '$(MXE_CXX)' \ 48 '$(TARGET)-g++' \
48 -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \ 49 -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \
49 '$(2).cpp' -o '$(HOST_BINDIR)/test-boost.exe' \ 50 '$(2).cpp' -o '$(1)/test-boost.exe' \
50 -DBOOST_THREAD_USE_LIB \ 51 -DBOOST_THREAD_USE_LIB \
51 -lboost_serialization-mt \ 52 -lboost_serialization-mt \
52 -lboost_thread_win32-mt \ 53 -lboost_thread_win32-mt \
53 -lboost_system-mt \ 54 -lboost_system-mt \
54 -lboost_chrono-mt 55 -lboost_chrono-mt