summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2012-10-18 16:58:18 +0000
committerasau <asau@pkgsrc.org>2012-10-18 16:58:18 +0000
commitbb788c46b32c34d8086d56aa773ef0770a770de3 (patch)
treeb77cb3b4755664b6a9fba6a7cd207e5e0747c45e /benchmarks
parentc89fea4c7089ce921596dec12477437a3a3ffc0d (diff)
downloadpkgsrc-bb788c46b32c34d8086d56aa773ef0770a770de3.tar.gz
"echo -e" is not portable, use printf to generate horizontal tabulation.
Reported by Mikhail Danilov on IRC.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/skampi/Makefile6
-rw-r--r--benchmarks/skampi/distinfo3
-rw-r--r--benchmarks/skampi/patches/patch-makedep.sh34
3 files changed, 41 insertions, 2 deletions
diff --git a/benchmarks/skampi/Makefile b/benchmarks/skampi/Makefile
index 29bce411196..49d8845a5b3 100644
--- a/benchmarks/skampi/Makefile
+++ b/benchmarks/skampi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2012/09/11 22:37:14 asau Exp $
+# $NetBSD: Makefile,v 1.26 2012/10/18 16:58:18 asau Exp $
#
DISTNAME= skampi
@@ -18,6 +18,10 @@ USE_TOOLS+= gmake pax
BUILD_TARGET= skampi
INSTALLATION_DIRS= bin
+# Force file regeneration:
+post-extract:
+ rm $(WRKSRC)/Makefile.dep
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/skampi ${DESTDIR}${PREFIX}/bin/skampi
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/skampi
diff --git a/benchmarks/skampi/distinfo b/benchmarks/skampi/distinfo
index 641148d58fd..8396bf572e9 100644
--- a/benchmarks/skampi/distinfo
+++ b/benchmarks/skampi/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2009/12/13 01:49:18 asau Exp $
+$NetBSD: distinfo,v 1.6 2012/10/18 16:58:18 asau Exp $
SHA1 (skampi-5.0.4.355/skampi.tar.gz) = a1e55043505dc10a576d47e018206ae9c79f145f
RMD160 (skampi-5.0.4.355/skampi.tar.gz) = bfc545eb065124fabd71e6aec7684887c3fb4974
Size (skampi-5.0.4.355/skampi.tar.gz) = 386126 bytes
+SHA1 (patch-makedep.sh) = c43f77e46f98215355ca2a2325c14937ce38f589
diff --git a/benchmarks/skampi/patches/patch-makedep.sh b/benchmarks/skampi/patches/patch-makedep.sh
new file mode 100644
index 00000000000..ee171ba4238
--- /dev/null
+++ b/benchmarks/skampi/patches/patch-makedep.sh
@@ -0,0 +1,34 @@
+$NetBSD: patch-makedep.sh,v 1.1 2012/10/18 16:58:18 asau Exp $
+
+"echo -e" is not portable.
+
+--- makedep.sh.orig 2007-09-21 08:48:19.000000000 +0000
++++ makedep.sh
+@@ -3,17 +3,21 @@
+ # Script for automatic generation of Makefile dependencies
+ # Receives list of .c files as arguments
+
+-echo "# Created by makedep.sh, do not edit" > Makefile.dep
+-echo "" >> Makefile.dep
++exec > Makefile.dep
++
++echo "# Created by makedep.sh, do not edit"
++echo
+
+ for x in $@
+ do
+- if ! $CPP $CPPFLAGS -E -MG -MM $x >> Makefile.dep ; then
++ if ! $CPP $CPPFLAGS -E -MG -MM $x ; then
+ rm -f Makefile.dep
+ exit 1
+ fi
+- echo -e "\t\$(MPICC) -c \$(CFLAGS) $x" >> Makefile.dep
++ printf "\t"
++ echo "\$(MPICC) -c \$(CFLAGS) $x"
+ done
+
+-echo "skampi: $OBJECTS" >> Makefile.dep
+-echo -e "\t\$(MPICC) -o skampi $OBJECTS -lm" >> Makefile.dep
++echo "skampi: $OBJECTS"
++printf "\t"
++echo -e "\$(MPICC) -o skampi $OBJECTS -lm"