From fe8f75fc8efc5f30e417baaa08e26c4c88d036e2 Mon Sep 17 00:00:00 2001 From: abs Date: Tue, 20 Sep 2005 10:58:23 +0000 Subject: Update cpuflags to 0.92 optimize_gcc.mk needs to know the name of the package that is currently being built. Unfortunately with pkgsrc there is no way to do this, and its previous attempts to derive PKGNAME (if not set) from DISTNAME broke the php usage ext.mk file. Use a temp variable to do the same thing without breaking other pkgsrc assumptions --- devel/cpuflags/Makefile | 4 ++-- devel/cpuflags/files/optimize_gcc.mk | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'devel/cpuflags') diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile index 4d886e168bb..37b3a231eb5 100644 --- a/devel/cpuflags/Makefile +++ b/devel/cpuflags/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.94 2005/09/09 16:03:32 abs Exp $ +# $NetBSD: Makefile,v 1.95 2005/09/20 10:58:23 abs Exp $ # -DISTNAME= cpuflags-0.91 +DISTNAME= cpuflags-0.92 CATEGORIES= sysutils MASTER_SITES= # empty DISTFILES= # empty diff --git a/devel/cpuflags/files/optimize_gcc.mk b/devel/cpuflags/files/optimize_gcc.mk index 052fde8323f..a9adb274b57 100644 --- a/devel/cpuflags/files/optimize_gcc.mk +++ b/devel/cpuflags/files/optimize_gcc.mk @@ -1,4 +1,4 @@ -# $Id: optimize_gcc.mk,v 1.23 2005/09/09 16:03:32 abs Exp $ +# $Id: optimize_gcc.mk,v 1.24 2005/09/20 10:58:23 abs Exp $ # This file is 'experimental' - which is doublespeak for unspeakably # ugly, and quite broken by design. @@ -20,8 +20,10 @@ COPT_FLAGS= # This is a horrible mess, but how else to adjust per package? -PKGNAME?=${DISTNAME} -PKGBASE?=${PKGNAME:C/-[^-]*$//} +TMPPKGNAME=${PKGNAME} +TMPPKGNAME?=${DISTNAME} +PKGBASE?=${TMPPKGNAME:C/-[^-]*$//} +TMPPKGNAME= COPT_FLAGS+=-ffast-math -fomit-frame-pointer -- cgit v1.2.3