summaryrefslogtreecommitdiff
path: root/devel/gtexinfo
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-05-21 12:30:16 +0000
committertnn <tnn@pkgsrc.org>2008-05-21 12:30:16 +0000
commitd4a626956d36f0cdb69e2e0cf35ac39aa12340dd (patch)
tree6af7699c5690ac52aa1c96d680235588360575e5 /devel/gtexinfo
parent5659b63d22a776b60be9ec6f8ffe18623e4b8597 (diff)
downloadpkgsrc-d4a626956d36f0cdb69e2e0cf35ac39aa12340dd.tar.gz
Don't use a macro named __(), because __ has internal use in OSF1 system
headers. Supposedly fixed already in upstream CVS. This closes PR pkg/38400 from Hans Rosenfeld.
Diffstat (limited to 'devel/gtexinfo')
-rw-r--r--devel/gtexinfo/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/gtexinfo/Makefile b/devel/gtexinfo/Makefile
index 3584a0a48b2..a96b5723fd1 100644
--- a/devel/gtexinfo/Makefile
+++ b/devel/gtexinfo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.70 2008/03/05 22:26:46 jlam Exp $
+# $NetBSD: Makefile,v 1.71 2008/05/21 12:30:16 tnn Exp $
DISTNAME= texinfo-4.11
PKGNAME= g${DISTNAME}
@@ -36,6 +36,13 @@ PLIST_SRC+= ${PKGDIR}/PLIST.locale
CONFIGURE_ARGS+= --disable-nls
.endif
+SUBST_CLASSES+= macro
+SUBST_STAGE.macro= pre-configure
+SUBST_MESSAGE.macro= Replacing use of __ macro.
+SUBST_FILES.macro= makeinfo/*.c makeinfo/makeinfo.h
+SUBST_SED.macro= -e 's,\#define __(s) getdocumenttext(s),,'
+SUBST_SED.macro+= -e 's,__(",getdocumenttext(",g'
+
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"