From decad23087ab5596e32d9cd4d3b1e3a0cd87d3db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20B=C3=BCsch?= Date: Sat, 2 Jan 2010 14:54:11 +0000 Subject: [PATCH] boost: Allow sub-lib selection. This is not the optimum solution and it probably needs a rewrite using a Config.in file, but it's better than what we have now... SVN-Revision: 18998 --- libs/boost/Makefile | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libs/boost/Makefile b/libs/boost/Makefile index 8b305d6148..195262afb8 100644 --- a/libs/boost/Makefile +++ b/libs/boost/Makefile @@ -29,24 +29,34 @@ define Package/boost URL:=http://www.boost.org/ endef +define Package/boost-serialization + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Boost-serialization library + DEPENDS:=+boost +endef + +define Package/boost-regex + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Boost-regex library + DEPENDS:=+boost +endef + define Build/Configure endef # bjam does not support anything like DESTDIR CONFIGURE_PREFIX:=$(PKG_INSTALL_DIR) -LIBRARIES:= \ - serialization - define Build/Compile ( cd $(PKG_BUILD_DIR) ; \ echo "using gcc : : $(GNU_TARGET_NAME)-gcc : $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) ;" > tools/build/v2/site-config.jam ; \ bjam \ '-sBUILD=release space on off' \ --toolset=gcc --build-type=minimal --layout=system \ - $(foreach c, $(LIBRARIES), \ - --with-$(c) \ - ) \ + $(patsubst %,--with-regex,$(filter y m,$(CONFIG_PACKAGE_boost-regex))) \ + $(patsubst %,--with-serialization,$(filter y m,$(CONFIG_PACKAGE_boost-serialization))) \ $(CONFIGURE_ARGS) \ install \ ) @@ -68,11 +78,6 @@ define Package/boost/install $(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/usr/lib/ endef -# TODO: Split libboost into several smaller packages - -#define Package/boost-serialization/install -# $(INSTALL_DIR) $(1)/usr/lib -# $(CP) $(PKG_INSTALL_DIR)/lib/*serialization*.so* $(1)/usr/lib/ -#endef - +$(eval $(call BuildPackage,boost-serialization)) +$(eval $(call BuildPackage,boost-regex)) $(eval $(call BuildPackage,boost)) -- 2.30.2