diff options
author | Erwin Rol <erwin@erwinrol.com> | 2006-06-02 15:13:19 +0000 |
---|---|---|
committer | Erwin Rol <erwin@erwinrol.com> | 2006-06-02 15:13:19 +0000 |
commit | d9e39dcbcfa4ab003db2befa70940416c0b42170 (patch) | |
tree | bf3127fa79b47d1f9e9fda859c70dce2044a8d9f /rules/host-cmake.make | |
parent | 267c7e00851f2b1c571e36999c56f4a1427da36e (diff) | |
download | ptxdist-d9e39dcbcfa4ab003db2befa70940416c0b42170.tar.gz ptxdist-d9e39dcbcfa4ab003db2befa70940416c0b42170.tar.xz |
Added cmake host tool
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@5627 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-cmake.make')
-rw-r--r-- | rules/host-cmake.make | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/rules/host-cmake.make b/rules/host-cmake.make new file mode 100644 index 000000000..093b58179 --- /dev/null +++ b/rules/host-cmake.make @@ -0,0 +1,108 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2006 by Erwin Rol +# +# 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 +# +HOST_PACKAGES-$(PTXCONF_HOST_CMAKE) += host-cmake + +# +# Paths and names +# +HOST_CMAKE_VERSION = 2.4.2 +HOST_CMAKE = cmake-$(HOST_CMAKE_VERSION) +HOST_CMAKE_SUFFIX = tar.gz +HOST_CMAKE_URL = http://www.cmake.org/files/v2.4/$(HOST_CMAKE).$(HOST_CMAKE_SUFFIX) +HOST_CMAKE_SOURCE = $(SRCDIR)/$(HOST_CMAKE).$(HOST_CMAKE_SUFFIX) +HOST_CMAKE_DIR = $(HOST_BUILDDIR)/$(HOST_CMAKE) + +-include $(call package_depfile) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +host-cmake_get: $(STATEDIR)/host-cmake.get + +$(STATEDIR)/host-cmake.get: $(host-cmake_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(HOST_CMAKE_SOURCE): + @$(call targetinfo, $@) + @$(call get, HOST_CMAKE) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +host-cmake_extract: $(STATEDIR)/host-cmake.extract + +$(STATEDIR)/host-cmake.extract: $(host-cmake_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(HOST_CMAKE_DIR)) + @$(call extract, HOST_CMAKE, $(HOST_BUILDDIR)) + @$(call patchin, HOST_CMAKE, $(HOST_CMAKE_DIR)) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +host-cmake_prepare: $(STATEDIR)/host-cmake.prepare + +HOST_CMAKE_PATH = PATH=$(HOST_PATH) +HOST_CMAKE_ENV = $(HOSTCC_ENV) $(HOSTCXX_ENV) + +# +# autoconf +# +HOST_CMAKE_AUTOCONF = $(HOST_AUTOCONF) + +$(STATEDIR)/host-cmake.prepare: $(host-cmake_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(HOST_CMAKE_DIR)/config.cache) + cd $(HOST_CMAKE_DIR) && \ + $(HOST_CMAKE_PATH) $(HOST_CMAKE_ENV) \ + ./configure $(HOST_CMAKE_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +host-cmake_compile: $(STATEDIR)/host-cmake.compile + +$(STATEDIR)/host-cmake.compile: $(host-cmake_compile_deps_default) + @$(call targetinfo, $@) + cd $(HOST_CMAKE_DIR) && $(HOST_CMAKE_ENV) $(HOST_CMAKE_PATH) make VERBOSE=1 + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +host-cmake_install: $(STATEDIR)/host-cmake.install + +$(STATEDIR)/host-cmake.install: $(host-cmake_install_deps_default) + @$(call targetinfo, $@) + @$(call install, HOST_CMAKE,,h) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +host-cmake_clean: + rm -rf $(STATEDIR)/host-cmake.* + rm -rf $(HOST_CMAKE_DIR) + +# vim: syntax=make |