summaryrefslogtreecommitdiffstats
path: root/rules/ltt-control.make
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-26 16:31:22 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2007-07-26 16:31:22 +0000
commit6fbe637e252558a41bd60e06912f715039a67b69 (patch)
treeff39e5925e8e9245ea08e8d85e4d093301b89b5a /rules/ltt-control.make
parentd30929af0f3d3628915a6863c435e28eea5f4f71 (diff)
downloadptxdist-6fbe637e252558a41bd60e06912f715039a67b69.tar.gz
ptxdist-6fbe637e252558a41bd60e06912f715039a67b69.tar.xz
add ltt-control utility
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7249 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/ltt-control.make')
-rw-r--r--rules/ltt-control.make142
1 files changed, 142 insertions, 0 deletions
diff --git a/rules/ltt-control.make b/rules/ltt-control.make
new file mode 100644
index 000000000..f6997a853
--- /dev/null
+++ b/rules/ltt-control.make
@@ -0,0 +1,142 @@
+# -*-makefile-*-
+# $Id: template 6655 2007-01-02 12:55:21Z rsc $
+#
+# Copyright (C) 2007 by Sascha Hauer
+#
+# 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_LTT_CONTROL) += ltt-control
+
+#
+# Paths and names
+#
+LTT_CONTROL_VERSION := 0.42-16072007
+LTT_CONTROL := ltt-control-$(LTT_CONTROL_VERSION)
+LTT_CONTROL_SUFFIX := tar.gz
+LTT_CONTROL_URL := http://ltt.polymtl.ca/lttng/$(LTT_CONTROL).$(LTT_CONTROL_SUFFIX)
+LTT_CONTROL_SOURCE := $(SRCDIR)/$(LTT_CONTROL).$(LTT_CONTROL_SUFFIX)
+LTT_CONTROL_DIR := $(BUILDDIR)/$(LTT_CONTROL)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+ltt-control_get: $(STATEDIR)/ltt-control.get
+
+$(STATEDIR)/ltt-control.get: $(ltt-control_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(LTT_CONTROL_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, LTT_CONTROL)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+ltt-control_extract: $(STATEDIR)/ltt-control.extract
+
+$(STATEDIR)/ltt-control.extract: $(ltt-control_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(LTT_CONTROL_DIR))
+ @$(call extract, LTT_CONTROL)
+ @$(call patchin, LTT_CONTROL)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+ltt-control_prepare: $(STATEDIR)/ltt-control.prepare
+
+LTT_CONTROL_PATH := PATH=$(CROSS_PATH)
+LTT_CONTROL_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+LTT_CONTROL_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/ltt-control.prepare: $(ltt-control_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(LTT_CONTROL_DIR)/config.cache)
+ cd $(LTT_CONTROL_DIR) && \
+ $(LTT_CONTROL_PATH) $(LTT_CONTROL_ENV) \
+ ./configure $(LTT_CONTROL_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+ltt-control_compile: $(STATEDIR)/ltt-control.compile
+
+$(STATEDIR)/ltt-control.compile: $(ltt-control_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(LTT_CONTROL_DIR) && $(LTT_CONTROL_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+ltt-control_install: $(STATEDIR)/ltt-control.install
+
+$(STATEDIR)/ltt-control.install: $(ltt-control_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call install, LTT_CONTROL)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+ltt-control_targetinstall: $(STATEDIR)/ltt-control.targetinstall
+
+$(STATEDIR)/ltt-control.targetinstall: $(ltt-control_targetinstall_deps_default)
+ @$(call targetinfo, $@)
+
+ @$(call install_init, ltt-control)
+ @$(call install_fixup, ltt-control,PACKAGE,ltt-control)
+ @$(call install_fixup, ltt-control,PRIORITY,optional)
+ @$(call install_fixup, ltt-control,VERSION,$(LTT_CONTROL_VERSION))
+ @$(call install_fixup, ltt-control,SECTION,base)
+ @$(call install_fixup, ltt-control,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
+ @$(call install_fixup, ltt-control,DEPENDS,)
+ @$(call install_fixup, ltt-control,DESCRIPTION,missing)
+
+ @$(call install_copy, ltt-control, 0, 0, 0755, $(LTT_CONTROL_DIR)/lttctl/.libs/lttctl, /usr/bin/lttctl)
+ @$(call install_copy, ltt-control, 0, 0, 0755, $(LTT_CONTROL_DIR)/lttd/lttd, /usr/bin/lttd)
+
+ @$(call install_copy, ltt-control, 0, 0, 0644, \
+ $(LTT_CONTROL_DIR)/liblttctl/.libs/liblttctl.so.0.0.0, \
+ /usr/lib/liblttctl.so.0.0.0)
+ @$(call install_link, ltt-control, liblttctl.so.0.0.0, /usr/lib/liblttctl.so)
+ @$(call install_link, ltt-control, liblttctl.so.0.0.0, /usr/lib/liblttctl.so.0)
+
+ @for i in $(LTT_CONTROL_DIR)/facilities/*; do \
+ $(call install_copy, ltt-control, 0, 0, 0644, $$i, /usr/share/ltt-control/facilities/$$(basename $$i), 0); \
+ done
+
+ @$(call install_finish, ltt-control)
+
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+ltt-control_clean:
+ rm -rf $(STATEDIR)/ltt-control.*
+ rm -rf $(IMAGEDIR)/ltt-control_*
+ rm -rf $(LTT_CONTROL_DIR)
+
+# vim: syntax=make