# -*-makefile-*- # $Id: template 6655 2007-01-02 12:55:21Z rsc $ # # Copyright (C) 2007 by Sascha Hauer # # 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 # PACKAGES-$(PTXCONF_IPERF) += iperf # # Paths and names # IPERF_VERSION := 2.0.4 IPERF := iperf-$(IPERF_VERSION) IPERF_SUFFIX := tar.gz IPERF_URL := $(PTXCONF_SETUP_SFMIRROR)/iperf/$(IPERF).$(IPERF_SUFFIX) IPERF_SOURCE := $(SRCDIR)/$(IPERF).$(IPERF_SUFFIX) IPERF_DIR := $(BUILDDIR)/$(IPERF) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(IPERF_SOURCE): @$(call targetinfo) @$(call get, IPERF) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- IPERF_PATH := PATH=$(CROSS_PATH) IPERF_ENV := $(CROSS_ENV) # # autoconf # IPERF_AUTOCONF := $(CROSS_AUTOCONF_USR) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/iperf.targetinstall: @$(call targetinfo) @$(call install_init, iperf) @$(call install_fixup, iperf,PACKAGE,iperf) @$(call install_fixup, iperf,PRIORITY,optional) @$(call install_fixup, iperf,VERSION,$(IPERF_VERSION)) @$(call install_fixup, iperf,SECTION,base) @$(call install_fixup, iperf,AUTHOR,"Robert Schwebel ") @$(call install_fixup, iperf,DEPENDS,) @$(call install_fixup, iperf,DESCRIPTION,missing) @$(call install_copy, iperf, 0, 0, 0755, $(IPERF_DIR)/src/iperf, /usr/bin/iperf) @$(call install_finish, iperf) @$(call touch) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- iperf_clean: rm -rf $(STATEDIR)/iperf.* rm -rf $(PKGDIR)/iperf_* rm -rf $(IPERF_DIR) # vim: syntax=make