add quotes to TARGET_CC and TARGET_CROSS to help with distcc and ccache
[openwrt/svn-archive/archive.git] / utils / hdparm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=hdparm
12 PKG_VERSION:=6.6
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/hdparm
18 PKG_MD5SUM:=ecea69f775396e4ab6112dcf9066239f
19 PKG_CAT:=zcat
20
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/hdparm
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=Hard disk drive configuration utilitity
29 DESCRIPTION:=Hard disk drive configuration utilitity.\\\
30 Tune hard disk parameters for high performance.\\\
31 Get/set hard disk parameters for Linux IDE drives.\\\
32 Primary use is for enabling irq-unmasking and IDE multiplemode.
33 URL:=http://sourceforge.net/projects/hdparm/
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 CC="$(TARGET_CC)"
42 endef
43
44 define Package/hdparm/install
45 install -d -m0755 $(1)/usr/sbin
46 install -m0755 $(PKG_BUILD_DIR)/hdparm $(1)/usr/sbin
47 endef
48
49 $(eval $(call BuildPackage,hdparm))