diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-16 15:30:17 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-16 15:30:17 +0000 |
commit | 7329881cc11d20106c2333a73ee319a1b59d5e65 (patch) | |
tree | e3bc3b0741d7ea1a7ddace48f6166508a8de12f2 /rules/host-ipkg-utils.make | |
parent | eb7322cc2ae8f09edc8bf1bc5955cdfde48224df (diff) | |
download | ptxdist-7329881cc11d20106c2333a73ee319a1b59d5e65.tar.gz ptxdist-7329881cc11d20106c2333a73ee319a1b59d5e65.tar.xz |
moved hosttool-s to host-s
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2962 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-ipkg-utils.make')
-rw-r--r-- | rules/host-ipkg-utils.make | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/rules/host-ipkg-utils.make b/rules/host-ipkg-utils.make new file mode 100644 index 000000000..00130da64 --- /dev/null +++ b/rules/host-ipkg-utils.make @@ -0,0 +1,134 @@ +# -*-makefile-*- +# $Id: template 2224 2005-01-20 15:19:18Z rsc $ +# +# Copyright (C) 2005 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_HOSTTOOL_IPKG_UTILS +HOST_PACKAGES += hosttool-ipkg-utils +endif + +# +# Paths and names +# +HOSTTOOL-IPKG-UTILS_VERSION = 1.7 +HOSTTOOL-IPKG-UTILS = ipkg-utils-$(HOSTTOOL-IPKG-UTILS_VERSION) +HOSTTOOL-IPKG-UTILS_SUFFIX = tar.gz +HOSTTOOL-IPKG-UTILS_URL = ftp://ftp.handhelds.org/packages/ipkg-utils/$(HOSTTOOL-IPKG-UTILS).$(HOSTTOOL-IPKG-UTILS_SUFFIX) +HOSTTOOL-IPKG-UTILS_SOURCE = $(SRCDIR)/$(HOSTTOOL-IPKG-UTILS).$(HOSTTOOL-IPKG-UTILS_SUFFIX) +HOSTTOOL-IPKG-UTILS_DIR = $(HOST_BUILDDIR)/$(HOSTTOOL-IPKG-UTILS) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +hosttool-ipkg-utils_get: $(STATEDIR)/hosttool-ipkg-utils.get + +hosttool-ipkg-utils_get_deps = $(HOSTTOOL-IPKG-UTILS_SOURCE) + +$(STATEDIR)/hosttool-ipkg-utils.get: $(hosttool-ipkg-utils_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(HOSTTOOL-IPKG-UTILS)) + touch $@ + +$(HOSTTOOL-IPKG-UTILS_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(HOSTTOOL-IPKG-UTILS_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +hosttool-ipkg-utils_extract: $(STATEDIR)/hosttool-ipkg-utils.extract + +hosttool-ipkg-utils_extract_deps = $(STATEDIR)/hosttool-ipkg-utils.get + +$(STATEDIR)/hosttool-ipkg-utils.extract: $(hosttool-ipkg-utils_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(HOSTTOOL-IPKG-UTILS_DIR)) + @$(call extract, $(HOSTTOOL-IPKG-UTILS_SOURCE), $(HOST_BUILDDIR)) + @$(call patchin, $(HOSTTOOL-IPKG-UTILS)) + perl -i -p -e "s,^PREFIX=(.*),PREFIX=$(PTXCONF_PREFIX),g" \ + $(HOSTTOOL-IPKG-UTILS_DIR)/Makefile + perl -i -p -e "s,^ python setup.py install, python setup.py install --prefix=$(PTXCONF_PREFIX),g" \ + $(HOSTTOOL-IPKG-UTILS_DIR)/Makefile + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +hosttool-ipkg-utils_prepare: $(STATEDIR)/hosttool-ipkg-utils.prepare + +# +# dependencies +# +hosttool-ipkg-utils_prepare_deps = \ + $(STATEDIR)/hosttool-ipkg-utils.extract + +HOSTTOOL-IPKG-UTILS_PATH = PATH=$(CROSS_PATH) +HOSTTOOL-IPKG-UTILS_ENV = $(CROSS_ENV) + +$(STATEDIR)/hosttool-ipkg-utils.prepare: $(hosttool-ipkg-utils_prepare_deps) + @$(call targetinfo, $@) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +hosttool-ipkg-utils_compile: $(STATEDIR)/hosttool-ipkg-utils.compile + +hosttool-ipkg-utils_compile_deps = $(STATEDIR)/hosttool-ipkg-utils.prepare + +$(STATEDIR)/hosttool-ipkg-utils.compile: $(hosttool-ipkg-utils_compile_deps) + @$(call targetinfo, $@) + cd $(HOSTTOOL-IPKG-UTILS_DIR) && $(HOSTTOOL-IPKG-UTILS_ENV) $(HOSTTOOL-IPKG-UTILS_PATH) make + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +hosttool-ipkg-utils_install: $(STATEDIR)/hosttool-ipkg-utils.install + +$(STATEDIR)/hosttool-ipkg-utils.install: $(STATEDIR)/hosttool-ipkg-utils.compile + @$(call targetinfo, $@) + mkdir -p $(PTXCONF_PREFIX)/bin + # ipkg.py is forgotten by make install, so we copy it manually + # FIXME: this should probably be fixed upstream + cd $(HOSTTOOL-IPKG-UTILS_DIR) && (\ + $(HOSTTOOL-IPKG-UTILS_ENV) $(HOSTTOOL-IPKG-UTILS_PATH) make install;\ + cp -f ipkg.py $(PTXCONF_PREFIX)/bin/;\ + ) + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +hosttool-ipkg-utils_targetinstall: $(STATEDIR)/hosttool-ipkg-utils.targetinstall + +hosttool-ipkg-utils_targetinstall_deps = $(STATEDIR)/hosttool-ipkg-utils.install + +$(STATEDIR)/hosttool-ipkg-utils.targetinstall: $(hosttool-ipkg-utils_targetinstall_deps) + @$(call targetinfo, $@) + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +hosttool-ipkg-utils_clean: + rm -rf $(STATEDIR)/hosttool-ipkg-utils.* + rm -rf $(HOSTTOOL-IPKG-UTILS_DIR) + +# vim: syntax=make |