#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.

include $(TOPDIR)/rules.mk

PKG_NAME:=pwrmgmt-util
PKG_VERSION:=0.0.1
PKG_RELEASE:=0

PKG_BUILD_DIR:=$(BUILD_DIR)/pwrmgmt-util-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/pwrmgmt-util
  SECTION:=opt
  CATEGORY:=Mindspeed Packages
  TITLE:=pwrmgmt-util
  DESCRIPTION+=\\\
	This package provides phase-2 power management commands
endef

define Package/pwrmgmt-util/Description
  This package provides phase-2 power management commands
endef

define Package/pwrmgmt-util/config
endef

define Build/Configure
endef

define Build/Prepare
endef

define Build/pwrmgmt-util/Compile
	$(INSTALL_DIR) $(PKG_BUILD_DIR)/usr
	$(INSTALL_DIR) $(PKG_BUILD_DIR)/usr/local
	$(INSTALL_DIR) $(PKG_BUILD_DIR)/usr/local/bin
	$(CP) ./files/pwrmgmt-util/ $(PKG_BUILD_DIR)/usr/local/bin/
endef

define Build/Compile
	$(call Build/pwrmgmt-util/Compile)
endef

define Package/pwrmgmt-util/install
	$(INSTALL_DIR) $(1)/usr/
	$(INSTALL_DIR) $(1)/usr/local/
	$(INSTALL_DIR) $(1)/usr/local/bin/
	$(CP) $(PKG_BUILD_DIR)/usr/local/bin/pwrmgmt-util/ $(1)/usr/local/bin/
endef

$(eval $(call BuildPackage,pwrmgmt-util))
