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 Package
/boost-serialization
35 TITLE
:=Boost-serialization library
39 define Package
/boost-regex
42 TITLE
:=Boost-regex library
46 define Build
/Configure
49 # bjam does not support anything like DESTDIR
50 CONFIGURE_PREFIX
:=$(PKG_INSTALL_DIR
)
53 ( cd
$(PKG_BUILD_DIR
) ; \
54 echo
"using gcc : : $(GNU_TARGET_NAME)-gcc : <cflags>$(CFLAGS) <cxxflags>$(CXXFLAGS) <linkflags>$(LDFLAGS) ;" > tools
/build
/v2
/site-config.jam
; \
56 '-sBUILD=release <optimization>space <inlining>on <debug-symbols>off' \
57 --toolset
=gcc
--build-type
=minimal
--layout
=system \
58 $(patsubst %,--with-regex
,$(filter y m
,$(CONFIG_PACKAGE_boost-regex
))) \
59 $(patsubst %,--with-serialization
,$(filter y m
,$(CONFIG_PACKAGE_boost-serialization
))) \
65 define Package
/boost
/description
66 Boost provides free peer-reviewed portable C
++ source libraries
69 define Build
/InstallDev
70 $(INSTALL_DIR
) $(1)/usr
/include/boost
$(1)/usr
/lib
71 $(CP
) $(PKG_INSTALL_DIR
)/include/boost
/* $(1)/usr
/include/boost
/ # copies _all_ header files - independent of <--with-library>-argument above
72 $(CP
) $(PKG_INSTALL_DIR
)/lib
/*.a
$(1)/usr
/lib
/
73 $(CP
) $(PKG_INSTALL_DIR
)/lib
/*.so
* $(1)/usr
/lib
/
76 define Package
/boost
/install
77 $(INSTALL_DIR
) $(1)/usr
/lib
78 $(CP
) $(PKG_INSTALL_DIR
)/lib
/*.so
* $(1)/usr
/lib
/
81 $(eval
$(call BuildPackage
,boost-serialization
))
82 $(eval
$(call BuildPackage
,boost-regex
))
83 $(eval
$(call BuildPackage
,boost
))