summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2004-11-14 21:51:05 +0000
committerabs <abs@pkgsrc.org>2004-11-14 21:51:05 +0000
commit924f87301a1fce6a844c93e1deefb339929d0e5d (patch)
tree2da74d5c5902209939adbeeabcdbf3912c184e62 /devel
parentc8e397580bacc5e06801c6f7d397b10cf05abbc9 (diff)
downloadpkgsrc-924f87301a1fce6a844c93e1deefb339929d0e5d.tar.gz
Update cpuflags to 0.78:
Handle 7410 under NetBSD/macppc and 'Pentium III (Coppermine)' under Linux, from Markus W Kilbinger and Andrew Gillham respectively
Diffstat (limited to 'devel')
-rw-r--r--devel/cpuflags/Makefile4
-rwxr-xr-xdevel/cpuflags/files/cpuflags.Linux7
-rwxr-xr-xdevel/cpuflags/files/cpuflags.NetBSD3
3 files changed, 8 insertions, 6 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile
index 0983e489d00..f02688a4d17 100644
--- a/devel/cpuflags/Makefile
+++ b/devel/cpuflags/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.80 2004/11/03 18:16:27 abs Exp $
+# $NetBSD: Makefile,v 1.81 2004/11/14 21:51:05 abs Exp $
#
-DISTNAME= cpuflags-0.77
+DISTNAME= cpuflags-0.78
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/devel/cpuflags/files/cpuflags.Linux b/devel/cpuflags/files/cpuflags.Linux
index 4df618bd708..9521e6c32a8 100755
--- a/devel/cpuflags/files/cpuflags.Linux
+++ b/devel/cpuflags/files/cpuflags.Linux
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: cpuflags.Linux,v 1.10 2004/11/03 18:16:27 abs Exp $
+# $NetBSD: cpuflags.Linux,v 1.11 2004/11/14 21:51:05 abs Exp $
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
if [ "$1" = -v ] ; then
@@ -25,8 +25,8 @@ if [ ! -f /proc/cpuinfo ] ; then
echo "Unable to open /proc/cpuinfo"
hw_model=Unknown
else
- hw_model=$(awk -F: '/^model name/{sub(" ","",$2);print $2}' /proc/cpuinfo)
- hw_flags=$(awk -F: '/^flags/{sub(" ","",$2);print $2}' /proc/cpuinfo)
+ hw_model=$(awk -F: '/^model name/{sub(" ","",$2);print $2;exit}' /proc/cpuinfo)
+ hw_flags=$(awk -F: '/^flags/{sub(" ","",$2);print $2;exit}' /proc/cpuinfo)
fi
case $hw_machine_arch in
@@ -38,6 +38,7 @@ case $hw_machine_arch in
"AMD Duron(TM)") FLAGS='-march=athlon' ;;
"AMD Athlon(tm) XP "*) FLAGS='-march=athlon-xp' ;;
"Celeron (Coppermine)") FLAGS='-march=pentium3' ;;
+ "Pentium III (Coppermine)") FLAGS='-march=pentium3' ;;
"Intel(R) Pentium(R) M processor"*) FLAGS='-march=pentium3m' ;;
"Intel(R) Celeron(R) CPU "*)
case "$hw_flags" in
diff --git a/devel/cpuflags/files/cpuflags.NetBSD b/devel/cpuflags/files/cpuflags.NetBSD
index 8dceab7201f..c1a5b95cfb0 100755
--- a/devel/cpuflags/files/cpuflags.NetBSD
+++ b/devel/cpuflags/files/cpuflags.NetBSD
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: cpuflags.NetBSD,v 1.56 2004/11/03 18:16:27 abs Exp $
+# $NetBSD: cpuflags.NetBSD,v 1.57 2004/11/14 21:51:05 abs Exp $
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
if [ "$1" = -v ] ; then
@@ -138,6 +138,7 @@ case $hw_machine_arch in
604ev\ *) FLAGS='-mcpu=604e' ;; # upgr B&W G3
620\ *) FLAGS='-mcpu=620' ;; # Untested
7400\ *) FLAGS='-mcpu=7400' ;; # AGP G4/400 Mac
+ 7410\ *) FLAGS='-mcpu=7400' ;; # powerbook g4
740\ *) FLAGS='-mcpu=740' ;; # Untested
7450\ *) FLAGS='-mcpu=7450' ;; # tibook 550
750\ *) FLAGS='-mcpu=750' ;; # Untested