summaryrefslogtreecommitdiffstats
path: root/rules/bonniexx.make
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2005-03-15 12:44:48 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2005-03-15 12:44:48 +0000
commitfab5f754854534475a98ef7aeda8d928e521706d (patch)
tree1d183530d5f7a364000b94ca1e2b70365afb9cc3 /rules/bonniexx.make
parent168745849e94c4274bf1aaf8b54ae122e8c8c35a (diff)
downloadptxdist-fab5f754854534475a98ef7aeda8d928e521706d.tar.gz
ptxdist-fab5f754854534475a98ef7aeda8d928e521706d.tar.xz
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2342 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/bonniexx.make')
-rw-r--r--rules/bonniexx.make138
1 files changed, 138 insertions, 0 deletions
diff --git a/rules/bonniexx.make b/rules/bonniexx.make
new file mode 100644
index 000000000..24e214c15
--- /dev/null
+++ b/rules/bonniexx.make
@@ -0,0 +1,138 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2004 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
+#
+ifdef PTXCONF_BONNIEXX
+PACKAGES += bonniexx
+endif
+
+#
+# Paths and names
+#
+BONNIEXX_VERSION = 1.03a
+BONNIEXX = bonniexx-$(BONNIEXX_VERSION)
+BONNIEXX_SUFFIX = tgz
+BONNIEXX_URL = http://www.coker.com.au/bonniexx/$(BONNIEXX).$(BONNIEXX_SUFFIX)
+BONNIEXX_SOURCE = $(SRCDIR)/$(BONNIEXX).$(BONNIEXX_SUFFIX)
+BONNIEXX_DIR = $(BUILDDIR)/$(BONNIEXX)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+bonniexx_get: $(STATEDIR)/bonniexx.get
+
+bonniexx_get_deps = $(BONNIEXX_SOURCE)
+
+$(STATEDIR)/bonniexx.get: $(bonniexx_get_deps)
+ @$(call targetinfo, $@)
+ @$(call get_patches, $(BONNIEXX))
+ touch $@
+
+$(BONNIEXX_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, $(BONNIEXX_URL))
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+bonniexx_extract: $(STATEDIR)/bonniexx.extract
+
+bonniexx_extract_deps = $(STATEDIR)/bonniexx.get
+
+$(STATEDIR)/bonniexx.extract: $(bonniexx_extract_deps)
+ @$(call targetinfo, $@)
+ @$(call clean, $(BONNIEXX_DIR))
+ @$(call extract, $(BONNIEXX_SOURCE))
+ @$(call patchin, $(BONNIEXX))
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+bonniexx_prepare: $(STATEDIR)/bonniexx.prepare
+
+#
+# dependencies
+#
+bonniexx_prepare_deps = \
+ $(STATEDIR)/bonniexx.extract \
+ $(STATEDIR)/virtual-xchain.install
+
+BONNIEXX_PATH = PATH=$(CROSS_PATH)
+BONNIEXX_ENV = $(CROSS_ENV)
+#BONNIEXX_ENV += PKG_CONFIG_PATH=$(CROSS_LIB_DIR)/lib/pkgconfig
+#BONNIEXX_ENV +=
+
+#
+# autoconf
+#
+BONNIEXX_AUTOCONF = $(CROSS_AUTOCONF)
+BONNIEXX_AUTOCONF += --prefix=$(CROSS_LIB_DIR)
+
+$(STATEDIR)/bonniexx.prepare: $(bonniexx_prepare_deps)
+ @$(call targetinfo, $@)
+ @$(call clean, $(BONNIEXX_DIR)/config.cache)
+ cd $(BONNIEXX_DIR) && \
+ $(BONNIEXX_PATH) $(BONNIEXX_ENV) \
+ ./configure $(BONNIEXX_AUTOCONF)
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+bonniexx_compile: $(STATEDIR)/bonniexx.compile
+
+bonniexx_compile_deps = $(STATEDIR)/bonniexx.prepare
+
+$(STATEDIR)/bonniexx.compile: $(bonniexx_compile_deps)
+ @$(call targetinfo, $@)
+ cd $(BONNIEXX_DIR) && $(BONNIEXX_ENV) $(BONNIEXX_PATH) make
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+bonniexx_install: $(STATEDIR)/bonniexx.install
+
+$(STATEDIR)/bonniexx.install: $(STATEDIR)/bonniexx.compile
+ @$(call targetinfo, $@)
+ cd $(BONNIEXX_DIR) && $(BONNIEXX_ENV) $(BONNIEXX_PATH) make install
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+bonniexx_targetinstall: $(STATEDIR)/bonniexx.targetinstall
+
+bonniexx_targetinstall_deps = $(STATEDIR)/bonniexx.compile
+
+$(STATEDIR)/bonniexx.targetinstall: $(bonniexx_targetinstall_deps)
+ @$(call targetinfo, $@)
+ $(call copy_root, 0, 0, 0644, $(BONNIEXX_DIR)/bonniexx,/usr/bin/bonniexx)
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+bonniexx_clean:
+ rm -rf $(STATEDIR)/bonniexx.*
+ rm -rf $(BONNIEXX_DIR)
+
+# vim: syntax=make