pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cpuflags Update cpuflags to 0.90



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb5104b5144c
branches:  trunk
changeset: 497213:cb5104b5144c
user:      abs <abs%pkgsrc.org@localhost>
date:      Fri Jul 22 12:13:12 2005 +0000

description:
Update cpuflags to 0.90
        NetBSD: treat 'AMD Unknown K7 (Athlon)' as -march=athlon
        All: If -v is given, also correctly display CPUFLAGS value

diffstat:

 devel/cpuflags/Makefile              |  4 ++--
 devel/cpuflags/files/cpuflags.Linux  |  6 ++++--
 devel/cpuflags/files/cpuflags.NetBSD |  7 +++++--
 devel/cpuflags/files/cpuflags.SunOS  |  6 ++++--
 4 files changed, 15 insertions(+), 8 deletions(-)

diffs (84 lines):

diff -r 107101b13037 -r cb5104b5144c devel/cpuflags/Makefile
--- a/devel/cpuflags/Makefile   Fri Jul 22 11:25:51 2005 +0000
+++ b/devel/cpuflags/Makefile   Fri Jul 22 12:13:12 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.92 2005/07/21 08:33:13 abs Exp $
+# $NetBSD: Makefile,v 1.93 2005/07/22 12:13:12 abs Exp $
 #
 
-DISTNAME=      cpuflags-0.89
+DISTNAME=      cpuflags-0.90
 CATEGORIES=    sysutils
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r 107101b13037 -r cb5104b5144c devel/cpuflags/files/cpuflags.Linux
--- a/devel/cpuflags/files/cpuflags.Linux       Fri Jul 22 11:25:51 2005 +0000
+++ b/devel/cpuflags/files/cpuflags.Linux       Fri Jul 22 12:13:12 2005 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: cpuflags.Linux,v 1.17 2005/06/25 10:50:49 abs Exp $
+# $NetBSD: cpuflags.Linux,v 1.18 2005/07/22 12:13:12 abs Exp $
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
 
 AWK=awk
@@ -63,7 +63,9 @@
 fi
 
 if [ -n "$opt_v" ] ; then
-    if [ -z "$NONE" ] ; then
+    if [ -n "$FLAGS" ]; then
+       echo "CPUFLAGS=$FLAGS"
+    elif [ -z "$NONE" ] ; then
        echo "CPUFLAGS=Unknown"
     else
        echo "CPUFLAGS=None"
diff -r 107101b13037 -r cb5104b5144c devel/cpuflags/files/cpuflags.NetBSD
--- a/devel/cpuflags/files/cpuflags.NetBSD      Fri Jul 22 11:25:51 2005 +0000
+++ b/devel/cpuflags/files/cpuflags.NetBSD      Fri Jul 22 12:13:12 2005 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: cpuflags.NetBSD,v 1.60 2005/05/01 22:03:37 abs Exp $
+# $NetBSD: cpuflags.NetBSD,v 1.61 2005/07/22 12:13:12 abs Exp $
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
 
 AWK=awk
@@ -83,6 +83,7 @@
        *AMD\ K7\ \(Athlon\)\ XP\ *)    FLAGS='-march=athlon-xp'        ;;
        *AMD\ Athlon\ XP\ *)            FLAGS='-march=athlon-xp'        ;;
        *AMD\ K7*|*AMD\ Athlon*)        FLAGS='-march=athlon'           ;;
+       *AMD\ Unknown\ K7\ \(Athlon\)*) FLAGS='-march=athlon'           ;;
        *386-class*)                    FLAGS='-march=i386'             ;;
        *486-class*)                    FLAGS='-march=i486'             ;;
        *586-class*)                    FLAGS='-march=pentium'          ;;
@@ -178,7 +179,9 @@
 fi
 
 if [ -n "$opt_v" ] ; then
-    if [ -z "$NONE" ] ; then
+    if [ -n "$FLAGS" ]; then
+       echo "CPUFLAGS=$FLAGS"
+    elif [ -z "$NONE" ] ; then
        echo "CPUFLAGS=Unknown"
     else
        echo "CPUFLAGS=None"
diff -r 107101b13037 -r cb5104b5144c devel/cpuflags/files/cpuflags.SunOS
--- a/devel/cpuflags/files/cpuflags.SunOS       Fri Jul 22 11:25:51 2005 +0000
+++ b/devel/cpuflags/files/cpuflags.SunOS       Fri Jul 22 12:13:12 2005 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: cpuflags.SunOS,v 1.7 2005/05/01 22:03:37 abs Exp $
+# $NetBSD: cpuflags.SunOS,v 1.8 2005/07/22 12:13:12 abs Exp $
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
 
 AWK=nawk
@@ -32,7 +32,9 @@
 fi
 
 if [ -n "$opt_v" ] ; then
-    if [ -z "$NONE" ] ; then
+    if [ -n "$FLAGS" ]; then
+       echo "CPUFLAGS=$FLAGS"
+    elif [ -z "$NONE" ] ; then
        echo "CPUFLAGS=Unknown"
     else
        echo "CPUFLAGS=None"



Home | Main Index | Thread Index | Old Index