Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+6 -2
View File
@@ -1,2 +1,6 @@
cpuflags returns the appropriate gcc flags to optimise compilation for the
current CPU.
cpuflags returns the appropriate gcc flags to optimise compilation
for the current CPU.
With modern gcc it is probably best to just set -march=native for
at least x86, but cpuflags may still be useful for older and less
usual architectures
+3 -2
View File
@@ -1,12 +1,13 @@
# $NetBSD: Makefile,v 1.152 2015/01/04 04:48:10 dholland Exp $
# $NetBSD: Makefile,v 1.153 2016/01/28 19:11:30 abs Exp $
DISTNAME= cpuflags-1.42
DISTNAME= cpuflags-1.43
CATEGORIES= devel sysutils
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= abs@NetBSD.org
COMMENT= Determine compiler flags to best target current cpu
LICENSE= 2-clause-bsd
# each OS needs explicit support (files/subr_*)
ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* SunOS-*-* FreeBSD-*-* Darwin-*-*
+3 -3
View File
@@ -1,4 +1,4 @@
# $NetBSD: subr_NetBSD,v 1.12 2010/12/05 11:19:39 abs Exp $
# $NetBSD: subr_NetBSD,v 1.13 2016/01/28 19:11:30 abs Exp $
AWK=awk
SED=sed
@@ -44,9 +44,10 @@ extract_x86_cpu_vars()
# cpu_name="NAME" taken from the first cpu0: line
# cpu_brand="BRAND" the CPU branding string
echo "$cpu_details" | $AWK '
{ gsub("[()]","") }
{ if (/cpu0:/ && !n) { sub("cpu0: ",""); n=1; print "cpu_name=\""$0"\"" } }
/cpu0: ".*"/ { sub("[^\"]*", ""); print "cpu_brand="$0 }
/cpu0: features/ {
/cpu0: features\d?/ {
sub(".*<","");
sub(">.*","");
gsub("[^,A-Z0-9]","_");
@@ -57,7 +58,6 @@ extract_x86_cpu_vars()
/cpu0: family/ {
for (i = 2; i < NF; i = i + 2) {
f=$(i+1);
sub(/^0/, "", f);
print "cpu_"$i"="f
}
}