diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2007-01-06 17:34:59 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2007-01-06 17:34:59 +0000 |
commit | 49b5e2e1fc12e927d3e8b7733fc17eccb24a3e35 (patch) | |
tree | 003dbd702e2d2399673d9df1b4dbf39fc9e98ac5 | |
parent | 42f45e6756d855a56bd49604fe6c4cc27eb84dc0 (diff) | |
download | ptxdist-49b5e2e1fc12e927d3e8b7733fc17eccb24a3e35.tar.gz ptxdist-49b5e2e1fc12e927d3e8b7733fc17eccb24a3e35.tar.xz |
* boost: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6751 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r-- | rules/Kconfig | 1 | ||||
-rw-r--r-- | rules/boost.in | 546 | ||||
-rw-r--r-- | rules/boost.make | 183 |
3 files changed, 730 insertions, 0 deletions
diff --git a/rules/Kconfig b/rules/Kconfig index 9ace714ad..7d856908d 100644 --- a/rules/Kconfig +++ b/rules/Kconfig @@ -132,6 +132,7 @@ endmenu menu "System Libraries " source "rules/alsa-lib.in" +source "rules/boost.in" source "rules/commoncpp2.in" source "rules/db41.in" source "rules/db44.in" diff --git a/rules/boost.in b/rules/boost.in new file mode 100644 index 000000000..37d17452f --- /dev/null +++ b/rules/boost.in @@ -0,0 +1,546 @@ +# boost configuration + +menuconfig BOOST + bool + prompt "boost " + help + + Boost provides free peer-reviewed portable C++ source libraries. The + project emphasizes libraries that work well with the C++ Standard + Library. Boost libraries are intended to be widely useful, and usable + across a broad spectrum of applications. The Boost license encourages + both commercial and non-commercial use. + + The boost team aims to establish "existing practice" and provide + reference implementations so that Boost libraries are suitable for + eventual standardization. Ten Boost libraries are already included in + the C++ Standards Committee's Library Technical Report ( TR1) as a step + toward becoming part of a future C++ Standard. More Boost libraries are + proposed for the upcoming TR2. + + For details see the project homepage: + + http://www.boost.org/ + +# config BOOST_ALGORIGHM +# bool +# depends on BOOST +# prompt "algorithm" +# +# config BOOST_ANY +# bool +# depends on BOOST +# prompt "any" +# +# config BOOST_ARRAY +# bool +# depends on BOOST +# prompt "array" +# +# config BOOST_ASSIGN +# bool +# depends on BOOST +# prompt "assign" +# +# config BOOST_BIND +# bool +# depends on BOOST +# prompt "bind" +# +# config BOOST_COMPATIBILITY +# bool +# depends on BOOST +# prompt "compatibility" +# help +# Bootst library. +# +# compose +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# concept_check +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# config +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# conversion +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# crc +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# date_time +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# detail +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# disjoint_sets +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# dynamic_bitset +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# expected_results.xml +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. + +config BOOST_FILESYSTEM + bool + depends on BOOST + prompt "filesystem" + help + Bootst filesystem library. + +# format +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# function +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# functional +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# graph +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# +# integer +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# io +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# iostreams +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# iterator +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# lambda +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# libraries.htm +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# logic +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# maintainers.txt +# math +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# mem_fn +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# mpl +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# multi_array +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# multi_index +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# numeric +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# optional +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# parameter +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# platform_maintainers.txt +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# pool +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# preprocessor +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# program_options +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# property_map +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# ptr_container +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# python +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# random +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# range +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# rational +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# regex +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# serialization +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# signals +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# smart_ptr +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# spirit +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# static_assert +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# test +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# thread + +config BOOST_THREAD + bool + depends on BOOST + prompt "thread" + help + Portable C++ multi-threading library. + +# timer +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# tokenizer +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# tuple +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# type_traits +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# utility +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# variant +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. +# wave +# config BOOST_ +# bool +# depends on BOOST +# prompt "" +# help +# Bootst library. + + +# ----- + +config BOOST_REGEX + bool + depends on BOOST + prompt "regex" + help + Bootst regex library. + +# config BOOST_SIGNALS +# bool +# depends on BOOST +# prompt "signals" +# help +# Bootst signals library. +# +# config BOOST_SERIALIZATION +# bool +# depends on BOOST +# prompt "serialization" +# help +# Bootst serialization library. +# +# config BOOST_THREAD +# bool +# depends on BOOST +# prompt "thread" +# help +# Bootst thread library. +# +# config BOOST_PYTHON +# bool +# depends on BOOST +# prompt "python bindings" +# help +# Bootst python library. +# +# config BOOST_FILESYSTEM +# bool +# depends on BOOST +# prompt "filesystem" +# help +# Bootst filesystem library. +# +# config BOOST_WAVE +# bool +# depends on BOOST +# prompt "wave" +# help +# Bootst wave library. +# +# config BOOST_DATE_TIME +# bool +# depends on BOOST +# prompt "date_time" +# help +# Bootst regexp library. +# +# config BOOST_IOSTREAMS +# bool +# depends on BOOST +# prompt "iostreams" +# help +# Bootst regexp library. +# +# config BOOST_TEST +# bool +# depends on BOOST +# prompt "test" +# help +# Bootst test library. +# +# config BOOST_PROGRAM_OPTIONS +# bool +# depends on BOOST +# prompt "program options" +# help +# Bootst regexp library. +# +# config BOOST_GRAPH +# bool +# depends on BOOST +# prompt "graph" +# help +# Bootst regexp library. +# diff --git a/rules/boost.make b/rules/boost.make new file mode 100644 index 000000000..f53e6ecdf --- /dev/null +++ b/rules/boost.make @@ -0,0 +1,183 @@ +# -*-makefile-*- +# $Id: template 5041 2006-03-09 08:45:49Z mkl $ +# +# Copyright (C) 2006 by Robert Schwebel +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_BOOST) += boost + +# +# Paths and names +# +BOOST_VERSION := 1_33_1 +BOOST := boost_$(BOOST_VERSION) +BOOST_SUFFIX := tar.bz2 +BOOST_URL := $(PTXCONF_SETUP_SFMIRROR)/boost/$(BOOST).$(BOOST_SUFFIX) +BOOST_SOURCE := $(SRCDIR)/$(BOOST).$(BOOST_SUFFIX) +BOOST_DIR := $(BUILDDIR)/$(BOOST) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +boost_get: $(STATEDIR)/boost.get + +$(STATEDIR)/boost.get: $(boost_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(BOOST_SOURCE): + @$(call targetinfo, $@) + @$(call get, BOOST) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +boost_extract: $(STATEDIR)/boost.extract + +$(STATEDIR)/boost.extract: $(boost_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(BOOST_DIR)) + @$(call extract, BOOST) + @$(call patchin, BOOST) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +boost_prepare: $(STATEDIR)/boost.prepare + +BOOST_PATH := PATH=$(CROSS_PATH) +BOOST_ENV := $(CROSS_ENV) + +# they reinvent their own wheel^Hmake: jam +# -q: quit on error +# -d: debug level, default=1 + +BOOST_JAM := \ + $(BOOST_DIR)/tools/build/jam_src/bjam \ + -q \ + -d 1 \ + -sTOOLS=gcc \ + -sGCC=$(COMPILER_PREFIX)gcc \ + -sGXX=$(COMPILER_PREFIX)g++ \ + -sOBJCOPY=$(COMPILER_PREFIX)objcopy + +$(STATEDIR)/boost.prepare: $(boost_prepare_deps_default) + @$(call targetinfo, $@) + cd $(BOOST_DIR)/tools/build/jam_src && \ + sh build.sh gcc && mv bin.*/bjam . + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +boost_compile: $(STATEDIR)/boost.compile + +$(STATEDIR)/boost.compile: $(boost_compile_deps_default) + @$(call targetinfo, $@) + +ifdef PTXCONF_BOOST_FILESYSTEM + cd $(BOOST_DIR)/libs/filesystem/build && $(BOOST_JAM) +endif +ifdef PTXCONF_BOOST_REGEX + cd $(BOOST_DIR)/libs/regex/build && $(BOOST_JAM) +endif +ifdef PTXCONF_BOOST_THREAD + cd $(BOOST_DIR)/libs/thread/build && $(BOOST_JAM) +endif + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +boost_install: $(STATEDIR)/boost.install + +$(STATEDIR)/boost.install: $(boost_install_deps_default) + @$(call targetinfo, $@) + mkdir -p $(SYSROOT)/usr/include/boost/ +ifdef PTXCONF_BOOST_FILESYSTEM +endif +ifdef PTXCONF_BOOST_REGEX + cp -a \ + $(BOOST_DIR)/bin/boost/libs/regex/build/libboost_regex.so/gcc/release/shared-linkable-true/libboost_regex-gcc-1_33_1.so \ + $(SYSROOT)/usr/lib/ + cp -a $(BOOST_DIR)/boost/regex/ $(BOOST_DIR)/boost/regex.hpp $(SYSROOT)/usr/include/boost/ +endif +ifdef PTXCONF_BOOST_THREAD + cp -a $(BOOST_DIR)/libs/thread/build/bin-stage/libboost_thread* $(SYSROOT)/usr/lib/ + cp -a $(BOOST_DIR)/boost/thread/ $(BOOST_DIR)/boost/thread.hpp $(SYSROOT)/usr/include/boost/ +endif + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +boost_targetinstall: $(STATEDIR)/boost.targetinstall + +$(STATEDIR)/boost.targetinstall: $(boost_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, boost) + @$(call install_fixup,boost,PACKAGE,boost) + @$(call install_fixup,boost,PRIORITY,optional) + @$(call install_fixup,boost,VERSION,$(BOOST_VERSION)) + @$(call install_fixup,boost,SECTION,base) + @$(call install_fixup,boost,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup,boost,DEPENDS,) + @$(call install_fixup,boost,DESCRIPTION,missing) + +ifdef PTXCONF_BOOST_FILESYSTEM + @$(call install_copy, boost, 0, 0, 0644, \ + $(BOOST_DIR)/stage/lib/libboost_filesystem-gcc-d-1_33_1.so.1.33.1, \ + /usr/lib/libboost_filesystem-gcc-d-1_33_1.so.1.33.1) + @$(call install_link, boost, \ + libboost_filesystem-gcc-d-1_33_1.so.1.33.1, \ + /usr/lib/libboost_filesystem-gcc-d-1_33_1.so) +endif + +ifdef PTXCONF_BOOST_REGEX + @$(call install_copy, boost, 0, 0, 0644, \ + $(BOOST_DIR)/stage/lib/libboost_regex-gcc-d-1_33_1.so.1.33.1, \ + /usr/lib/libboost_regex-gcc-d-1_33_1.so.1.33.1) + @$(call install_link, boost, \ + libboost_regex-gcc-d-1_33_1.so.1.33.1, \ + /usr/lib/libboost_regex-gcc-d-1_33_1.so) +endif + +ifdef PTXCONF_BOOST_THREAD + @$(call install_copy, boost, 0, 0, 0644, \ + $(BOOST_DIR)/libs/thread/build/bin-stage/libboost_thread-gcc-mt-d-1_33_1.so.1.33.1, \ + /usr/lib/libboost_thread-gcc-mt-d-1_33_1.so.1.33.1) + @$(call install_link, boost, \ + libboost_thread-gcc-mt-d-1_33_1.so.1.33.1, \ + /usr/lib/libboost_thread-gcc-mt-d-1_33_1.so) +endif + + @$(call install_finish,boost) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +boost_clean: + rm -rf $(STATEDIR)/boost.* + rm -rf $(IMAGEDIR)/boost_* + rm -rf $(BOOST_DIR) + +# vim: syntax=make |