kumquat-buildroot/package/whetstone/whetstone.mk
Thomas Petazzoni 0849e8193e package: remove useless arguments from GENTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
GENTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.

[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-29 23:09:58 +02:00

34 lines
795 B
Makefile

#############################################################
#
# whetstone
#
#############################################################
WHETSTONE_VERSION = 1.2
WHETSTONE_SOURCE = whetstone.c
WHETSTONE_SITE = http://www.netlib.org/benchmark/
define WHETSTONE_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) LDLIBS="-lm" -C $(@D) whetstone
endef
define WHETSTONE_CLEAN_CMDS
rm -f $(@D)/whetstone
endef
define WHETSTONE_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/whetstone $(TARGET_DIR)/usr/bin/whetstone
endef
define WHETSTONE_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/bin/whetstone
endef
$(eval $(call GENTARGETS))
$(BUILD_DIR)/whetstone-$(WHETSTONE_VERSION)/.stamp_extracted:
@$(call MESSAGE,"Extracting")
$(Q)mkdir -p $(@D)
$(Q)cp $(DL_DIR)/$($(PKG)_SOURCE) $(@D)/
$(Q)touch $@