# -*-makefile-*- # # Copyright (C) 2007 by Robert Schwebel # (C) 2010 by Michael Olbrich # # 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_LIBBZ2) += host-libbz2 # # Paths and names # HOST_LIBBZ2_VERSION := 1.0.4 HOST_LIBBZ2 := bzip2-$(HOST_LIBBZ2_VERSION) HOST_LIBBZ2_SUFFIX := tar.gz HOST_LIBBZ2_URL := http://www.bzip.org/1.0.4/$(HOST_LIBBZ2).$(HOST_LIBBZ2_SUFFIX) HOST_LIBBZ2_SOURCE := $(SRCDIR)/$(HOST_LIBBZ2).$(HOST_LIBBZ2_SUFFIX) HOST_LIBBZ2_DIR := $(HOST_BUILDDIR)/$(HOST_LIBBZ2) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(HOST_LIBBZ2_SOURCE): @$(call targetinfo) @$(call get, HOST_LIBBZ2) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- $(STATEDIR)/host-libbz2.extract: @$(call targetinfo) @$(call clean, $(HOST_LIBBZ2_DIR)) @$(call extract, HOST_LIBBZ2, $(HOST_BUILDDIR)) @$(call patchin, HOST_LIBBZ2, $(HOST_LIBBZ2_DIR)) @$(call touch) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- HOST_LIBBZ2_PATH := PATH=$(HOST_PATH) HOST_LIBBZ2_ENV := $(HOST_ENV) HOST_LIBBZ2_INSTALL_OPT := install PREFIX=$(PTXCONF_SYSROOT_HOST) # vim: syntax=make