diff options
author | Benedikt Spranger <b.spranger@pengutronix.de> | 2004-09-15 16:58:19 +0000 |
---|---|---|
committer | Benedikt Spranger <b.spranger@pengutronix.de> | 2004-09-15 16:58:19 +0000 |
commit | 6d8946bdb6ac2464dac861ea99ed653e0b2b6a30 (patch) | |
tree | 6ae56c38dac140f19453af9b67e48520dda2c8c5 /rules/hexedit.make | |
parent | 314e2d981805f05d3501313e745139faeef260ce (diff) | |
download | ptxdist-6d8946bdb6ac2464dac861ea99ed653e0b2b6a30.tar.gz ptxdist-6d8946bdb6ac2464dac861ea99ed653e0b2b6a30.tar.xz |
BSP: hexedit added, some typos fixed.
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.5.2-trunk@1733 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/hexedit.make')
-rw-r--r-- | rules/hexedit.make | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/rules/hexedit.make b/rules/hexedit.make new file mode 100644 index 000000000..3bef8d10a --- /dev/null +++ b/rules/hexedit.make @@ -0,0 +1,143 @@ +# -*-makefile-*- +# $Id: template,v 1.14 2004/07/01 16:08:08 rsc Exp $ +# +# Copyright (C) 2004 by BSP +# +# 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_HEXEDIT +PACKAGES += hexedit +endif + +# +# Paths and names +# +HEXEDIT_VERSION = 1.2.10 +HEXEDIT = hexedit-$(HEXEDIT_VERSION) +HEXEDIT_SUFFIX = src.tgz +HEXEDIT_URL = http://merd.net/pixel/$(HEXEDIT).$(HEXEDIT_SUFFIX) +HEXEDIT_SOURCE = $(SRCDIR)/$(HEXEDIT).$(HEXEDIT_SUFFIX) +HEXEDIT_DIR = $(BUILDDIR)/$(HEXEDIT) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +hexedit_get: $(STATEDIR)/hexedit.get + +hexedit_get_deps = $(HEXEDIT_SOURCE) + +$(STATEDIR)/hexedit.get: $(hexedit_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(HEXEDIT)) + touch $@ + +$(HEXEDIT_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(HEXEDIT_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +hexedit_extract: $(STATEDIR)/hexedit.extract + +hexedit_extract_deps = $(STATEDIR)/hexedit.get + +$(STATEDIR)/hexedit.extract: $(hexedit_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(HEXEDIT_DIR)) + @$(call extract, $(HEXEDIT_SOURCE)) + mv $(BUILDDIR)/hexedit $(HEXEDIT_DIR) + @$(call patchin, $(HEXEDIT)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +hexedit_prepare: $(STATEDIR)/hexedit.prepare + +# +# dependencies +# +hexedit_prepare_deps = \ + $(STATEDIR)/hexedit.extract \ + $(STATEDIR)/virtual-xchain.install \ + $(STATEDIR)/ncurses.install + +HEXEDIT_PATH = PATH=$(CROSS_PATH) +HEXEDIT_ENV = $(CROSS_ENV) +#HEXEDIT_ENV += PKG_CONFIG_PATH=$(CROSS_LIB_DIR)/lib/pkgconfig +#HEXEDIT_ENV += + +# +# autoconf +# +HEXEDIT_AUTOCONF = \ + --build=$(GNU_HOST) \ + --host=$(PTXCONF_GNU_TARGET) \ + --prefix=$(CROSS_LIB_DIR) + +$(STATEDIR)/hexedit.prepare: $(hexedit_prepare_deps) + @$(call targetinfo, $@) + @$(call clean, $(HEXEDIT_DIR)/config.cache) + cd $(HEXEDIT_DIR) && \ + $(HEXEDIT_PATH) $(HEXEDIT_ENV) \ + ./configure $(HEXEDIT_AUTOCONF) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +hexedit_compile: $(STATEDIR)/hexedit.compile + +hexedit_compile_deps = $(STATEDIR)/hexedit.prepare + +$(STATEDIR)/hexedit.compile: $(hexedit_compile_deps) + @$(call targetinfo, $@) + cd $(HEXEDIT_DIR) && $(HEXEDIT_ENV) $(HEXEDIT_PATH) make + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +hexedit_install: $(STATEDIR)/hexedit.install + +$(STATEDIR)/hexedit.install: $(STATEDIR)/hexedit.compile + @$(call targetinfo, $@) + install -d $(ROOTDIR)/usr/bin + install $(HEXEDIT_DIR)/hexedit $(ROOTDIR)/usr/bin + $(CROSS_STRIP) -R .note -R .comment $(ROOTDIR)/usr/bin/hexedit + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +hexedit_targetinstall: $(STATEDIR)/hexedit.targetinstall + +hexedit_targetinstall_deps = $(STATEDIR)/hexedit.compile + +$(STATEDIR)/hexedit.targetinstall: $(hexedit_targetinstall_deps) + @$(call targetinfo, $@) + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +hexedit_clean: + rm -rf $(STATEDIR)/hexedit.* + rm -rf $(HEXEDIT_DIR) + +# vim: syntax=make |