diff options
author | abs <abs@pkgsrc.org> | 2005-07-22 12:13:12 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2005-07-22 12:13:12 +0000 |
commit | bc733e575d310501951d806b6157ff58c77191df (patch) | |
tree | c202d467b30513385bff29cc7e84ca9c20a39fee /devel/cpuflags | |
parent | 1b7b1826e1ad026b052a37ba3a4a6b6e194f9d6b (diff) | |
download | pkgsrc-bc733e575d310501951d806b6157ff58c77191df.tar.gz |
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 (limited to 'devel/cpuflags')
-rw-r--r-- | devel/cpuflags/Makefile | 4 | ||||
-rwxr-xr-x | devel/cpuflags/files/cpuflags.Linux | 6 | ||||
-rwxr-xr-x | devel/cpuflags/files/cpuflags.NetBSD | 7 | ||||
-rwxr-xr-x | devel/cpuflags/files/cpuflags.SunOS | 6 |
4 files changed, 15 insertions, 8 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile index 8bb35f292dc..d8f9f1201c5 100644 --- a/devel/cpuflags/Makefile +++ b/devel/cpuflags/Makefile @@ -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 --git a/devel/cpuflags/files/cpuflags.Linux b/devel/cpuflags/files/cpuflags.Linux index 7fbd26e82c3..e4096892172 100755 --- a/devel/cpuflags/files/cpuflags.Linux +++ b/devel/cpuflags/files/cpuflags.Linux @@ -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 @@ else 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 --git a/devel/cpuflags/files/cpuflags.NetBSD b/devel/cpuflags/files/cpuflags.NetBSD index 43622e029ff..d267b0caa19 100755 --- a/devel/cpuflags/files/cpuflags.NetBSD +++ b/devel/cpuflags/files/cpuflags.NetBSD @@ -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 @@ case $hw_machine_arch in *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 @@ else 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 --git a/devel/cpuflags/files/cpuflags.SunOS b/devel/cpuflags/files/cpuflags.SunOS index acf9f0e1044..4084de3ee68 100755 --- a/devel/cpuflags/files/cpuflags.SunOS +++ b/devel/cpuflags/files/cpuflags.SunOS @@ -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 @@ else 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" |