Thu Dec 18 00:57:12 2008 UTC ()
Updated devel/cpuflags to 1.25

Add "Intel(R) Pentium(R) 4 CPU 2.80GHz" from Alaric Snell-Pym
Add "Intel(R) Celeron(TM) CPU                1400MHz" from Bernhard Riedel


(abs)
diff -r1.130 -r1.131 pkgsrc/devel/cpuflags/Makefile
diff -r1.3 -r1.4 pkgsrc/devel/cpuflags/files/subr_x86

cvs diff -r1.130 -r1.131 pkgsrc/devel/cpuflags/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/cpuflags/Makefile 2008/12/10 23:27:17 1.130
+++ pkgsrc/devel/cpuflags/Makefile 2008/12/18 00:57:12 1.131
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.130 2008/12/10 23:27:17 abs Exp $ 1# $NetBSD: Makefile,v 1.131 2008/12/18 00:57:12 abs Exp $
2 2
3DISTNAME= cpuflags-1.24 3DISTNAME= cpuflags-1.25
4CATEGORIES= devel sysutils 4CATEGORIES= devel sysutils
5MASTER_SITES= # empty 5MASTER_SITES= # empty
6DISTFILES= # empty 6DISTFILES= # empty
7 7
8MAINTAINER= abs@NetBSD.org 8MAINTAINER= abs@NetBSD.org
9COMMENT= Determine compiler flags to best target current cpu 9COMMENT= Determine compiler flags to best target current cpu
10 10
11PKG_DESTDIR_SUPPORT= user-destdir 11PKG_DESTDIR_SUPPORT= user-destdir
12 12
13ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* SunOS-*-* FreeBSD-*-* 13ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* SunOS-*-* FreeBSD-*-*
14 14
15USE_LANGUAGES= # empty 15USE_LANGUAGES= # empty
16NO_CHECKSUM= yes 16NO_CHECKSUM= yes

cvs diff -r1.3 -r1.4 pkgsrc/devel/cpuflags/files/subr_x86 (expand / switch to unified diff)

--- pkgsrc/devel/cpuflags/files/subr_x86 2008/12/10 23:27:17 1.3
+++ pkgsrc/devel/cpuflags/files/subr_x86 2008/12/18 00:57:12 1.4
@@ -1,27 +1,29 @@ @@ -1,27 +1,29 @@
1# $NetBSD: subr_x86,v 1.3 2008/12/10 23:27:17 abs Exp $ 1# $NetBSD: subr_x86,v 1.4 2008/12/18 00:57:12 abs Exp $
2 2
3# Apparently the only way to reliably determine the architecture of a recent 3# Apparently the only way to reliably determine the architecture of a recent
4# Intel CPU is to use the cpu brand string - as they reused family and 4# Intel CPU is to use the cpu brand string - as they reused family and
5# extended family bitflags... annoying 5# extended family bitflags... annoying
6map_x86_brand_string() 6map_x86_brand_string()
7 { 7 {
8 case "$1" in 8 case "$1" in
9 "Genuine Intel(R) CPU T2400"*) echo '-march=core2' ;; 9 "Genuine Intel(R) CPU T2400"*) echo '-march=core2' ;;
10 "Intel(R) Celeron(R) CPU E1400"*) echo '-march=core2' ;; 10 "Intel(R) Celeron(R) CPU E1400"*) echo '-march=core2' ;;
11 "Intel(R) Celeron(R) CPU 2.40GHz") echo '-march=pentium4' ;; 11 "Intel(R) Celeron(R) CPU 2.40GHz") echo '-march=pentium4' ;;
 12 "Intel(R) Celeron(TM) CPU 1400MHz") echo '-march=pentium3' ;;
12 "Intel(R) Core(TM)2 CPU "*) echo '-march=core2' ;; 13 "Intel(R) Core(TM)2 CPU "*) echo '-march=core2' ;;
13 "Intel(R) Core(TM)2 Duo CPU "*) echo '-march=core2' ;; 14 "Intel(R) Core(TM)2 Duo CPU "*) echo '-march=core2' ;;
14 "Intel(R) Core(TM)2 Quad CPU"*) echo '-march=core2' ;; 15 "Intel(R) Core(TM)2 Quad CPU"*) echo '-march=core2' ;;
 16 "Intel(R) Pentium(R) 4 CPU 2.80GHz") echo '-march=pentium4' ;;
15 "Intel(R) Pentium(R) 4 CPU 3.00GHz") echo '-march=prescott' ;; 17 "Intel(R) Pentium(R) 4 CPU 3.00GHz") echo '-march=prescott' ;;
16 "Intel(R) Pentium(R) D CPU "*) echo '-march=prescott' ;; 18 "Intel(R) Pentium(R) D CPU "*) echo '-march=prescott' ;;
17 "Intel(R) Xeon(R) CPU 3040"*) echo '-march=core2' ;; 19 "Intel(R) Xeon(R) CPU 3040"*) echo '-march=core2' ;;
18 "Intel(R) Xeon(R) CPU 3050"*) echo '-march=core2' ;; 20 "Intel(R) Xeon(R) CPU 3050"*) echo '-march=core2' ;;
19 "Pentium(R) Dual-Core CPU E5200"*) echo '-march=core2' ;; 21 "Pentium(R) Dual-Core CPU E5200"*) echo '-march=core2' ;;
20 22
21 esac 23 esac
22 } 24 }
23 25
24flags_fixup_x86arch() 26flags_fixup_x86arch()
25 { 27 {
26 arch=$1 28 arch=$1
27 features=$2 29 features=$2