@ -12,10 +12,12 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( INCLUDE_DIR ) / n l s . m k
i n c l u d e $( INCLUDE_DIR ) / t a r g e t . m k
PKG_NAME := boost
PKG_NAME := boost
PKG_VERSION := 1_57_0
PKG_VERSION := 1_57_0
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) _$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) _$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := @SF/boost
PKG_SOURCE_URL := @SF/boost
@ -26,7 +28,7 @@ PKG_LICENSE:=Boost Software License <http://www.boost.org/users/license.html>
PKG_MAINTAINER := Carlos M. Ferreira <carlosmf.pt@gmail.com> ( Modified from Mirko Vogt <mirko@openwrt.org> Boost 1.51 Original Makefile and patches)
PKG_MAINTAINER := Carlos M. Ferreira <carlosmf.pt@gmail.com> ( Modified from Mirko Vogt <mirko@openwrt.org> Boost 1.51 Original Makefile and patches)
PKG_BUILD_DEPENDS := boost/host
PKG_BUILD_DEPENDS += boost/host
PKG_BUILD_PARALLEL := 0
PKG_BUILD_PARALLEL := 0
PKG_USE_MIPS16 := 0
PKG_USE_MIPS16 := 0
@ -45,7 +47,12 @@ PKG_CONFIG_DEPENDS := \
CONFIG_PACKAGE_boost-test \
CONFIG_PACKAGE_boost-test \
CONFIG_PACKAGE_boost-thread \
CONFIG_PACKAGE_boost-thread \
CONFIG_PACKAGE_boost-wave \
CONFIG_PACKAGE_boost-wave \
CONFIG_PACKAGE_boost-atomic \
CONFIG_PACKAGE_boost-atomic \
CONFIG_PACKAGE_boost-context \
CONFIG_PACKAGE_boost-container \
CONFIG_PACKAGE_boost-coroutine \
CONFIG_PACKAGE_boost-log \
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
@ -111,6 +118,7 @@ endef
d e f i n e P a c k a g e / b o o s t - l o c a l e
d e f i n e P a c k a g e / b o o s t - l o c a l e
$( call Package/boost/Default)
$( call Package/boost/Default)
TITLE += ( locale)
TITLE += ( locale)
DEPENDS += $( ICONV_DEPENDS)
e n d e f
e n d e f
d e f i n e P a c k a g e / b o o s t - m a t h
d e f i n e P a c k a g e / b o o s t - m a t h
@ -183,6 +191,28 @@ define Package/boost-wave
DEPENDS += +boost-date_time +boost-thread +boost-filesystem
DEPENDS += +boost-date_time +boost-thread +boost-filesystem
e n d e f
e n d e f
d e f i n e P a c k a g e / b o o s t - c o n t e x t
$( call Package/boost/Default)
TITLE += ( context)
e n d e f
d e f i n e P a c k a g e / b o o s t - c o n t a i n e r
$( call Package/boost/Default)
TITLE += ( container)
e n d e f
d e f i n e P a c k a g e / b o o s t - c o r o u t i n e
$( call Package/boost/Default)
TITLE += ( coroutine)
DEPENDS += +boost-system +boost-chrono +boost-context +boost-thread
e n d e f
d e f i n e P a c k a g e / b o o s t - l o g
$( call Package/boost/Default)
TITLE += ( log)
DEPENDS += +boost-system +boost-chrono +boost-date_time +boost-thread +boost-filesystem +boost-regex
e n d e f
d e f i n e P a c k a g e / b o o s t
d e f i n e P a c k a g e / b o o s t
$( call Package/boost/Default)
$( call Package/boost/Default)
TITLE += ( header-only)
TITLE += ( header-only)
@ -200,7 +230,27 @@ endef
CONFIGURE_PREFIX := $( PKG_INSTALL_DIR)
CONFIGURE_PREFIX := $( PKG_INSTALL_DIR)
TARGET_LDFLAGS += -pthread -lrt
TARGET_LDFLAGS += -pthread -lrt
i f n e q ( $( findstring mips ,$ ( ARCH ) ) , )
ifeq ( $( ARCH) ,mips64)
BOOST_ABI = 64
else ifeq ( $( ARCH) ,octeon)
BOOST_ABI = 64
else
BOOST_ABI = o32
endif
e l s e i f e q ( $( ARCH ) , a r m )
BOOST_ABI = aapcs
e l s e
BOOST_ABI = sysv
e n d i f
d e f i n e B u i l d / C o m p i l e
d e f i n e B u i l d / C o m p i l e
echo " Selected Boost API $( BOOST_ABI) for architecture $( ARCH) and cpu $( CPU_TYPE) $( CPU_SUBTYPE) " ;
( cd $( PKG_BUILD_DIR) ; \
( cd $( PKG_BUILD_DIR) ; \
echo " using gcc : $( ARCH) : $( GNU_TARGET_NAME) -gcc : <compileflags>\" $( TARGET_CFLAGS) \" <cxxflags>\" $( TARGET_CXXFLAGS) \" <linkflags>\" $( TARGET_LDFLAGS) \" ; " > tools/build/src/user-config.jam ; \
echo " using gcc : $( ARCH) : $( GNU_TARGET_NAME) -gcc : <compileflags>\" $( TARGET_CFLAGS) \" <cxxflags>\" $( TARGET_CXXFLAGS) \" <linkflags>\" $( TARGET_LDFLAGS) \" ; " > tools/build/src/user-config.jam ; \
$( if $( CONFIG_PACKAGE_boost-python) , \
$( if $( CONFIG_PACKAGE_boost-python) , \
@ -209,7 +259,7 @@ define Build/Compile
) \
) \
bjam \
bjam \
'-sBUILD=release <optimization>space <inlining>on <debug-symbols>off' \
'-sBUILD=release <optimization>space <inlining>on <debug-symbols>off' \
--toolset= gcc-$( ARCH) --build-type= minimal --layout= system \
--toolset= gcc-$( ARCH) --build-type= minimal --layout= system abi = $( BOOST_ABI) \
--disable-long-double \
--disable-long-double \
$( CONFIGURE_ARGS) \
$( CONFIGURE_ARGS) \
$( if $( CONFIG_PACKAGE_boost-atomic) ,,--without-atomic) \
$( if $( CONFIG_PACKAGE_boost-atomic) ,,--without-atomic) \
@ -220,7 +270,8 @@ define Build/Compile
$( if $( CONFIG_PACKAGE_boost-graph) ,,--without-graph) \
$( if $( CONFIG_PACKAGE_boost-graph) ,,--without-graph) \
$( if $( CONFIG_PACKAGE_boost-graph_parallel) ,,--without-graph_parallel) \
$( if $( CONFIG_PACKAGE_boost-graph_parallel) ,,--without-graph_parallel) \
$( if $( CONFIG_PACKAGE_boost-iostreams) ,,--without-iostreams) \
$( if $( CONFIG_PACKAGE_boost-iostreams) ,,--without-iostreams) \
$( if $( CONFIG_PACKAGE_boost-locale) ,,--without-locale) \
$( if $( CONFIG_PACKAGE_boost-locale) ,boost.locale.iconv= on -sICONV_PATH= $( ICONV_PREFIX) boost.locale.posix= $( if $( USE_UCLIBC) ,on,off) , \
--without-locale boost.locale.iconv= off) \
$( if $( CONFIG_PACKAGE_boost-math) ,,--without-math) \
$( if $( CONFIG_PACKAGE_boost-math) ,,--without-math) \
$( if $( CONFIG_PACKAGE_boost-mpi) ,,--without-mpi) \
$( if $( CONFIG_PACKAGE_boost-mpi) ,,--without-mpi) \
$( if $( CONFIG_PACKAGE_boost-program_options) ,,--without-program_options) \
$( if $( CONFIG_PACKAGE_boost-program_options) ,,--without-program_options) \
@ -234,6 +285,10 @@ define Build/Compile
$( if $( CONFIG_PACKAGE_boost-thread) ,,--without-thread) \
$( if $( CONFIG_PACKAGE_boost-thread) ,,--without-thread) \
$( if $( CONFIG_PACKAGE_boost-timer) ,,--without-timer) \
$( if $( CONFIG_PACKAGE_boost-timer) ,,--without-timer) \
$( if $( CONFIG_PACKAGE_boost-wave) ,,--without-wave) \
$( if $( CONFIG_PACKAGE_boost-wave) ,,--without-wave) \
$( if $( CONFIG_PACKAGE_boost-context) ,,--without-context) \
$( if $( CONFIG_PACKAGE_boost-container) ,,--without-container) \
$( if $( CONFIG_PACKAGE_boost-coroutine) ,,--without-coroutine) \
$( if $( CONFIG_PACKAGE_boost-log) ,,--without-log) \
\
\
$( if $( CONFIG_PACKAGE_boost-iostreams) ,-sNO_BZIP2= 1 -sZLIB_INCLUDE= $( STAGING_DIR) /usr/include \
$( if $( CONFIG_PACKAGE_boost-iostreams) ,-sNO_BZIP2= 1 -sZLIB_INCLUDE= $( STAGING_DIR) /usr/include \
-sZLIB_LIBPATH= $( STAGING_DIR) /usr/lib) \
-sZLIB_LIBPATH= $( STAGING_DIR) /usr/lib) \
@ -373,6 +428,24 @@ define Package/boost-wave/install
$( call Package/boost/Default/install,$( 1) ,wave)
$( call Package/boost/Default/install,$( 1) ,wave)
e n d e f
e n d e f
d e f i n e P a c k a g e / b o o s t - c o n t e x t / i n s t a l l
$( call Package/boost/Default/install,$( 1) ,context)
e n d e f
d e f i n e P a c k a g e / b o o s t - c o n t a i n e r / i n s t a l l
$( call Package/boost/Default/install,$( 1) ,container)
e n d e f
d e f i n e P a c k a g e / b o o s t - c o r o u t i n e / i n s t a l l
$( call Package/boost/Default/install,$( 1) ,coroutine)
e n d e f
d e f i n e P a c k a g e / b o o s t - l o g / i n s t a l l
$( call Package/boost/Default/install,$( 1) ,log)
e n d e f
$( eval $ ( call HostBuild ) )
$( eval $ ( call HostBuild ) )
$( eval $ ( call BuildPackage ,boost ) )
$( eval $ ( call BuildPackage ,boost ) )
$( eval $ ( call BuildPackage ,boost -atomic ) )
$( eval $ ( call BuildPackage ,boost -atomic ) )
@ -397,3 +470,7 @@ $(eval $(call BuildPackage,boost-test))
$( eval $ ( call BuildPackage ,boost -thread ) )
$( eval $ ( call BuildPackage ,boost -thread ) )
$( eval $ ( call BuildPackage ,boost -timer ) )
$( eval $ ( call BuildPackage ,boost -timer ) )
$( eval $ ( call BuildPackage ,boost -wave ) )
$( eval $ ( call BuildPackage ,boost -wave ) )
$( eval $ ( call BuildPackage ,boost -context ) )
$( eval $ ( call BuildPackage ,boost -container ) )
$( eval $ ( call BuildPackage ,boost -coroutine ) )
$( eval $ ( call BuildPackage ,boost -log ) )