summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-07 16:05:50 -0500
committerPeter Korsgaard <jacmet@sunsite.dk>2010-12-08 23:33:49 +0100
commitbeb56ca618da3c2bcffb806c6d7fae725e56162e (patch)
tree805dd1a11455c4189b2974f18f8965533a1ea61d /package
parentea7ab91c66dfceba414218c8156a347681b86df9 (diff)
downloadbuildroot-novena-beb56ca618da3c2bcffb806c6d7fae725e56162e.tar.gz
buildroot-novena-beb56ca618da3c2bcffb806c6d7fae725e56162e.zip
whetstone: new benchmark package
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/whetstone/Config.in6
-rw-r--r--package/whetstone/whetstone.mk33
3 files changed, 40 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 7c550cde3..42d7517a2 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -27,6 +27,7 @@ source "package/memstat/Config.in"
source "package/netperf/Config.in"
source "package/oprofile/Config.in"
source "package/strace/Config.in"
+source "package/whetstone/Config.in"
source "package/valgrind/Config.in"
endmenu
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 $@