Boost Makefile Update - Release 6
authorclaymore <redacted>
Thu, 30 Jul 2015 03:02:18 +0000 (04:02 +0100)
committerclaymore <redacted>
Thu, 30 Jul 2015 03:04:14 +0000 (04:04 +0100)
 This update solves two issues:
 1) Incompatibility with the combination of using Target mpc85xx and uclibc at the same time[1].
   - For now, Boost is disabled when the respective combination is detected.
 2) The selection of Boost.Locale was not activating the build with full language support.

 [1] - https://github.com/openwrt/packages/issues/1621

Signed-off-by: Carlos Ferreira <redacted>
libs/boost/Makefile

index ef0f31f0238e83c9b4ee3ca10f46e0c543141094..c2d273e7eb2887d93cfe8b9bef8d733c6c3bc033 100644 (file)
@@ -17,7 +17,7 @@ include $(INCLUDE_DIR)/target.mk
 
 PKG_NAME:=boost
 PKG_VERSION:=1_58_0
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/boost
@@ -34,13 +34,13 @@ PKG_USE_MIPS16:=0
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/host-build.mk
 
-
+# For now, the combination TARGET_mpc85xx&&USE_UCLIBC disables boost due to incompatibility
 define Package/boost/Default
   SECTION:=libs
   CATEGORY:=Libraries
   TITLE:=Boost C++ source library
   URL:=http://www.boost.org
-  DEPENDS:=+libstdcpp +libpthread +librt
+  DEPENDS:=@(!(TARGET_mpc85xx&&USE_UCLIBC)) +libstdcpp +libpthread +librt
 endef
 
 define Package/boost/description/Default
@@ -72,10 +72,11 @@ define Package/boost/install
   true
 endef
 
+# For now, the combination TARGET_mpc85xx&&USE_UCLIBC disables boost due to incompatibility
 define Package/boost
   $(call Package/boost/Default)
   TITLE+= packages
-  DEPENDS:=+ALL:boost-libs +ALL:boost-test
+  DEPENDS:=@(!(TARGET_mpc85xx&&USE_UCLIBC)) +ALL:boost-libs +ALL:boost-test
 endef
 
 define Package/boost/config
@@ -107,7 +108,7 @@ PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_boost-test
 define Package/boost-test
   $(call Package/boost/Default)
   TITLE+= (test)
-  HIDDEN:=1
+  HIDDEN:=1  
 endef
 
 define Build/Configure
@@ -148,7 +149,7 @@ $(eval $(call DefineBoostLibrary,filesystem,system,))
 $(eval $(call DefineBoostLibrary,graph,regex,))
 #$(eval $(call DefineBoostLibrary,graph_parallel,,))
 $(eval $(call DefineBoostLibrary,iostreams,,+zlib))
-$(eval $(call DefineBoostLibrary,locale,system,$(ICONV_DEPENDS)))
+$(eval $(call DefineBoostLibrary,locale,system,$(ICONV_DEPENDS) +@BUILD_NLS))
 $(eval $(call DefineBoostLibrary,log,system chrono date_time thread filesystem regex,))
 $(eval $(call DefineBoostLibrary,math,,))
 #$(eval $(call DefineBoostLibrary,mpi,,))
git clone https://git.99rst.org/PROJECT