summaryrefslogtreecommitdiffstats
path: root/rules/host-genext2fs.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2006-01-31 07:24:51 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2006-01-31 07:24:51 +0000
commit952599c6fc4962a9687d7cbeecaf3935a7097521 (patch)
treee2ce3164eba8a0452bcc512336a5992584cd78ed /rules/host-genext2fs.make
parentd957257ad797d4b1ba2a91231be57bb045e1c8a7 (diff)
downloadptxdist-952599c6fc4962a9687d7cbeecaf3935a7097521.tar.gz
ptxdist-952599c6fc4962a9687d7cbeecaf3935a7097521.tar.xz
update to 1.4pre; patch by Randall Loomis
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.9-trunk@4465 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-genext2fs.make')
-rw-r--r--rules/host-genext2fs.make50
1 files changed, 23 insertions, 27 deletions
diff --git a/rules/host-genext2fs.make b/rules/host-genext2fs.make
index 69ecb64a7..2d5e75416 100644
--- a/rules/host-genext2fs.make
+++ b/rules/host-genext2fs.make
@@ -1,9 +1,10 @@
# -*-makefile-*-
# $Id$
#
+# Copyright (C) 2006 by Randall Loomis
# Copyright (C) 2003 by Ixia Corporation (www.ixiacom.com)
-#
-# See CREDITS for details about who has contributed to this project.
+#
+# 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.
@@ -15,14 +16,13 @@
HOST_PACKAGES-$(PTXCONF_HOST_GENEXT2FS) += host-genext2fs
#
-# Paths and names
+# Paths and names
#
-HOST_GENEXT2FS_VERSION = 1.3.orig
+HOST_GENEXT2FS_VERSION = 1.4rc1
HOST_GENEXT2FS = genext2fs-$(HOST_GENEXT2FS_VERSION)
-HOST_GENEXT2FS_TARBALL = genext2fs_$(HOST_GENEXT2FS_VERSION).$(HOST_GENEXT2FS_SUFFIX)
HOST_GENEXT2FS_SUFFIX = tar.gz
-HOST_GENEXT2FS_URL = $(PTXCONF_SETUP_DEBMIRROR)/pool/main/g/genext2fs/$(HOST_GENEXT2FS_TARBALL)
-HOST_GENEXT2FS_SOURCE = $(SRCDIR)/$(HOST_GENEXT2FS_TARBALL)
+HOST_GENEXT2FS_URL = $(PTXCONF_SETUP_SFMIRROR)/genext2fs/$(HOSTTOOL_GENEXT2FS).$(HOSTTOOL_GENEXT2FS_SUFFIX)
+HOST_GENEXT2FS_SOURCE = $(SRCDIR)/$(HOST_GENEXT2FS).$(HOST_GENEXT2FS_SUFFIX)
HOST_GENEXT2FS_DIR = $(HOST_BUILDDIR)/$(HOST_GENEXT2FS)
-include $(call package_depfile)
@@ -35,7 +35,6 @@ host-genext2fs_get: $(STATEDIR)/host-genext2fs.get
$(STATEDIR)/host-genext2fs.get: $(host-genext2fs_get_deps_default)
@$(call targetinfo, $@)
- @$(call get_patches, $(HOST_GENEXT2FS))
@$(call touch, $@)
$(HOST_GENEXT2FS_SOURCE):
@@ -61,10 +60,20 @@ $(STATEDIR)/host-genext2fs.extract: $(host-genext2fs_extract_deps_default)
host-genext2fs_prepare: $(STATEDIR)/host-genext2fs.prepare
-HOST_GENEXT2FS_ENV = $(HOSTCC_ENV)
+HOST_GENEXT2FS_PATH = PATH=$(HOST_PATH)
+HOST_GENEXT2FS_ENV = $(HOSTCC_ENV)
+
+#
+# autoconf
+#
+HOST_GENEXT2FS_AUTOCONF = $(HOST_AUTOCONF)
$(STATEDIR)/host-genext2fs.prepare: $(host-genext2fs_prepare_deps_default)
@$(call targetinfo, $@)
+ @$(call clean, $(HOST_GENEXT2FS_DIR)/config.cache)
+ cd $(HOST_GENEXT2FS_DIR) && \
+ $(HOST_GENEXT2FS_PATH) $(HOST_GENEXT2FS_ENV) \
+ ./configure $(HOST_GENEXT2FS_AUTOCONF)
@$(call touch, $@)
# ----------------------------------------------------------------------------
@@ -75,7 +84,7 @@ host-genext2fs_compile: $(STATEDIR)/host-genext2fs.compile
$(STATEDIR)/host-genext2fs.compile: $(host-genext2fs_compile_deps_default)
@$(call targetinfo, $@)
- cd $(HOST_GENEXT2FS_DIR) && make $(HOST_GENEXT2FS_ENV)
+ cd $(HOST_GENEXT2FS_DIR) && $(HOST_GENEXT2FS_ENV) $(HOST_GENEXT2FS_PATH) make
@$(call touch, $@)
# ----------------------------------------------------------------------------
@@ -86,28 +95,15 @@ host-genext2fs_install: $(STATEDIR)/host-genext2fs.install
$(STATEDIR)/host-genext2fs.install: $(host-genext2fs_install_deps_default)
@$(call targetinfo, $@)
- install -d $(PTXCONF_HOST_PREFIX)/usr/bin/
- install -d $(PTXCONF_HOST_PREFIX)/usr/man/man8/
- # FIXME: correct path?
- install -m 755 $(HOST_GENEXT2FS_DIR)/genext2fs $(PTXCONF_HOST_PREFIX)/usr/bin/
- install -m 644 $(HOST_GENEXT2FS_DIR)/genext2fs.8 $(PTXCONF_HOST_PREFIX)/usr/man/man8/
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Target-Install
-# ----------------------------------------------------------------------------
-
-host-genext2fs_targetinstall: $(STATEDIR)/host-genext2fs.targetinstall
-
-$(STATEDIR)/host-genext2fs.targetinstall: $(host-genext2fs_targetinstall_deps_default)
- @$(call targetinfo, $@)
+ @$(call install, HOST_GENEXT2FS,,h)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
-host-genext2fs_clean:
- rm -rf $(STATEDIR)/host-genext2fs.* $(HOST_GENEXT2FS_DIR)
+host-genext2fs_clean:
+ rm -rf $(STATEDIR)/host-genext2fs.*
+ rm -rf $(HOST_GENEXT2FS_DIR)
# vim: syntax=make