Module Name:    src
Committed By:   joerg
Date:           Wed Oct 21 18:04:52 UTC 2009

Added Files:
        src/external/bsd/mdocml: Makefile Makefile.inc prepare-import.sh
        src/external/bsd/mdocml/bin: Makefile Makefile.inc
        src/external/bsd/mdocml/bin/mandoc: Makefile
        src/external/bsd/mdocml/lib: Makefile Makefile.inc
        src/external/bsd/mdocml/lib/libman: Makefile
        src/external/bsd/mdocml/lib/libmdoc: Makefile
        src/external/bsd/mdocml/man: Makefile
        src/tools/mandoc: Makefile

Log Message:
Build glue for mdocml and for mandoc as standalone tool.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/mdocml/Makefile \
    src/external/bsd/mdocml/Makefile.inc \
    src/external/bsd/mdocml/prepare-import.sh
cvs rdiff -u -r0 -r1.1 src/external/bsd/mdocml/bin/Makefile \
    src/external/bsd/mdocml/bin/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/external/bsd/mdocml/bin/mandoc/Makefile
cvs rdiff -u -r0 -r1.1 src/external/bsd/mdocml/lib/Makefile \
    src/external/bsd/mdocml/lib/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/external/bsd/mdocml/lib/libman/Makefile
cvs rdiff -u -r0 -r1.1 src/external/bsd/mdocml/lib/libmdoc/Makefile
cvs rdiff -u -r0 -r1.1 src/external/bsd/mdocml/man/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/mandoc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/bsd/mdocml/Makefile
diff -u /dev/null src/external/bsd/mdocml/Makefile:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/Makefile	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+SUBDIR= 	lib .WAIT bin man
+
+.include <bsd.subdir.mk>
Index: src/external/bsd/mdocml/Makefile.inc
diff -u /dev/null src/external/bsd/mdocml/Makefile.inc:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/Makefile.inc	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+.include <bsd.own.mk>
+
+VERSION=	1.9.9
+
+CPPFLAGS+=	-DVERSION=\"${VERSION}\"
+
+DISTDIR:=	${.PARSEDIR}/dist
+
+.PATH:	${DISTDIR}
+
+.for _LIB in man mdoc
+MDOCMLOBJDIR.${_LIB} !=	cd ${.PARSEDIR}/lib/lib${_LIB} && ${PRINTOBJDIR}
+MDOCMLLIB.${_LIB}=	${MDOCMLOBJDIR.${_LIB}}/lib${_LIB}.a
+.endfor
+
+WARNS?=	4
Index: src/external/bsd/mdocml/prepare-import.sh
diff -u /dev/null src/external/bsd/mdocml/prepare-import.sh:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/prepare-import.sh	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,14 @@
+#/bin/sh
+
+set -e
+
+cd dist
+rm -rf ChangeLog.xsl Makefile example.style.css index.css *.sgml
+
+uuencode external.png < external.png > external.png.uu
+
+rm external.png
+
+for f in [a-z]*; do
+	sed 's/\$Id: prepare-import.sh,v 1.1 2009/10/21 18:04:52 joerg Exp $Vendor-Id:/' < $f > $f.new && mv $f.new $f
+done

Index: src/external/bsd/mdocml/bin/Makefile
diff -u /dev/null src/external/bsd/mdocml/bin/Makefile:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/bin/Makefile	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+SUBDIR= 	mandoc
+
+.include <bsd.subdir.mk>
Index: src/external/bsd/mdocml/bin/Makefile.inc
diff -u /dev/null src/external/bsd/mdocml/bin/Makefile.inc:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/bin/Makefile.inc	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+.include "${.PARSEDIR}/../Makefile.inc"

Index: src/external/bsd/mdocml/bin/mandoc/Makefile
diff -u /dev/null src/external/bsd/mdocml/bin/mandoc/Makefile:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/bin/mandoc/Makefile	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+.include <bsd.own.mk>
+
+PROG=		mandoc
+
+SRCS=		main.c mdoc_term.c chars.c term.c tree.c compat.c \
+	        man_term.c html.c mdoc_html.c man_html.c out.c
+
+.ifndef HOSTPROG
+DPADD+= 	${MDOCMLLIB.man} ${MDOCMLLIB.mdoc}
+LDADD+= 	-L${MDOCMLOBJDIR.man} -lman -L${MDOCMLOBJDIR.mdoc} -lmdoc
+.else
+SRCS.libman!=	cd ${.PARSEDIR}/../../lib/libman && ${MAKE} -V '$${SRCS}'
+SRCS.libmdoc!=	cd ${.PARSEDIR}/../../lib/libmdoc && ${MAKE} -V '$${SRCS}'
+
+SRCS+=		${SRCS.libman} ${SRCS.libmdoc:Nmandoc.c}
+.endif
+
+.include <bsd.prog.mk>

Index: src/external/bsd/mdocml/lib/Makefile
diff -u /dev/null src/external/bsd/mdocml/lib/Makefile:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/lib/Makefile	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+SUBDIR=	libman libmdoc
+
+.include <bsd.subdir.mk>
Index: src/external/bsd/mdocml/lib/Makefile.inc
diff -u /dev/null src/external/bsd/mdocml/lib/Makefile.inc:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/lib/Makefile.inc	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+.include "${.PARSEDIR}/../Makefile.inc"

Index: src/external/bsd/mdocml/lib/libman/Makefile
diff -u /dev/null src/external/bsd/mdocml/lib/libman/Makefile:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/lib/libman/Makefile	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,10 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+LIBISPRIVATE=	yes
+
+LIB=		man
+SRCS=		man_macro.c man.c man_hash.c man_validate.c \
+	        man_action.c mandoc.c man_argv.c
+MAN=		mdoc.3
+
+.include <bsd.lib.mk>

Index: src/external/bsd/mdocml/lib/libmdoc/Makefile
diff -u /dev/null src/external/bsd/mdocml/lib/libmdoc/Makefile:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/lib/libmdoc/Makefile	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+LIBISPRIVATE=	yes
+
+LIB=		mdoc
+SRCS=		mdoc_macro.c mdoc.c mdoc_hash.c mdoc_strings.c \
+		mdoc_argv.c mdoc_validate.c mdoc_action.c lib.c att.c \
+	        arch.c vol.c msec.c st.c mandoc.c
+MAN=		man.3
+
+.include <bsd.lib.mk>

Index: src/external/bsd/mdocml/man/Makefile
diff -u /dev/null src/external/bsd/mdocml/man/Makefile:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/external/bsd/mdocml/man/Makefile	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+MAN=		mandoc_man.7 mandoc_char.7 mandoc_mdoc.7 manuals.7
+
+.include <bsd.init.mk>
+
+mandoc_man.7:
+	${_MKTARGET_CREATE}
+	rm -f ${.TARGET}
+	${TOOL_CAT} ${DISTDIR}/man.7 > ${.TARGET}
+
+mandoc_mdoc.7:
+	${_MKTARGET_CREATE}
+	rm -f ${.TARGET}
+	${TOOL_CAT} ${DISTDIR}/mdoc.7 > ${.TARGET}
+
+CLEANFILES+=	mandoc_man.7 mandoc_mdoc.7
+
+.include <bsd.man.mk>

Index: src/tools/mandoc/Makefile
diff -u /dev/null src/tools/mandoc/Makefile:1.1
--- /dev/null	Wed Oct 21 18:04:52 2009
+++ src/tools/mandoc/Makefile	Wed Oct 21 18:04:52 2009
@@ -0,0 +1,6 @@
+#	$NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+HOSTPROGNAME=	${_TOOL_PREFIX}mandoc
+HOST_SRCDIR=	external/bsd/mdocml/bin/mandoc
+
+.include "${.CURDIR}/../Makefile.host"

Reply via email to