boost: Package Version Update -> 1.62.0
Maintainer: @ClaymorePT Compile tested: Broadcom BCM2708 Run tested: None Description: This package version update brings two new libraries: Fiber [1] (Currently Broken) Framework for userland-threads/fibers, from Oliver Kowalke. QVM [2] Boost QVM is a generic library for working with quaternions, vectors and matrices of static size with the emphasis on 2, 3 and 4-dimensional operations needed in graphics, video games and simulation applications, from Emil Dotchevski. More information about the 1.62.0 release (bug fixes, etc), can be found here [3]. [1]: http://www.boost.org/doc/libs/1_62_0/libs/fiber/ [2]: http://www.boost.org/doc/libs/1_62_0/libs/qvm/ [3]: http://www.boost.org/users/history/version_1_62_0.html Signed-off-by: Carlos M. Ferreira carlosmf.pt@gmail.com
This commit is contained in:
parent
3ac5e168d4
commit
29f2d48ecc
1 changed files with 139 additions and 120 deletions
|
@ -16,15 +16,15 @@ include $(INCLUDE_DIR)/nls.mk
|
||||||
include $(INCLUDE_DIR)/target.mk
|
include $(INCLUDE_DIR)/target.mk
|
||||||
|
|
||||||
PKG_NAME:=boost
|
PKG_NAME:=boost
|
||||||
PKG_VERSION:=1.61.0
|
PKG_VERSION:=1.62.0
|
||||||
PKG_SOURCE_VERSION=1_61_0
|
PKG_SOURCE_VERSION:=1_62_0
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)_$(PKG_SOURCE_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_SOURCE_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=@SF/boost/$(PKG_NAME)/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://sourceforge.net/projects/boost/files/boost/$(PKG_VERSION)
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_SOURCE_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_SOURCE_VERSION)
|
||||||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(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_LICENSE:=Boost Software License <http://www.boost.org/users/license.html>
|
||||||
PKG_MAINTAINER:=Carlos M. Ferreira <carlosmf.pt@gmail.com>
|
PKG_MAINTAINER:=Carlos M. Ferreira <carlosmf.pt@gmail.com>
|
||||||
|
|
||||||
|
@ -45,22 +45,35 @@ define Package/boost/Default
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/boost/description
|
define Package/boost/description
|
||||||
This package provides the Boost v1.61 libraries.
|
This package provides the Boost v1.62 libraries.
|
||||||
Boost is a set of free, peer-reviewed, portable C++ source libraries.
|
Boost is a set of free, peer-reviewed, portable C++ source libraries.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
| Warning |
|
||||||
|
| In order to build all of the Boost Libraries, it is necessary |
|
||||||
|
| to use, at least, GCC version 5 (C++14 support) and, it is necessary to |
|
||||||
|
| compile the kernel with Full Language Support. |
|
||||||
|
| Without these requirerements, the following libs will not be available: |
|
||||||
|
| - Boost.Locale |
|
||||||
|
| - Boost.Coroutine2 |
|
||||||
|
| - Boost.Fiber |
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
This package provides the following run-time libraries:
|
This package provides the following run-time libraries:
|
||||||
- atomic
|
- atomic
|
||||||
- chrono
|
- chrono
|
||||||
- container
|
- container
|
||||||
- context
|
- context
|
||||||
- coroutine
|
- coroutine (Deprecated - use Coroutine2)
|
||||||
- - coroutine2 (requires GCC v5 and up)
|
- - coroutine2 (Requires GCC v5 and up)
|
||||||
- date_time
|
- date_time
|
||||||
- exception
|
- exception
|
||||||
- filesystem
|
- filesystem
|
||||||
|
- fiber (Requires GCC v5 and up) - BROKEN
|
||||||
- graph
|
- graph
|
||||||
- - graph-parallel
|
- - graph-parallel
|
||||||
- iostreams
|
- iostreams
|
||||||
- locale (requires kernel being compiled with full language support)
|
- locale (Requires kernel being compiled with full language support)
|
||||||
- log
|
- log
|
||||||
- math
|
- math
|
||||||
- program_options
|
- program_options
|
||||||
|
@ -74,8 +87,9 @@ This package provides the following run-time libraries:
|
||||||
- thread
|
- thread
|
||||||
- timer
|
- timer
|
||||||
- wave
|
- wave
|
||||||
There are many more header-only libraries supported by Boost.
|
|
||||||
See more at http://www.boost.org/doc/libs/1_61_0/
|
There are many more header-only libraries supported by Boost.
|
||||||
|
See more at http://www.boost.org/doc/libs/1_62_0/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
BOOST_LIBS =
|
BOOST_LIBS =
|
||||||
|
@ -109,143 +123,147 @@ define Package/boost
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/boost/config
|
define Package/boost/config
|
||||||
menu "Select Boost Options"
|
menu "Select Boost Options"
|
||||||
depends on PACKAGE_boost
|
depends on PACKAGE_boost
|
||||||
comment "Boost compilation options."
|
comment "Boost compilation options."
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Compile Boost libraries."
|
prompt "Compile Boost libraries."
|
||||||
default boost-static-and-shared-libs
|
default boost-static-and-shared-libs
|
||||||
help
|
help
|
||||||
Choose which version to compile.
|
Choose which version to compile.
|
||||||
-> Shared:
|
-> Shared:
|
||||||
- Only Shared libs will be compiled.
|
- Only Shared libs will be compiled.
|
||||||
-> Static:
|
-> Static:
|
||||||
- Only Static libs will be compiled.
|
- Only Static libs will be compiled.
|
||||||
-> Both:
|
-> Both:
|
||||||
- Both Static and Shared libs will be compiled.
|
- Both Static and Shared libs will be compiled.
|
||||||
|
|
||||||
config boost-shared-libs
|
config boost-shared-libs
|
||||||
bool "Shared"
|
bool "Shared"
|
||||||
|
|
||||||
config boost-static-libs
|
config boost-static-libs
|
||||||
bool "Static"
|
bool "Static"
|
||||||
|
|
||||||
config boost-static-and-shared-libs
|
config boost-static-and-shared-libs
|
||||||
bool "Both"
|
bool "Both"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Selects Boost Runtime linkage."
|
prompt "Selects Boost Runtime linkage."
|
||||||
default boost-runtime-shared
|
default boost-runtime-shared
|
||||||
help
|
help
|
||||||
Choose which C and C++ runtimes to use:
|
Choose which C and C++ runtimes to use:
|
||||||
-> Use Shared runtimes.
|
-> Use Shared runtimes.
|
||||||
-> Use Static runtimes.
|
-> Use Static runtimes.
|
||||||
- Not available if Shared libs are to be built.
|
- Not available if Shared libs are to be built.
|
||||||
-> Use both runtimes.
|
-> Use both runtimes.
|
||||||
- Not available if Shared libs are to be built.
|
- Not available if Shared libs are to be built.
|
||||||
- Two separate versions of Boost are built, linking each to a different runtime.
|
- Two separate versions of Boost are built, linking each to a different runtime.
|
||||||
- This option requires "Use tagged names" option to be active.
|
- This option requires "Use tagged names" option to be active.
|
||||||
|
|
||||||
config boost-runtime-shared
|
config boost-runtime-shared
|
||||||
bool "Shared"
|
bool "Shared"
|
||||||
|
|
||||||
config boost-runtime-static
|
config boost-runtime-static
|
||||||
depends on @(!boost-shared-libs&&!boost-static-and-shared-libs)
|
depends on @(!boost-shared-libs&&!boost-static-and-shared-libs)
|
||||||
bool "Static"
|
bool "Static"
|
||||||
|
|
||||||
config boost-runtime-static-and-shared
|
config boost-runtime-static-and-shared
|
||||||
depends on @(boost-use-name-tags&&!boost-shared-libs&&!boost-static-and-shared-libs)
|
depends on @(boost-use-name-tags&&!boost-shared-libs&&!boost-static-and-shared-libs)
|
||||||
bool "Both"
|
bool "Both"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Select a Variant."
|
prompt "Select a Variant."
|
||||||
default boost-variant-release
|
default boost-variant-release
|
||||||
help
|
help
|
||||||
Chooses which boost variant should be selected:
|
Chooses which boost variant should be selected:
|
||||||
-> Release: Optimizes Boost for release.
|
-> Release: Optimizes Boost for release.
|
||||||
- Optimization: Speed; Debug Symbols: Off; Inlining: Full; Runtime Debugging: Off.
|
- Optimization: Speed; Debug Symbols: Off; Inlining: Full; Runtime Debugging: Off.
|
||||||
-> Debug:
|
-> Debug:
|
||||||
- Optimization: Off; Debug Symbols: On; Inlining: Off; Runtime Debugging: On.
|
- Optimization: Off; Debug Symbols: On; Inlining: Off; Runtime Debugging: On.
|
||||||
-> Profile:
|
-> Profile:
|
||||||
- Profiling: On; Debug Symbols: On.
|
- Profiling: On; Debug Symbols: On.
|
||||||
|
|
||||||
config boost-variant-release
|
config boost-variant-release
|
||||||
bool "Release"
|
bool "Release"
|
||||||
|
|
||||||
config boost-variant-debug
|
config boost-variant-debug
|
||||||
bool "Debug"
|
bool "Debug"
|
||||||
|
|
||||||
config boost-variant-profile
|
config boost-variant-profile
|
||||||
bool "Profile"
|
bool "Profile"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config boost-use-name-tags
|
config boost-use-name-tags
|
||||||
bool "Use tagged names."
|
bool "Use tagged names."
|
||||||
help
|
help
|
||||||
Add name tags the lib files, to diferentiate each library version:
|
Add name tags the lib files, to diferentiate each library version:
|
||||||
"-mt" for multi-threading.
|
"-mt" for multi-threading.
|
||||||
"-d" for debugging.
|
"-d" for debugging.
|
||||||
"-s" for runtime static link".
|
"-s" for runtime static link".
|
||||||
Might break compatibility with libraries that expect boost libs with default names.
|
Might break compatibility with libraries that expect boost libs with default names.
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config boost-single-thread
|
config boost-single-thread
|
||||||
depends on @boost-use-name-tags
|
depends on @boost-use-name-tags
|
||||||
bool "Single thread Support."
|
bool "Single thread Support."
|
||||||
help
|
help
|
||||||
Compile Boost libraries in single-thread mode.
|
Compile Boost libraries in single-thread mode.
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config boost-build-type-complete
|
config boost-build-type-complete
|
||||||
depends on @boost-use-name-tags
|
depends on @boost-use-name-tags
|
||||||
bool "Complete Boost Build."
|
bool "Complete Boost Build."
|
||||||
help
|
help
|
||||||
Builds both release and debug libs. It will take much longer to compile.
|
Builds both release and debug libs. It will take much longer to compile.
|
||||||
default n
|
default n
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Select Boost libraries"
|
menu "Select Boost libraries"
|
||||||
depends on PACKAGE_boost
|
depends on PACKAGE_boost
|
||||||
comment "Libraries"
|
comment "Libraries"
|
||||||
|
|
||||||
config boost-libs-all
|
config boost-libs-all
|
||||||
bool "Include all Boost libraries."
|
bool "Include all Boost libraries."
|
||||||
select PACKAGE_boost-libs
|
select PACKAGE_boost-libs
|
||||||
|
select boost-test-pkg
|
||||||
|
select boost-coroutine2
|
||||||
|
select boost-graph-parallel
|
||||||
|
|
||||||
config boost-test-pkg
|
config boost-test-pkg
|
||||||
bool "Boost test package."
|
bool "Boost test package."
|
||||||
select PACKAGE_boost-test
|
select PACKAGE_boost-test
|
||||||
|
|
||||||
config boost-coroutine2
|
config boost-coroutine2
|
||||||
depends on @(GCC_VERSION_5 || GCC_VERSION_6)
|
depends on !@GCC_VERSION_4_8
|
||||||
bool "Boost couroutine2 support."
|
bool "Boost couroutine2 support."
|
||||||
select PACKAGE_boost-coroutine
|
select PACKAGE_boost-coroutine
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config boost-graph-parallel
|
config boost-graph-parallel
|
||||||
bool "Boost parallel graph support."
|
bool "Boost parallel graph support."
|
||||||
select PACKAGE_boost-graph
|
select PACKAGE_boost-graph
|
||||||
default n
|
default n
|
||||||
|
|
||||||
$(foreach lib,$(BOOST_LIBS), \
|
$(foreach lib,$(BOOST_LIBS), \
|
||||||
config PACKAGE_boost-$(lib)
|
config PACKAGE_boost-$(lib)
|
||||||
prompt "Boost $(lib) library."
|
prompt "Boost $(lib) library."
|
||||||
$(if $(findstring locale,$(lib)),depends on @BUILD_NLS,)
|
$(if $(findstring locale,$(lib)),depends on @BUILD_NLS,)
|
||||||
|
$(if $(findstring fiber,$(lib)),depends on BROKEN,)
|
||||||
)
|
)
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_boost-test
|
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_boost-test
|
||||||
|
|
||||||
define Package/boost-test
|
define Package/boost-test
|
||||||
$(call Package/boost/Default)
|
$(call Package/boost/Default)
|
||||||
TITLE+= (test)
|
TITLE+= (test)
|
||||||
HIDDEN:=1
|
HIDDEN:=1
|
||||||
DEPENDS+=+boost-system +boost-timer
|
DEPENDS+=+boost-system +boost-timer
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
|
@ -281,6 +299,7 @@ $(eval $(call DefineBoostLibrary,context,chrono system thread,))
|
||||||
$(eval $(call DefineBoostLibrary,coroutine,system chrono context thread,))
|
$(eval $(call DefineBoostLibrary,coroutine,system chrono context thread,))
|
||||||
$(eval $(call DefineBoostLibrary,date_time,,))
|
$(eval $(call DefineBoostLibrary,date_time,,))
|
||||||
#$(eval $(call DefineBoostLibrary,exception,,))
|
#$(eval $(call DefineBoostLibrary,exception,,))
|
||||||
|
$(eval $(call DefineBoostLibrary,fiber,coroutine,))
|
||||||
$(eval $(call DefineBoostLibrary,filesystem,system,))
|
$(eval $(call DefineBoostLibrary,filesystem,system,))
|
||||||
$(eval $(call DefineBoostLibrary,graph,regex,))
|
$(eval $(call DefineBoostLibrary,graph,regex,))
|
||||||
$(eval $(call DefineBoostLibrary,iostreams,,+PACKAGE_boost-iostreams:zlib))
|
$(eval $(call DefineBoostLibrary,iostreams,,+PACKAGE_boost-iostreams:zlib))
|
||||||
|
@ -365,8 +384,8 @@ define Build/Compile
|
||||||
$(if $(CONFIG_PACKAGE_boost-test),,--without-test) \
|
$(if $(CONFIG_PACKAGE_boost-test),,--without-test) \
|
||||||
$(foreach lib,$(BOOST_LIBS), \
|
$(foreach lib,$(BOOST_LIBS), \
|
||||||
$(if $(findstring python,$(lib)), \
|
$(if $(findstring python,$(lib)), \
|
||||||
$(if $(or $(CONFIG_PACKAGE_boost-python),$(CONFIG_PACKAGE_boost-python3)),,--without-python), \
|
$(if $(or $(CONFIG_PACKAGE_boost-python),$(CONFIG_PACKAGE_boost-python3)),,--without-python), \
|
||||||
$(if $(CONFIG_PACKAGE_boost-$(lib)),,--without-$(lib))) \
|
$(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), \
|
$(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) \
|
boost.locale.iconv=off) \
|
||||||
|
@ -421,7 +440,7 @@ endef
|
||||||
|
|
||||||
define BuildBoostLibrary
|
define BuildBoostLibrary
|
||||||
define Package/boost-$(1)/install
|
define Package/boost-$(1)/install
|
||||||
$(call Package/boost/Default/install,$$(1),$(1))
|
$(call Package/boost/Default/install,$$(1),$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$$(eval $$(call BuildPackage,boost-$(1)))
|
$$(eval $$(call BuildPackage,boost-$(1)))
|
||||||
|
|
Loading…
Reference in a new issue