summaryrefslogtreecommitdiffstats
path: root/rules/attr.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2008-05-18 14:41:42 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2008-05-18 14:41:42 +0000
commitd632b744fb10f6928a661ccdbb403112d46f8a04 (patch)
treeee07fd611aaa8c0e7298d8b715509463529670e2 /rules/attr.make
parentefc9f590e15424b5076a1b9679e22cd126599b95 (diff)
downloadptxdist-d632b744fb10f6928a661ccdbb403112d46f8a04.tar.gz
ptxdist-d632b744fb10f6928a661ccdbb403112d46f8a04.tar.xz
* attr: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8174 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/attr.make')
-rw-r--r--rules/attr.make137
1 files changed, 137 insertions, 0 deletions
diff --git a/rules/attr.make b/rules/attr.make
new file mode 100644
index 000000000..e71faa746
--- /dev/null
+++ b/rules/attr.make
@@ -0,0 +1,137 @@
+# -*-makefile-*-
+# $Id: template-make 7626 2007-11-26 10:27:03Z mkl $
+#
+# Copyright (C) 2008 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_ATTR) += attr
+
+#
+# Paths and names
+#
+ATTR_VERSION := 2.4.41
+ATTR := attr-$(ATTR_VERSION)
+ATTR_SUFFIX := tar.gz
+ATTR_URL := ftp://oss.sgi.com/projects/xfs/cmd_tars/attr_$(ATTR_VERSION)-1.$(ATTR_SUFFIX)
+ATTR_SOURCE := $(SRCDIR)/attr_$(ATTR_VERSION)-1.$(ATTR_SUFFIX)
+ATTR_DIR := $(BUILDDIR)/$(ATTR)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+attr_get: $(STATEDIR)/attr.get
+
+$(STATEDIR)/attr.get: $(attr_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(ATTR_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, ATTR)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+attr_extract: $(STATEDIR)/attr.extract
+
+$(STATEDIR)/attr.extract: $(attr_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(ATTR_DIR))
+ @$(call extract, ATTR)
+ @$(call patchin, ATTR)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+attr_prepare: $(STATEDIR)/attr.prepare
+
+ATTR_PATH := PATH=$(CROSS_PATH)
+ATTR_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+ATTR_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+ifdef PTXCONF_ATTR_GETTEXT
+ATTR_AUTOCONF += --enable-gettext
+else
+ATTR_AUTOCONF += --disable-gettext
+endif
+
+$(STATEDIR)/attr.prepare: $(attr_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(ATTR_DIR)/config.cache)
+ cd $(ATTR_DIR) && \
+ $(ATTR_PATH) $(ATTR_ENV) \
+ ./configure $(ATTR_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+attr_compile: $(STATEDIR)/attr.compile
+
+$(STATEDIR)/attr.compile: $(attr_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(ATTR_DIR) && $(ATTR_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+attr_install: $(STATEDIR)/attr.install
+
+$(STATEDIR)/attr.install: $(attr_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call install, ATTR)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+attr_targetinstall: $(STATEDIR)/attr.targetinstall
+
+$(STATEDIR)/attr.targetinstall: $(attr_targetinstall_deps_default)
+ @$(call targetinfo, $@)
+
+ @$(call install_init, attr)
+ @$(call install_fixup, attr,PACKAGE,attr)
+ @$(call install_fixup, attr,PRIORITY,optional)
+ @$(call install_fixup, attr,VERSION,$(ATTR_VERSION))
+ @$(call install_fixup, attr,SECTION,base)
+ @$(call install_fixup, attr,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
+ @$(call install_fixup, attr,DEPENDS,)
+ @$(call install_fixup, attr,DESCRIPTION,missing)
+
+ @$(call install_copy, attr, 0, 0, 0755, $(ATTR_DIR)/foobar, /dev/null)
+
+ @$(call install_finish, attr)
+
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+attr_clean:
+ rm -rf $(STATEDIR)/attr.*
+ rm -rf $(IMAGEDIR)/attr_*
+ rm -rf $(ATTR_DIR)
+
+# vim: syntax=make