2006-06-23 08:52:33 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# hdparm
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-01-07 18:43:40 +01:00
|
|
|
HDPARM_VERSION = 9.36
|
2010-09-26 09:14:04 +02:00
|
|
|
HDPARM_SOURCE = hdparm-$(HDPARM_VERSION).tar.gz
|
|
|
|
HDPARM_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/hdparm
|
2006-06-23 08:52:33 +02:00
|
|
|
|
2010-09-26 09:14:04 +02:00
|
|
|
define HDPARM_BUILD_CMDS
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
2007-09-24 11:00:39 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
2010-09-26 09:14:04 +02:00
|
|
|
endef
|
2006-06-23 08:52:33 +02:00
|
|
|
|
2010-04-10 22:47:05 +02:00
|
|
|
ifeq ($(BR2_HAVE_DOCUMENTATION),y)
|
2010-09-26 09:14:04 +02:00
|
|
|
define HDPARM_INSTALL_DOCUMENTATION
|
|
|
|
$(INSTALL) -D $(@D)/hdparm.8 $(TARGET_DIR)/usr/share/man/man8/hdparm.8
|
|
|
|
endef
|
2007-09-24 11:00:39 +02:00
|
|
|
endif
|
2006-06-23 08:52:33 +02:00
|
|
|
|
2010-09-26 09:14:04 +02:00
|
|
|
define HDPARM_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/hdparm $(TARGET_DIR)/sbin/hdparm
|
|
|
|
$(HDPARM_INSTALL_DOCUMENTATION)
|
|
|
|
endef
|
2006-06-23 08:52:33 +02:00
|
|
|
|
2010-09-26 09:14:04 +02:00
|
|
|
define HDPARM_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/sbin/hdparm
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man8/hdparm.8
|
|
|
|
endef
|
2006-06-23 08:52:33 +02:00
|
|
|
|
2010-09-26 09:14:04 +02:00
|
|
|
define HDPARM_CLEAN_CMDS
|
|
|
|
-$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
2006-06-23 08:52:33 +02:00
|
|
|
|
2010-09-26 09:14:04 +02:00
|
|
|
$(eval $(call GENTARGETS,package,hdparm))
|