diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-11-05 15:27:41 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-11-05 15:27:41 +0000 |
commit | dc1037e6d87281471628a188e5d27d92a8467add (patch) | |
tree | effd46065fbc14dbaecd03107a8474be21d90a45 /devel/astyle/Makefile | |
parent | c20ee7f2b69397d7ab41f2275d6b36a34846972d (diff) | |
download | pkgsrc-dc1037e6d87281471628a188e5d27d92a8467add.tar.gz |
Fix build with gcc3.
Diffstat (limited to 'devel/astyle/Makefile')
-rw-r--r-- | devel/astyle/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/astyle/Makefile b/devel/astyle/Makefile index 4fc7e6f7153..40d665a4d7b 100644 --- a/devel/astyle/Makefile +++ b/devel/astyle/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2003/07/21 16:43:15 martti Exp $ +# $NetBSD: Makefile,v 1.6 2003/11/05 15:27:41 jmmv Exp $ # DISTNAME= astyle_1.13.6.1 @@ -13,6 +13,12 @@ COMMENT= Reindenter and reformatter of C++, C and Java source code HTMLDIR= ${PREFIX}/share/doc/html/astyle +.include "../../mk/bsd.prefs.mk" + +.if !empty(CC_VERSION:Mgcc-2*) +CFLAGS+= -DASTYLE_GCC2 +.endif + post-extract: ${MV} -f ${WRKSRC}/makefile ${WRKSRC}/Makefile |