Changeset 18998


Ignore:
Timestamp:
2010-01-02T15:54:11+01:00 (8 years ago)
Author:
mb
Message:

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...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/boost/Makefile

    r18997 r18998  
    3030endef 
    3131 
     32define Package/boost-serialization 
     33  SECTION:=libs 
     34  CATEGORY:=Libraries 
     35  TITLE:=Boost-serialization library 
     36  DEPENDS:=+boost 
     37endef 
     38 
     39define Package/boost-regex 
     40  SECTION:=libs 
     41  CATEGORY:=Libraries 
     42  TITLE:=Boost-regex library 
     43  DEPENDS:=+boost 
     44endef 
     45 
    3246define Build/Configure 
    3347endef 
     
    3549# bjam does not support anything like DESTDIR 
    3650CONFIGURE_PREFIX:=$(PKG_INSTALL_DIR) 
    37  
    38 LIBRARIES:= \ 
    39         serialization 
    4051 
    4152define Build/Compile 
     
    4556                        '-sBUILD=release <optimization>space <inlining>on <debug-symbols>off' \ 
    4657                        --toolset=gcc --build-type=minimal --layout=system \ 
    47                         $(foreach c, $(LIBRARIES), \ 
    48                                 --with-$(c) \ 
    49                         ) \ 
     58                        $(patsubst %,--with-regex,$(filter y m,$(CONFIG_PACKAGE_boost-regex))) \ 
     59                        $(patsubst %,--with-serialization,$(filter y m,$(CONFIG_PACKAGE_boost-serialization))) \ 
    5060                        $(CONFIGURE_ARGS) \ 
    5161                        install \ 
     
    6979endef 
    7080 
    71 # TODO: Split libboost into several smaller packages 
    72  
    73 #define Package/boost-serialization/install 
    74 #    $(INSTALL_DIR) $(1)/usr/lib 
    75 #       $(CP) $(PKG_INSTALL_DIR)/lib/*serialization*.so* $(1)/usr/lib/ 
    76 #endef 
    77  
     81$(eval $(call BuildPackage,boost-serialization)) 
     82$(eval $(call BuildPackage,boost-regex)) 
    7883$(eval $(call BuildPackage,boost)) 
Note: See TracChangeset for help on using the changeset viewer.