pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/bison Move hacks from package Makefile to hacks.mk.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ae8f7b99c323
branches:  trunk
changeset: 483523:ae8f7b99c323
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Nov 14 07:24:37 2004 +0000

description:
Move hacks from package Makefile to hacks.mk.

diffstat:

 devel/bison/Makefile |   9 +--------
 devel/bison/hacks.mk |  18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 8 deletions(-)

diffs (43 lines):

diff -r 8bf072fecd41 -r ae8f7b99c323 devel/bison/Makefile
--- a/devel/bison/Makefile      Sun Nov 14 07:23:07 2004 +0000
+++ b/devel/bison/Makefile      Sun Nov 14 07:24:37 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2004/11/02 17:42:13 sketch Exp $
+# $NetBSD: Makefile,v 1.50 2004/11/14 07:24:37 jlam Exp $
 
 DISTNAME=              bison-1.875
 PKGREVISION=           1
@@ -24,11 +24,4 @@
 
 TEST_TARGET=           check
 
-.include "../../mk/compiler.mk"
-
-# quotearg_buffer_restyled() has issues with optimisation
-.if !empty(PKGSRC_COMPILER:Msunpro)
-BUILDLINK_TRANSFORM+=   rm:-O[0-9]*
-.endif
-
 .include "../../mk/bsd.pkg.mk"
diff -r 8bf072fecd41 -r ae8f7b99c323 devel/bison/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bison/hacks.mk      Sun Nov 14 07:24:37 2004 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: hacks.mk,v 1.1 2004/11/14 07:24:37 jlam Exp $
+
+.if !defined(BISON_HACKS_MK)
+BISON_HACKS_MK=        defined
+
+.include "../../mk/compiler.mk"
+
+### [Tue Nov  2 17:30:48 GMT 2004 : sketch]
+### bison's quotearg_buffer_restyled() has issues with certain compilers
+### (in particular, SunPro on Solaris/sparc) using optimisation flags.
+### The resulting bison with optimisation breaks on at least net/libIDL.
+###
+.if !empty(PKGSRC_COMPILER:Msunpro)
+PKG_HACKS+=            optimisation
+BUILDLINK_TRANSFORM+=   rm:-O[0-9]*
+.endif
+
+.endif # BISON_HACKS_MK



Home | Main Index | Thread Index | Old Index