From: Chih-Min Chao <cmchao@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 9/9] boost : new package
Date: Fri, 11 Mar 2011 16:13:35 +0800 [thread overview]
Message-ID: <1299831215-26466-9-git-send-email-cmchao@gmail.com> (raw)
In-Reply-To: <1299831215-26466-1-git-send-email-cmchao@gmail.com>
Signed-off-by: Chih-Min Chao <cmchao@gmail.com>
---
package/Config.in | 1 +
package/boost/Config.in | 81 +++++++++++++++++++++++++++++++++
package/boost/boost.mk | 113 +++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 195 insertions(+), 0 deletions(-)
create mode 100644 package/boost/Config.in
create mode 100644 package/boost/boost.mk
diff --git a/package/Config.in b/package/Config.in
index eefcde8..91a8aa3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -324,6 +324,7 @@ endmenu
menu "Other"
source "package/argp-standalone/Config.in"
+source "package/boost/Config.in"
source "package/libatomic_ops/Config.in"
source "package/libcap/Config.in"
source "package/libdaemon/Config.in"
diff --git a/package/boost/Config.in b/package/boost/Config.in
new file mode 100644
index 0000000..c0e3b7b
--- /dev/null
+++ b/package/boost/Config.in
@@ -0,0 +1,81 @@
+config BR2_PACKAGE_BOOST
+ bool "boost"
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ A well-knownd C++ library
+ http://www.boost.org
+
+if BR2_PACKAGE_BOOST
+
+config BR2_PACKAGE_BOOST_DATETIME
+ bool "enable date_time library"
+ default n
+
+config BR2_PACKAGE_BOOST_FILESYSTEM
+ bool "enable filesystem library"
+ default n
+
+config BR2_PACKAGE_BOOST_GRAPH
+ bool "enable graph library"
+ default n
+
+config BR2_PACKAGE_BOOST_GRAPH_PARALLEL
+ bool "enable graph_parallel library"
+ default n
+
+config BR2_PACKAGE_BOOST_IOSTREAMS
+ bool "enable iostreams library"
+ select BR2_PACKAGE_ZLIB
+ select BR2_PACKAGE_BZIP2
+ default n
+
+config BR2_PACKAGE_BOOST_MATH
+ bool "enable math library"
+ default n
+
+config BR2_PACKAGE_BOOST_MPI
+ bool "enable mpi library"
+ default n
+
+config BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
+ bool "enable program_options library"
+ default n
+
+config BR2_PACKAGE_BOOST_PYTHON
+ bool "enable python library"
+ select BR2_PACKAGE_PYTHON
+ default n
+
+config BR2_PACKAGE_BOOST_RANDOM
+ bool "enable random library"
+ default n
+
+config BR2_PACKAGE_BOOST_REGEX
+ bool "enable regex library"
+ default n
+
+config BR2_PACKAGE_BOOST_SERIALIZATION
+ bool "enable serialization library"
+ default n
+
+config BR2_PACKAGE_BOOST_SIGNALS
+ bool "enable signals library"
+ default n
+
+config BR2_PACKAGE_BOOST_SYSTEM
+ bool "enable system library"
+ default n
+
+config BR2_PACKAGE_BOOST_TEST
+ bool "enable test library"
+ default n
+
+config BR2_PACKAGE_BOOST_THREAD
+ bool "enable thread library"
+ default n
+
+config BR2_PACKAGE_BOOST_WAVE
+ bool "enable wave library"
+ default n
+
+endif #BR2_PACKAGE_BOOST
diff --git a/package/boost/boost.mk b/package/boost/boost.mk
new file mode 100644
index 0000000..7186010
--- /dev/null
+++ b/package/boost/boost.mk
@@ -0,0 +1,113 @@
+#############################################################
+#
+# bzip2
+#
+#############################################################
+BOOST_VERSION:=1_46_0
+BOOST_VERSION2:=1.46.0
+BOOST_SOURCE:=boost_$(BOOST_VERSION).tar.bz2
+BOOST_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/boost/
+#BOOST_INSTALL_STAGING=YES
+
+ifneq ($(BR2_PACKAGE_BOOST_DATETIME),y)
+BOOST_LIB_CONF += --without-date_time
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_FILESYSTEM),y)
+BOOST_LIB_CONF += --without-filesystem
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_GRAPH),y)
+BOOST_LIB_CONF += --without-graph
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_GRAPH_PARALLEL),y)
+BOOST_LIB_CONF += --without-graph_parallel
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_IOSTREAMS),y)
+BOOST_LIB_CONF += --without-iostreams
+else
+BOOST_DEPENDENCIES += zlib bzip2
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_MATH),y)
+BOOST_LIB_CONF += --without-math
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_MPI),y)
+BOOST_LIB_CONF += --without-mpi
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_PROGRAM_OPTIONS),y)
+BOOST_LIB_CONF += --without-program_options
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_PYTHON),y)
+BOOST_LIB_CONF += --without-python
+else
+BOOST_DEPENDENCIES += python
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_RANDOM),y)
+BOOST_LIB_CONF += --without-random
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_REGEX),y)
+BOOST_LIB_CONF += --without-regex
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_SERIALIZATION),y)
+BOOST_LIB_CONF += --without-serialization
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_SIGNALS),y)
+BOOST_LIB_CONF += --without-signals
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_SYSTEM),y)
+BOOST_LIB_CONF += --without-system
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_TEST),y)
+BOOST_LIB_CONF += --without-test
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_THREAD),y)
+BOOST_LIB_CONF += --without-thread
+endif
+
+ifneq ($(BR2_PACKAGE_BOOST_WAVE),y)
+BOOST_LIB_CONF += --without-wave
+endif
+
+define BOOST_BUILD_CMDS
+ (cd $(@D);\
+ ./bootstrap.sh \
+ )
+ $(SED) "s,using gcc,using gcc : $(ARCH) : $(TARGET_CXX),g" $(@D)/project-config.jam
+ $(SED) "s,using python : 2.6 : /usr,using python : $(PYTHON_VERSION_MAJOR) \
+ : $(STAGING_DIR)/usr,g" $(@D)/project-config.jam
+ (cd $(@D); \
+ ./bjam $(BOOST_LIB_CONF);\
+ )
+endef
+
+define BOOST_INSTALL_STAGING_CMDS
+ ./bjam install --prefix=$(STAGING_DIR)/usr --layout=system
+endef
+
+define BOOST_INSTALL_TARGET_CMDS
+ (cd $(@D); \
+ ./bjam install --prefix=$(TARGET_DIR)/usr --layout=system $(BOOST_LIB_CONF) ;\
+ )
+endef
+
+define BOOST_CLEAN_CMDS
+ rm -f $(TARGET_DIR)/lib/boost*
+ rm -f $(STAGING_DIR)/lib/boost*
+ rm -f $(TARGET_DIR)/include/boost
+ rm -f $(STAGING_DIR)/include/boost
+endef
+
+$(eval $(call GENTARGETS,package,boost))
--
1.7.0.4
next prev parent reply other threads:[~2011-03-11 8:13 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 8:13 [Buildroot] [PATCH 1/9] alsa-lib : bump to 1.0.24.1 Chih-Min Chao
2011-03-11 8:13 ` [Buildroot] [PATCH 2/9] alsa-utils : bump to 1.0.24.2 Chih-Min Chao
2011-03-13 23:27 ` Peter Korsgaard
2011-03-14 4:02 ` Chih-Min Chao
2011-03-14 8:50 ` Peter Korsgaard
2011-03-11 8:13 ` [Buildroot] [PATCH 3/9] pixman : bump to 0.20.2 Chih-Min Chao
2011-03-11 9:55 ` Will Newton
2011-03-12 15:23 ` Chih-Min Chao
2011-03-11 8:13 ` [Buildroot] [PATCH 4/9] cairo : bump to 1.10.2 Chih-Min Chao
2011-03-11 9:54 ` Will Newton
2011-03-12 15:25 ` Chih-Min Chao
2011-03-13 2:04 ` [Buildroot] how to select predefined external toolchain profile Justin Mark
2011-03-13 4:25 ` Justin Mark
2011-03-13 7:38 ` [Buildroot] [PATCH 4/9] cairo : bump to 1.10.2 Chih-Min Chao
2011-03-11 8:13 ` [Buildroot] [PATCH 5/9] bash : bump to version 4.2 Chih-Min Chao
2011-03-11 8:13 ` [Buildroot] [PATCH 6/9] util-linux : convert to autotarget and bump to 2.19 Chih-Min Chao
2011-03-11 8:13 ` [Buildroot] [PATCH 7/9] libopenal : new package. Cross-platform audio library Chih-Min Chao
2011-03-11 8:13 ` [Buildroot] [PATCH 8/9] libraw : new package Chih-Min Chao
2011-04-26 13:02 ` Peter Korsgaard
2011-03-11 8:13 ` Chih-Min Chao [this message]
2011-03-13 23:10 ` [Buildroot] [PATCH 1/9] alsa-lib : bump to 1.0.24.1 Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1299831215-26466-9-git-send-email-cmchao@gmail.com \
--to=cmchao@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox