summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--news/cg/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/news/cg/Makefile b/news/cg/Makefile
index b7dfab84e20..38b267ee8ff 100644
--- a/news/cg/Makefile
+++ b/news/cg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2006/06/09 16:06:18 minskim Exp $
+# $NetBSD: Makefile,v 1.9 2006/10/20 19:18:45 schwarz Exp $
#
DISTNAME= cg-0.4
@@ -13,4 +13,13 @@ GNU_CONFIGURE= YES
USE_TOOLS+= lex
TEST_TARGET= check
+.include "../../mk/bsd.prefs.mk"
+.if !empty(LOWER_OPSYS:Mirix5*)
+# needs regex.h
+. include "../../pkgtools/libnbcompat/buildlink3.mk"
+SUBST_CLASSES+= regex_h
+SUBST_STAGE.regex_h= post-patch
+SUBST_FILES.regex_h= checkgroup.c
+SUBST_SED.regex_h= -e "s,<regex\.h>,<nbcompat/regex.h>,"
+.endif
.include "../../mk/bsd.pkg.mk"