whetstone: new benchmark package
authorMike Frysinger <vapier@gentoo.org>
Tue, 7 Dec 2010 21:05:50 +0000 (16:05 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 8 Dec 2010 22:33:49 +0000 (23:33 +0100)
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>
CHANGES
package/Config.in
package/whetstone/Config.in [new file with mode: 0644]
package/whetstone/whetstone.mk [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 47ba38d8bdbc464cf4f72375c396928727f24e6e..bf9a0a9926ef5de30204e6374395d42918f650bc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,7 +5,7 @@
 
        Updated/fixed packages: cloop, m4, openssh, qt, xz
 
-       New packages: lsuio, rsh-redone
+       New packages: lsuio, rsh-redone, whetstone
 
        Issues resolved (http://bugs.uclibc.org):
 
index 7c550cde37eb4eb634a3170a783f392df281f8d9..42d7517a2efa7af395f8123e4f49d5e3ad0fd220 100644 (file)
@@ -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 (file)
index 0000000..7a68160
--- /dev/null
@@ -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 (file)
index 0000000..d47fbcd
--- /dev/null
@@ -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 $@