mxe/src/boost.mk

56 lines
1.9 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2009-01-31 05:52:28 +00:00
PKG := boost
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.53.0
2013-02-04 22:06:41 +00:00
$(PKG)_CHECKSUM := e6dd1b62ceed0a51add3dda6f3fc3ce0f636a7f3
$(PKG)_SUBDIR := boost_$(subst .,_,$($(PKG)_VERSION))
$(PKG)_FILE := boost_$(subst .,_,$($(PKG)_VERSION)).tar.bz2
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/boost/boost/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib bzip2 expat
2009-01-31 05:52:28 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.boost.org/users/download/' | \
$(SED) -n 's,.*/boost/\([0-9][^"/]*\)/".*,\1,p' | \
2009-11-09 04:00:39 +00:00
grep -v beta | \
head -1
2009-01-31 05:52:28 +00:00
endef
define $(PKG)_BUILD
2012-08-21 11:05:19 +01:00
# context switched library introduced in boost 1.51.0 does not build
rm -r '$(1)/libs/context'
2012-07-01 19:19:16 +01:00
# old version appears to interfere
rm -rf '$(PREFIX)/$(TARGET)/include/boost/'
echo 'using gcc : : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar ;' > '$(1)/user-config.jam'
2009-01-31 05:52:28 +00:00
# compile boost jam
2011-07-12 11:53:22 +01:00
cd '$(1)/tools/build/v2/engine' && ./build.sh
cd '$(1)' && tools/build/v2/engine/bin.*/bjam \
2009-01-31 05:52:28 +00:00
-j '$(JOBS)' \
--ignore-site-config \
2009-01-31 05:52:28 +00:00
--user-config=user-config.jam \
target-os=windows \
threading=multi \
link=static \
threadapi=win32 \
2009-09-02 13:08:54 +01:00
--layout=tagged \
2009-01-31 05:52:28 +00:00
--without-mpi \
--without-python \
--prefix='$(PREFIX)/$(TARGET)' \
--exec-prefix='$(PREFIX)/$(TARGET)/bin' \
--libdir='$(PREFIX)/$(TARGET)/lib' \
--includedir='$(PREFIX)/$(TARGET)/include' \
-sEXPAT_INCLUDE='$(PREFIX)/$(TARGET)/include' \
-sEXPAT_LIBPATH='$(PREFIX)/$(TARGET)/lib' \
stage install
2010-04-25 12:22:44 +01:00
'$(TARGET)-g++' \
2010-05-14 18:53:19 +01:00
-W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \
2010-04-25 12:22:44 +01:00
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-boost.exe' \
-DBOOST_THREAD_USE_LIB \
2012-07-01 19:19:16 +01:00
-lboost_serialization-mt \
-lboost_thread_win32-mt \
-lboost_system-mt \
-lboost_chrono-mt
2009-01-31 05:52:28 +00:00
endef