# -*-makefile-*- # $Id$ # # Copyright (C) 2007 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 # HOST_PACKAGES-$(PTXCONF_HOST_LIBICONV) += host-libiconv # # Paths and names # HOST_LIBICONV_DIR = $(HOST_BUILDDIR)/$(LIBICONV) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- host-libiconv_get: $(STATEDIR)/host-libiconv.get $(STATEDIR)/host-libiconv.get: $(STATEDIR)/libiconv.get @$(call targetinfo, $@) @$(call touch, $@) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- host-libiconv_extract: $(STATEDIR)/host-libiconv.extract $(STATEDIR)/host-libiconv.extract: $(host-libiconv_extract_deps_default) @$(call targetinfo, $@) @$(call clean, $(HOST_LIBICONV_DIR)) @$(call extract, LIBICONV, $(HOST_BUILDDIR)) @$(call patchin, LIBICONV, $(HOST_LIBICONV_DIR)) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- host-libiconv_prepare: $(STATEDIR)/host-libiconv.prepare HOST_LIBICONV_PATH := PATH=$(HOST_PATH) HOST_LIBICONV_ENV := $(HOST_ENV) # # autoconf # HOST_LIBICONV_AUTOCONF := $(HOST_AUTOCONF) $(STATEDIR)/host-libiconv.prepare: $(host-libiconv_prepare_deps_default) @$(call targetinfo, $@) @$(call clean, $(HOST_LIBICONV_DIR)/config.cache) cd $(HOST_LIBICONV_DIR) && \ $(HOST_LIBICONV_PATH) $(HOST_LIBICONV_ENV) \ ./configure $(HOST_LIBICONV_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- host-libiconv_compile: $(STATEDIR)/host-libiconv.compile $(STATEDIR)/host-libiconv.compile: $(host-libiconv_compile_deps_default) @$(call targetinfo, $@) cd $(HOST_LIBICONV_DIR) && $(HOST_LIBICONV_PATH) $(MAKE) $(PARALLELMFLAGS) @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- host-libiconv_install: $(STATEDIR)/host-libiconv.install $(STATEDIR)/host-libiconv.install: $(host-libiconv_install_deps_default) @$(call targetinfo, $@) @$(call install, HOST_LIBICONV,,h) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- host-libiconv_clean: rm -rf $(STATEDIR)/host-libiconv.* rm -rf $(HOST_LIBICONV_DIR) # vim: syntax=make