comparison 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
comparison
equal deleted inserted replaced
2647:0c267ecd6ee6 2648:c740cf4f85e0
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)_CHECKSUM := 26a52840e9d12f829e3008589abf0a925ce88524 6 $(PKG)_CHECKSUM := ee06f89ed472cf369573f8acf9819fbc7173344e
7 $(PKG)_SUBDIR := boost_$(subst .,_,$($(PKG)_VERSION)) 7 $(PKG)_SUBDIR := boost_$(subst .,_,$($(PKG)_VERSION))
8 $(PKG)_FILE := boost_$(subst .,_,$($(PKG)_VERSION)).tar.bz2 8 $(PKG)_FILE := boost_$(subst .,_,$($(PKG)_VERSION)).tar.bz2
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/boost/boost/$($(PKG)_VERSION)/$($(PKG)_FILE) 9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/boost/boost/$($(PKG)_VERSION)/$($(PKG)_FILE)
10 $(PKG)_DEPS := gcc zlib bzip2 expat 10 $(PKG)_DEPS := gcc zlib bzip2 expat
11 11
15 grep -v beta | \ 15 grep -v beta | \
16 head -1 16 head -1
17 endef 17 endef
18 18
19 define $(PKG)_BUILD 19 define $(PKG)_BUILD
20 # old version appears to interfere
21 rm -rf '$(PREFIX)/$(TARGET)/include/boost/'
20 echo 'using gcc : : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar ;' > '$(1)/user-config.jam' 22 echo 'using gcc : : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar ;' > '$(1)/user-config.jam'
21 # make the build script generate .a library files instead of .lib
22 $(SED) -i 's,<target-os>windows : lib ;,<target-os>windows : a ;,' '$(1)/tools/build/v2/tools/types/lib.jam'
23 # compile boost jam 23 # compile boost jam
24 cd '$(1)/tools/build/v2/engine' && ./build.sh 24 cd '$(1)/tools/build/v2/engine' && ./build.sh
25 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \ 25 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \
26 -j '$(JOBS)' \ 26 -j '$(JOBS)' \
27 --ignore-site-config \ 27 --ignore-site-config \
43 43
44 '$(TARGET)-g++' \ 44 '$(TARGET)-g++' \
45 -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \ 45 -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \
46 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-boost.exe' \ 46 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-boost.exe' \
47 -DBOOST_THREAD_USE_LIB \ 47 -DBOOST_THREAD_USE_LIB \
48 -lboost_serialization-mt -lboost_thread_win32-mt 48 -lboost_serialization-mt \
49 -lboost_thread_win32-mt \
50 -lboost_system-mt \
51 -lboost_chrono-mt
49 endef 52 endef