@ -16,15 +16,15 @@ include $(INCLUDE_DIR)/nls.mk
i n c l u d e $( INCLUDE_DIR ) / t a r g e t . m k
PKG_NAME := boost
PKG_VERSION := 1.61 .0
PKG_SOURCE_VERSION = 1_61 _0
PKG_RELEASE := 2
PKG_VERSION := 1.62 .0
PKG_SOURCE_VERSION := 1_62 _0
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) _$( PKG_SOURCE_VERSION) .tar.gz
PKG_SOURCE_URL := @SF/boost/$( PKG_NAME) /$( PKG_VERSION)
PKG_SOURCE := $( PKG_NAME) _$( PKG_SOURCE_VERSION) .tar.bz2
PKG_SOURCE_URL := https://sourceforge.net/projects/boost/files/boost /$( PKG_VERSION)
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) _$( PKG_SOURCE_VERSION)
HOST_BUILD_DIR := $( BUILD_DIR_HOST) /$( PKG_NAME) _$( PKG_SOURCE_VERSION)
PKG_MD5SUM := 874805ba2e2ee415b1877ef3297bf8ad
PKG_MD5SUM := 36c96b0f6155c98404091d8ceb48319a28279ca0333fba1ad8611eb90afb2ca0
PKG_LICENSE := Boost Software License <http://www.boost.org/users/license.html>
PKG_MAINTAINER := Carlos M. Ferreira <carlosmf.pt@gmail.com>
@ -45,22 +45,35 @@ define Package/boost/Default
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 s c r i p t i o n
T h i s p a c k a g e p r o v i d e s t h e B o o s t v 1 . 6 1 l i b r a r i e s .
T h i s p a c k a g e p r o v i d e s t h e B o o s t v 1 . 6 2 l i b r a r i e s .
B o o s t i s a s e t o f f r e e , p e e r - r e v i e w e d , p o r t a b l e C + + s o u r c e l i b r a r i e s .
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| W a r n i n g |
| I n o r d e r t o b u i l d a l l o f t h e B o o s t L i b r a r i e s , i t i s n e c e s s a r y |
| t o u s e , a t l e a s t , G C C v e r s i o n 5 ( C + + 1 4 s u p p o r t ) a n d , i t i s n e c e s s a r y t o |
| c o m p i l e t h e k e r n e l w i t h F u l l L a n g u a g e S u p p o r t . |
| Without these requirerements, the following libs will not be available : |
| - B o o s t . L o c a l e |
| - B o o s t . C o r o u t i n e 2 |
| - B o o s t . F i b e r |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This package provides the following run-time libraries :
- atomic
- chrono
- container
- context
- coroutine
- - coroutine2 ( requires GCC v5 and up)
- coroutine ( Deprecated - use Coroutine2)
- - coroutine2 ( R equires GCC v5 and up)
- date_time
- exception
- filesystem
- fiber ( Requires GCC v5 and up) - BROKEN
- graph
- - graph-parallel
- iostreams
- locale ( r equires kernel being compiled with full language support)
- locale ( R equires kernel being compiled with full language support)
- log
- math
- program_options
@ -74,8 +87,9 @@ This package provides the following run-time libraries:
- thread
- timer
- wave
There are many more header-only libraries supported by Boost.
See more at http://www.boost.org/doc/libs/1_61_0/
T h e r e a r e m a n y m o r e h e a d e r - o n l y l i b r a r i e s s u p p o r t e d b y B o o s t .
See more at http : //www .boost .org /doc /libs /1_ 62_ 0/
e n d e f
BOOST_LIBS =
@ -109,143 +123,147 @@ define Package/boost
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 f i g
menu "Select Boost Options"
depends on PACKAGE_boost
comment "Boost compilation options."
choice
prompt "Compile Boost libraries."
default boost-static-and-shared-libs
help
Choose which version to compile.
-> Shared:
- Only Shared libs will be compiled.
-> Static:
- Only Static libs will be compiled.
-> Both:
- Both Static and Shared libs will be compiled.
config boost-shared-libs
bool "Shared"
menu "Select Boost Options"
depends on PACKAGE_boost
comment "Boost compilation options."
choice
prompt "Compile Boost libraries."
default boost-static-and-shared-libs
help
Choose which version to compile.
-> Shared:
- Only Shared libs will be compiled.
-> Static:
- Only Static libs will be compiled.
-> Both:
- Both Static and Shared libs will be compiled.
config boost-shared-libs
bool "Shared"
config boost-static-libs
bool "Static"
bool "Static"
config boost-static-and-shared-libs
bool "Both"
endchoice
choice
prompt "Selects Boost Runtime linkage."
default boost-runtime-shared
help
Choose which C and C++ runtimes to use:
-> Use Shared runtimes.
-> Use Static runtimes.
- Not available if Shared libs are to be built.
-> Use both runtimes.
- Not available if Shared libs are to be built.
- Two separate versions of Boost are built, linking each to a different runtime.
- This option requires "Use tagged names" option to be active.
config boost-runtime-shared
bool "Shared"
config boost-runtime-static
depends on @( !boost-shared-libs&& !boost-static-and-shared-libs)
bool "Static"
config boost-runtime-static-and-shared
depends on @( boost-use-name-tags&& !boost-shared-libs&& !boost-static-and-shared-libs)
bool "Both"
endchoice
choice
prompt "Select a Variant."
default boost-variant-release
help
Chooses which boost variant should be selected:
-> Release: Optimizes Boost for release.
- Optimization: Speed; Debug Symbols: Off; Inlining: Full; Runtime Debugging: Off.
-> Debug:
- Optimization: Off; Debug Symbols: On; Inlining: Off; Runtime Debugging: On.
-> Profile:
- Profiling: On; Debug Symbols: On.
config boost-variant-release
bool "Release"
config boost-variant-debug
bool "Debug"
config boost-variant-profile
bool "Profile"
endchoice
config boost-use-name-tags
bool "Use tagged names."
help
Add name tags the lib files, to diferentiate each library version:
"-mt" for multi-threading.
"-d" for debugging.
"-s" for runtime static link" .
Might break compatibility with libraries that expect boost libs with default names.
default n
config boost-single-thread
depends on @boost-use-name-tags
bool "Single thread Support."
help
Compile Boost libraries in single-thread mode.
default n
bool "Both"
endchoice
choice
prompt "Selects Boost Runtime linkage."
default boost-runtime-shared
help
Choose which C and C++ runtimes to use:
-> Use Shared runtimes.
-> Use Static runtimes.
- Not available if Shared libs are to be built.
-> Use both runtimes.
- Not available if Shared libs are to be built.
- Two separate versions of Boost are built, linking each to a different runtime.
- This option requires "Use tagged names" option to be active.
config boost-runtime-shared
bool "Shared"
config boost-runtime-static
depends on @( !boost-shared-libs&& !boost-static-and-shared-libs)
bool "Static"
config boost-runtime-static-and-shared
depends on @( boost-use-name-tags&& !boost-shared-libs&& !boost-static-and-shared-libs)
bool "Both"
endchoice
choice
prompt "Select a Variant."
default boost-variant-release
help
Chooses which boost variant should be selected:
-> Release: Optimizes Boost for release.
- Optimization: Speed; Debug Symbols: Off; Inlining: Full; Runtime Debugging: Off.
-> Debug:
- Optimization: Off; Debug Symbols: On; Inlining: Off; Runtime Debugging: On.
-> Profile:
- Profiling: On; Debug Symbols: On.
config boost-variant-release
bool "Release"
config boost-variant-debug
bool "Debug"
config boost-variant-profile
bool "Profile"
endchoice
config boost-use-name-tags
bool "Use tagged names."
help
Add name tags the lib files, to diferentiate each library version:
"-mt" for multi-threading.
"-d" for debugging.
"-s" for runtime static link" .
Might break compatibility with libraries that expect boost libs with default names.
default n
config boost-single-thread
depends on @boost-use-name-tags
bool "Single thread Support."
help
Compile Boost libraries in single-thread mode.
default n
config boost-build-type-complete
depends on @boost-use-name-tags
bool "Complete Boost Build."
help
Builds both release and debug libs. It will take much longer to compile.
default n
endmenu
menu "Select Boost libraries"
depends on PACKAGE_boost
config boost-build-type-complete
depends on @boost-use-name-tags
bool "Complete Boost Build."
help
Builds both release and debug libs. It will take much longer to compile.
default n
endmenu
menu "Select Boost libraries"
depends on PACKAGE_boost
comment "Libraries"
config boost-libs-all
bool "Include all Boost libraries."
select PACKAGE_boost-libs
bool "Include all Boost libraries."
select PACKAGE_boost-libs
select boost-test-pkg
select boost-coroutine2
select boost-graph-parallel
config boost-test-pkg
bool "Boost test package."
select PACKAGE_boost-test
bool "Boost test package."
select PACKAGE_boost-test
config boost-coroutine2
depends on @( GCC_VERSION_5 || GCC_VERSION_6)
bool "Boost couroutine2 support."
select PACKAGE_boost-coroutine
default n
depends on !@GCC_VERSION_4_8
bool "Boost couroutine2 support."
select PACKAGE_boost-coroutine
default n
config boost-graph-parallel
bool "Boost parallel graph support."
select PACKAGE_boost-graph
default n
bool "Boost parallel graph support."
select PACKAGE_boost-graph
default n
$( foreach lib,$( BOOST_LIBS) , \
config PACKAGE_boost-$( lib)
prompt " Boost $( lib) library. "
$( if $( findstring locale,$( lib) ) ,depends on @BUILD_NLS,)
config PACKAGE_boost-$( lib)
prompt " Boost $( lib) library. "
$( if $( findstring locale,$( lib) ) ,depends on @BUILD_NLS,)
$( if $( findstring fiber,$( lib) ) ,depends on BROKEN,)
)
endmenu
endmenu
e n d e f
PKG_CONFIG_DEPENDS := CONFIG_PACKAGE_boost-test
d e f i n e P a c k a g e / b o o s t - t e s t
$( call Package/boost/Default)
TITLE += ( test )
HIDDEN:= 1
DEPENDS += +boost-system +boost-timer
$( call Package/boost/Default)
TITLE += ( test )
HIDDEN:= 1
DEPENDS += +boost-system +boost-timer
e n d e f
d e f i n e B u i l d / C o n f i g u r e
@ -281,6 +299,7 @@ $(eval $(call DefineBoostLibrary,context,chrono system thread,))
$( eval $ ( call DefineBoostLibrary ,coroutine ,system chrono context thread ,) )
$( eval $ ( call DefineBoostLibrary ,date_time ,,) )
#$(eval $(call DefineBoostLibrary,exception,,))
$( eval $ ( call DefineBoostLibrary ,fiber ,coroutine ,) )
$( eval $ ( call DefineBoostLibrary ,filesystem ,system ,) )
$( eval $ ( call DefineBoostLibrary ,graph ,regex ,) )
$(eval $(call DefineBoostLibrary,iostreams,,+PACKAGE_boost-iostreams : zlib ))
@ -365,8 +384,8 @@ define Build/Compile
$( if $( CONFIG_PACKAGE_boost-test) ,,--without-test) \
$( foreach lib,$( BOOST_LIBS) , \
$( if $( findstring python,$( lib) ) , \
$( if $( or $( CONFIG_PACKAGE_boost-python) ,$( CONFIG_PACKAGE_boost-python3) ) ,,--without-python) , \
$( if $( CONFIG_PACKAGE_boost-$( lib) ) ,,--without-$( lib) ) ) \
$( if $( or $( CONFIG_PACKAGE_boost-python) ,$( CONFIG_PACKAGE_boost-python3) ) ,,--without-python) , \
$( if $( CONFIG_PACKAGE_boost-$( lib) ) ,,--without-$( lib) ) ) \
) \
$( if $( CONFIG_PACKAGE_boost-locale) ,boost.locale.iconv= on -sICONV_PATH= $( ICONV_PREFIX) boost.locale.posix= $( if $( USE_MUSL) ,on,off) , \
boost.locale.iconv= off) \
@ -408,7 +427,7 @@ define Package/boost/Default/install
$( PKG_INSTALL_DIR) /lib/ -name 'libboost_$(2)*.so*' -exec $( CP) { } $( 1) /usr/lib/ \;
e n d e f
d e f i n e P a c k a g e / b o o s t - t e s t / i n s t a l l
d e f i n e P a c k a g e / b o o s t - t e s t / i n s t a l l
$( INSTALL_DIR) \
$( 1) /usr/lib
@ -421,7 +440,7 @@ endef
d e f i n e B u i l d B o o s t L i b r a r y
define Package/boost-$( 1) /install
$( call Package/boost/Default/install,$$ ( 1) ,$( 1) )
$( call Package/boost/Default/install,$$ ( 1) ,$( 1) )
endef
$$ ( eval $$ ( call BuildPackage,boost-$( 1) ) )