2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 # Dude, this "boost" is really one of the most crude stuff I ported yet.
10 include $(TOPDIR
)/rules.mk
16 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@SF
/boost \
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)
21 PKG_BUILD_DEPENDS
:=boost-jam
/host
23 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=Boost provides free peer-reviewed portable C
++ source libraries
29 URL
:=http
://www.boost.org
/
32 define Build
/Configure
35 # bjam does not support anything like DESTDIR
36 CONFIGURE_PREFIX
:=$(PKG_INSTALL_DIR
)
42 ( cd
$(PKG_BUILD_DIR
) ; \
43 echo
"using gcc : : $(GNU_TARGET_NAME)-gcc : <cflags>$(CFLAGS) <cxxflags>$(CXXFLAGS) <linkflags>$(LDFLAGS) ;" > tools
/build
/v2
/site-config.jam
; \
45 '-sBUILD=release <optimization>space <inlining>on <debug-symbols>off' \
47 $(foreach c
, $(LIBRARIES
), \
55 define Package
/boost
/description
56 Boost provides free peer-reviewed portable C
++ source libraries
59 define Build
/InstallDev
60 $(INSTALL_DIR
) $(1)/usr
/include/boost
$(1)/usr
/lib
61 $(CP
) $(PKG_INSTALL_DIR
)/include/boost-
*/boost
/* $(1)/usr
/include/boost
/ # copies _all_ header files - independent of <--with-library>-argument above
62 $(CP
) $(PKG_INSTALL_DIR
)/lib
/*.a
$(1)/usr
/lib
/
65 define Package
/boost
/install
66 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/lib
/*.so
* $(1)/usr
/lib
/
70 # TODO: Split libboost into several smaller packages
72 #define Package/boost-serialization/install
73 # $(INSTALL_DIR) $(1)/usr/lib
74 # $(CP) $(PKG_INSTALL_DIR)/lib/*serialization*.so* $(1)/usr/lib/
77 $(eval
$(call BuildPackage
,boost
))