Thu Dec 18 01:01:33 2008 UTC ()
Updated devel/cpuflags to 1.26

Ensure we use `` on Solaris - PR 40176


(abs)
diff -r1.131 -r1.132 pkgsrc/devel/cpuflags/Makefile
diff -r1.2 -r1.3 pkgsrc/devel/cpuflags/files/subr_SunOS

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

--- pkgsrc/devel/cpuflags/Makefile 2008/12/18 00:57:12 1.131
+++ pkgsrc/devel/cpuflags/Makefile 2008/12/18 01:01:33 1.132
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.131 2008/12/18 00:57:12 abs Exp $ 1# $NetBSD: Makefile,v 1.132 2008/12/18 01:01:33 abs Exp $
2 2
3DISTNAME= cpuflags-1.25 3DISTNAME= cpuflags-1.26
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.2 -r1.3 pkgsrc/devel/cpuflags/files/subr_SunOS (expand / switch to unified diff)

--- pkgsrc/devel/cpuflags/files/subr_SunOS 2008/12/10 23:27:17 1.2
+++ pkgsrc/devel/cpuflags/files/subr_SunOS 2008/12/18 01:01:33 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: subr_SunOS,v 1.2 2008/12/10 23:27:17 abs Exp $ 1# $NetBSD: subr_SunOS,v 1.3 2008/12/18 01:01:33 abs Exp $
2 2
3AWK=nawk 3AWK=nawk
4SED=sed 4SED=sed
5 5
6display_hw_details() 6display_hw_details()
7 { 7 {
8 cat <<END 8 cat <<END
9OS : '`uname`' 9OS : '`uname`'
10arch : '$hw_arch' 10arch : '$hw_arch'
11psrinfo : '$hw_psrinfo' 11psrinfo : '$hw_psrinfo'
12END 12END
13 } 13 }
14 14
@@ -17,27 +17,27 @@ extract_hw_details() @@ -17,27 +17,27 @@ extract_hw_details()
17 hw_arch=`/usr/bin/uname -m` 17 hw_arch=`/usr/bin/uname -m`
18 hw_psrinfo=`psrinfo -pv | $AWK 'NR==3{print}'` # Just gets the first CPU 18 hw_psrinfo=`psrinfo -pv | $AWK 'NR==3{print}'` # Just gets the first CPU
19 } 19 }
20 20
21determine_arch() 21determine_arch()
22 { 22 {
23 ARCH= 23 ARCH=
24 case $hw_arch in 24 case $hw_arch in
25 sun4c | sun4 ) ARCH='-mcpu=cypress' ;; 25 sun4c | sun4 ) ARCH='-mcpu=cypress' ;;
26 sun4m ) ARCH='-mcpu=supersparc' ;; 26 sun4m ) ARCH='-mcpu=supersparc' ;;
27 sun4u ) ARCH='-mcpu=v9' ;; 27 sun4u ) ARCH='-mcpu=v9' ;;
28 i86pc ) 28 i86pc )
29 include subr_x86 # this provides map_x86_brand_string() 29 include subr_x86 # this provides map_x86_brand_string()
30 ARCH=$(map_x86_brand_string "$cpu_brand") 30 ARCH=`map_x86_brand_string "$cpu_brand"`
31 if [ -z "$ARCH" ] ; then 31 if [ -z "$ARCH" ] ; then
32 case "$hw_psrinfo" in 32 case "$hw_psrinfo" in
33 *) 33 *)
34 esac 34 esac
35 fi 35 fi
36 ;; 36 ;;
37 esac 37 esac
38 echo $ARCH 38 echo $ARCH
39 } 39 }
40 40
41determine_features() 41determine_features()
42 { 42 {
43 echo 43 echo