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.86:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92bfee8c7bdd
branches:  trunk
changeset: 493201:92bfee8c7bdd
user:      abs <abs%pkgsrc.org@localhost>
date:      Fri Apr 29 12:56:05 2005 +0000

description:
Update cpuflags to 0.86:
    Add Linux 'Pentium III (Katmai)' - from Toni Viemero
    Remove some outdated gcc references from manpage
    Clarify the mk examples are BSD makefile specific
    Add a basic Makefile for out-of-pkgsrc usage

diffstat:

 devel/cpuflags/Makefile             |  20 ++++----------------
 devel/cpuflags/files/Makefile       |  22 ++++++++++++++++++++++
 devel/cpuflags/files/cpuflags.1     |  19 +++++--------------
 devel/cpuflags/files/cpuflags.Linux |   3 ++-
 4 files changed, 33 insertions(+), 31 deletions(-)

diffs (142 lines):

diff -r 18c5aa3d4c76 -r 92bfee8c7bdd devel/cpuflags/Makefile
--- a/devel/cpuflags/Makefile   Fri Apr 29 12:39:25 2005 +0000
+++ b/devel/cpuflags/Makefile   Fri Apr 29 12:56:05 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.88 2005/04/27 10:55:21 abs Exp $
+# $NetBSD: Makefile,v 1.89 2005/04/29 12:56:05 abs Exp $
 #
 
-DISTNAME=      cpuflags-0.85
+DISTNAME=      cpuflags-0.86
 CATEGORIES=    sysutils
 MASTER_SITES=  # empty
 DISTFILES=     # empty
@@ -11,24 +11,12 @@
 
 ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* SunOS-*-*
 
-EXTRACT_ONLY=  # empty
 USE_LANGUAGES= # empty
 NO_CHECKSUM=   yes
 NO_CONFIGURE=  yes
 
-FILES_SUBST+=  PREFIX="${PREFIX}"
-
-do-build:
+do-extract:
        ${MKDIR} ${WRKSRC}
-.for FILE in cpuflags.1 cpuflags.mk
-       ${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/${FILE} \
-                                        > ${WRKSRC}/${FILE}
-.endfor
-
-do-install:
-       ${INSTALL_SCRIPT} ${FILESDIR}/cpuflags.${OPSYS} ${PREFIX}/bin/cpuflags
-       ${INSTALL_DATA} ${FILESDIR}/optimize_gcc.mk ${PREFIX}/share/mk/optimize_gcc.mk
-       ${INSTALL_DATA} ${WRKSRC}/cpuflags.mk ${PREFIX}/share/mk/cpuflags.mk
-       ${INSTALL_MAN} ${WRKSRC}/cpuflags.1 ${PREFIX}/man/man1/cpuflags.1
+       ${CP} ${FILESDIR}/Makefile ${FILESDIR}/*.* ${WRKSRC}
 
 .include "../../mk/bsd.pkg.mk"
diff -r 18c5aa3d4c76 -r 92bfee8c7bdd devel/cpuflags/files/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cpuflags/files/Makefile     Fri Apr 29 12:56:05 2005 +0000
@@ -0,0 +1,22 @@
+# $Id: Makefile,v 1.1 2005/04/29 12:56:05 abs Exp $
+
+PREFIX?=/usr/local
+OPSYS?=`uname`
+
+MANDIR?=${PREFIX}/man/man1
+MKDIR?=${PREFIX}/share/mk
+BINDIR?=${PREFIX}/bin
+
+all:
+       sed -e 's|@PREFIX@|${PREFIX}|g' cpuflags.1 > cpuflags.1.out
+       sed -e 's|@PREFIX@|${PREFIX}|g' cpuflags.mk > cpuflags.mk.out
+       
+clean:
+       rm -f *.out
+
+install:
+       mkdir -p ${BINDIR} ${MANDIR} ${MKDIR}
+       install cpuflags.${OPSYS} ${BINDIR}/cpuflags
+       install cpuflags.1.out    ${MANDIR}/cpuflags.1
+       install optimize_gcc.mk   ${MKDIR}/optimize_gcc.mk
+       install cpuflags.mk.out   ${MKDIR}/cpuflags.mk
diff -r 18c5aa3d4c76 -r 92bfee8c7bdd devel/cpuflags/files/cpuflags.1
--- a/devel/cpuflags/files/cpuflags.1   Fri Apr 29 12:39:25 2005 +0000
+++ b/devel/cpuflags/files/cpuflags.1   Fri Apr 29 12:56:05 2005 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: cpuflags.1,v 1.14 2004/03/17 00:40:24 wiz Exp $
+.\"    $NetBSD: cpuflags.1,v 1.15 2005/04/29 12:56:05 abs Exp $
 .Dd May 31, 2001
 .Dt CPUFLAGS 1
 .Os
@@ -10,7 +10,7 @@
 .Op cc_pathname
 .Sh DESCRIPTION
 .Nm
-queries the current cpu type and gcc version, then outputs appropriate
+detemines the current cpu type and gcc version, then outputs appropriate
 compiler options to best target code for that cpu. If no options exist
 to target the current cpu then nothing is output.
 .Pp
@@ -22,7 +22,7 @@
 .Pa cc
 found in the path.
 .Sh ENVIRONMENT
-The makefile fragment
+The BSD makefile fragment
 .Pa @PREFIX@/share/mk/cpuflags.mk
 will set the following
 .Xr make 1
@@ -59,20 +59,10 @@
  .sinclude "@PREFIX@/share/mk/cpuflags.mk"
 .Ed
 .Pp
-Those desiring further optimisation can install the lang/gcc3 package, and
-add the following to
-.Pa /etc/mk.conf
-instead:
-.Bd -literal -offset indent
- .sinclude "@PREFIX@/share/examples/gcc/mk.conf"
- .sinclude "@PREFIX@/share/mk/cpuflags.mk"
-.Ed
-.Pp
 To experiment with optimisations that can break generated code there is
 optimize_gcc.mk. This is unsupported, but for full effect add the following to
 .Pa /etc/mk.conf :
 .Bd -literal -offset indent
- .sinclude "@PREFIX@/share/examples/gcc/mk.conf"
  .sinclude "@PREFIX@/share/mk/cpuflags.mk"
  .sinclude "@PREFIX@/share/mk/optimize_gcc.mk"
 .Ed
@@ -87,7 +77,8 @@
 .Nm
 still needs to learn about more cpu types - updates welcomed
 to
-.Aq abs%NetBSD.org@localhost .
+.Aq abs%NetBSD.org@localhost . Also the Makefile fragments and examples are BSD make
+specific - gmake examples welcomed.
 .Pp
 Currently
 .Nm
diff -r 18c5aa3d4c76 -r 92bfee8c7bdd devel/cpuflags/files/cpuflags.Linux
--- a/devel/cpuflags/files/cpuflags.Linux       Fri Apr 29 12:39:25 2005 +0000
+++ b/devel/cpuflags/files/cpuflags.Linux       Fri Apr 29 12:56:05 2005 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: cpuflags.Linux,v 1.14 2005/04/27 10:55:21 abs Exp $
+# $NetBSD: cpuflags.Linux,v 1.15 2005/04/29 12:56:05 abs Exp $
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
 
 AWK=awk
@@ -32,6 +32,7 @@
        "AMD Duron(TM)")                FLAGS='-march=athlon'           ;;
        "AMD Athlon(tm) XP "*)          FLAGS='-march=athlon-xp'        ;;
        "Celeron (Coppermine)")         FLAGS='-march=pentium3'         ;;
+       "Pentium III (Katmai)")         FLAGS='-march=pentium3'         ;;
        "Pentium III (Coppermine)")     FLAGS='-march=pentium3'         ;;
        "Intel(R) Pentium(R) III Mobile CPU"*) FLAGS='-march=pentium3m' ;;
        "Intel(R) Pentium(R) M processor"*) FLAGS='-march=pentium3m'    ;;



Home | Main Index | Thread Index | Old Index