Updated cpuflags to 0.24

If BSD_PKG_MK is not defined, only touch COPTS, not CFLAGS etc.
This commit is contained in:
abs 2002-06-27 20:49:02 +00:00
parent 8aca95c13e
commit fd65f65333
2 changed files with 19 additions and 8 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.23 2002/06/21 11:35:16 abs Exp $
# $NetBSD: Makefile,v 1.24 2002/06/27 20:49:02 abs Exp $
#
DISTNAME= cpuflags-0.23
DISTNAME= cpuflags-0.24
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty

View file

@ -1,4 +1,4 @@
# $Id: cpuflags.mk,v 1.3 2002/01/03 11:54:47 abs Exp $
# $Id: cpuflags.mk,v 1.4 2002/06/27 20:49:02 abs Exp $
# Makefile include fragment to simplify use of cpuflags in pkgsrc
# abs@netbsd.org - freely distributable, no warrenties, stick no bills.
@ -14,16 +14,27 @@
# LOWER_CPU_DIR As CPU_FLAGS but all lower case
.if ! defined(CPU_FLAGS)
.ifndef CPU_FLAGS
CPU_FLAGS!=/usr/pkg/bin/cpuflags
CPU_DIR!=echo ${CPU_FLAGS} | sed 's/ //'
LOWER_CPU_DIR!=echo ${CPU_DIR} | tr A-Z a-z
# Make the flags available to make
MAKE_ENV+=CPU_FLAGS=${CPU_FLAGS} CPU_DIR=${CPU_DIR} LOWER_CPU_DIR=${LOWER_CPU_DIR}
.endif
.ifdef BSD_PKG_MK
# Try to catch the varuous package mechanisms
CFLAGS+=${CPU_FLAGS}
CXXFLAGS+=${CPU_FLAGS}
# Make the flags available to make
MAKE_ENV+=CPU_FLAGS=${CPU_FLAGS} CPU_DIR=${CPU_DIR}
# Override CCOPTIONS for imake
MAKE_FLAGS+=CCOPTIONS=${CPU_FLAGS}
.else
# Assume we are in the standard build system, only touch COPTS
COPTS+=${CPU_FLAGS}
.endif