From beb56ca618da3c2bcffb806c6d7fae725e56162e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 7 Dec 2010 16:05:50 -0500 Subject: whetstone: new benchmark package Acked-by: Thomas Petazzoni Signed-off-by: Mike Frysinger Signed-off-by: Peter Korsgaard --- package/whetstone/Config.in | 6 ++++++ package/whetstone/whetstone.mk | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 package/whetstone/Config.in create mode 100644 package/whetstone/whetstone.mk (limited to 'package/whetstone') diff --git a/package/whetstone/Config.in b/package/whetstone/Config.in new file mode 100644 index 000000000..7a68160da --- /dev/null +++ b/package/whetstone/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_WHETSTONE + bool "whetstone" + help + C Converted Whetstone Double Precision Benchmark + + http://www.netlib.org/benchmark/ diff --git a/package/whetstone/whetstone.mk b/package/whetstone/whetstone.mk new file mode 100644 index 000000000..d47fbcda7 --- /dev/null +++ b/package/whetstone/whetstone.mk @@ -0,0 +1,33 @@ +############################################################# +# +# 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,package,whetstone)) + +$(BUILD_DIR)/whetstone-$(WHETSTONE_VERSION)/.stamp_extracted: + @$(call MESSAGE,"Extracting") + $(Q)mkdir -p $(@D) + $(Q)cp $(DL_DIR)/$($(PKG)_SOURCE) $(@D)/ + $(Q)touch $@ -- cgit v1.2.3