Subject: x11/openmotif needs tbl
To: x11/openmotif maintainer <tech-pkg@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 09/25/2003 11:33:14
I have been doing lots of builds lately without any groff software.
tbl is used in:
comms/ifcico-cm/Makefile
x11/openmotif/Makefile
mail/fetchmail/Makefile
net/netatalk-asun/Makefile
devel/gettext needs groff too.
May I commit the following fix for x11/openmotif?
(Should I make it so TBL=tbl if /usr/bin/tbl it exists?)
diff -b -u -r1.22 Makefile
--- x11/openmotif/Makefile 2003/09/09 12:23:28 1.22
+++ x11/openmotif/Makefile 2003/09/25 18:24:56
@@ -41,6 +41,13 @@
USE_GNU_TOOLS+= make
.endif
+.if !exists(/usr/bin/tbl)
+BUILD_DEPENDS+= groff-[0-9]*:../../textproc/groff
+TBL= ${LOCALBASE}/bin/tbl
+.else
+TBL= /usr/bin/tbl
+.endif
+
post-extract:
${CP} ${FILESDIR}/NoInstall.rules ${WRKSRC}/config/cf/NoInstall.rules
${CP} ${FILESDIR}/OpenMotif.def ${WRKSRC}/config/cf/Motif.def
@@ -96,7 +103,7 @@
post-build:
cd ${WRKSRC}/doc/man; \
for file in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \
- tbl $${file} > $${file}.tblized; \
+ ${TBL} $${file} > $${file}.tblized; \
${MV} -f $${file}.tblized $${file}; \
done
Jeremy C. Reed
http://bsd.reedmedia.net/