summaryrefslogtreecommitdiffstats
path: root/rules/boost.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2006-04-03 17:38:54 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2006-04-03 17:38:54 +0000
commita3d7bd04821f4a8c8b8c7cc94304cae012fcd5fe (patch)
tree9a1ecb885f90cd94ebd3f6cb732c08bcea08cbe0 /rules/boost.make
parent74e93def041d39f4db7d2a95c8452067bc251246 (diff)
downloadptxdist-a3d7bd04821f4a8c8b8c7cc94304cae012fcd5fe.tar.gz
ptxdist-a3d7bd04821f4a8c8b8c7cc94304cae012fcd5fe.tar.xz
added boost
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@5338 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/boost.make')
-rw-r--r--rules/boost.make133
1 files changed, 133 insertions, 0 deletions
diff --git a/rules/boost.make b/rules/boost.make
new file mode 100644
index 000000000..793719c33
--- /dev/null
+++ b/rules/boost.make
@@ -0,0 +1,133 @@
+# -*-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_SFMIRROR)/boost/$(BOOST).$(BOOST_SUFFIX)
+BOOST_SOURCE := $(SRCDIR)/$(BOOST).$(BOOST_SUFFIX)
+BOOST_DIR := $(BUILDDIR)/$(BOOST)
+
+-include $(call package_depfile)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+boost_get: $(STATEDIR)/boost.get
+
+$(STATEDIR)/boost.get: $(boost_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(BOOST_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, $(BOOST_URL))
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+boost_extract: $(STATEDIR)/boost.extract
+
+$(STATEDIR)/boost.extract: $(boost_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(BOOST_DIR))
+ @$(call extract, $(BOOST_SOURCE))
+ @$(call patchin, $(BOOST))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+boost_prepare: $(STATEDIR)/boost.prepare
+
+BOOST_PATH := PATH=$(CROSS_PATH)
+BOOST_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+BOOST_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/boost.prepare: $(boost_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(BOOST_DIR)/config.cache)
+ cd $(BOOST_DIR) && \
+ $(BOOST_PATH) $(BOOST_ENV) \
+ ./configure $(BOOST_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+boost_compile: $(STATEDIR)/boost.compile
+
+$(STATEDIR)/boost.compile: $(boost_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(BOOST_DIR) && $(BOOST_PATH) make
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+boost_install: $(STATEDIR)/boost.install
+
+$(STATEDIR)/boost.install: $(boost_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call install, BOOST)
+ @$(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)
+
+ @$(call install_copy, boost, 0, 0, 0755, $(BOOST_DIR)/foobar, /dev/null)
+
+ @$(call install_finish,boost)
+
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+boost_clean:
+ rm -rf $(STATEDIR)/boost.*
+ rm -rf $(IMAGEDIR)/boost_*
+ rm -rf $(BOOST_DIR)
+
+# vim: syntax=make