summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorabs <abs>2005-09-20 10:58:23 +0000
committerabs <abs>2005-09-20 10:58:23 +0000
commit12a7f02060ebad2b06a97444562bf4c6846cff8e (patch)
tree689e7253ad0a5dd252df8da010251b302362c942 /devel
parentf1a7ef0406dce8c58dd127c952a43f38f41450c2 (diff)
downloadpkgsrc-12a7f02060ebad2b06a97444562bf4c6846cff8e.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')
-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