Source-Changes-HG archive

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

[src/trunk]: src/tools/mandoc Update tool version for mdocml 1.9.15.



details:   https://anonhg.NetBSD.org/src/rev/0211ca78c483
branches:  trunk
changeset: 752217:0211ca78c483
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Feb 19 23:03:02 2010 +0000

description:
Update tool version for mdocml 1.9.15.

diffstat:

 tools/mandoc/Makefile |  22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r d8a5bb202115 -r 0211ca78c483 tools/mandoc/Makefile
--- a/tools/mandoc/Makefile     Fri Feb 19 23:02:41 2010 +0000
+++ b/tools/mandoc/Makefile     Fri Feb 19 23:03:02 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2009/10/30 17:18:51 joerg Exp $
+#      $NetBSD: Makefile,v 1.4 2010/02/19 23:03:02 joerg Exp $
 
 HOSTPROGNAME=  ${_TOOL_PREFIX}mandoc
 HOST_SRCDIR=   external/bsd/mdocml/bin/mandoc
@@ -10,6 +10,24 @@
 NETBSD_MINOR!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -n
 NETBSD_OSNAME= "NetBSD ${NETBSD_MINOR}"
 
-HOST_CPPFLAGS+=        -DOSNAME=${NETBSD_OSNAME:Q}
+HOST_CPPFLAGS+=        -DOSNAME=${NETBSD_OSNAME:Q} -DHAVE_CONFIG_H -I.
+
+DPSRCS+=       config.h
+
+config.h: config.h.pre config.h.post
+       rm -f config.log
+       ( cat ${DISTDIR}/config.h.pre; \
+       echo; \
+       if $(CC) $(CFLAGS) -Werror -c ${DISTDIR}/test-strlcat.c >> config.log 2>&1; then \
+               echo '#define HAVE_STRLCAT'; \
+               rm test-strlcat.o; \
+       fi; \
+       if $(CC) $(CFLAGS) -Werror -c ${DISTDIR}/test-strlcpy.c >> config.log 2>&1; then \
+               echo '#define HAVE_STRLCPY'; \
+               rm test-strlcpy.o; \
+       fi; \
+       echo; \
+       cat ${DISTDIR}/config.h.post \
+       ) > $@
 
 .include "${.CURDIR}/../Makefile.host"



Home | Main Index | Thread Index | Old Index