summaryrefslogtreecommitdiff
path: root/devel/cpuflags
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2005-09-20 10:58:23 +0000
committerabs <abs@pkgsrc.org>2005-09-20 10:58:23 +0000
commitfe8f75fc8efc5f30e417baaa08e26c4c88d036e2 (patch)
tree689e7253ad0a5dd252df8da010251b302362c942 /devel/cpuflags
parentdf2564145889dbd86ea7e6cc7e413cb68f3f8600 (diff)
downloadpkgsrc-fe8f75fc8efc5f30e417baaa08e26c4c88d036e2.tar.gz
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
Diffstat (limited to 'devel/cpuflags')
-rw-r--r--devel/cpuflags/Makefile4
-rw-r--r--devel/cpuflags/files/optimize_gcc.mk8
2 files changed, 7 insertions, 5 deletions
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