PORTNAME=	xhtml-modularization
PORTVERSION=	1.0.${RECDATE}
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	https://www.w3.org/TR/2001/REC-xhtml-modularization-${RECDATE}/
DISTNAME=	xhtml-modularization

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	W3C's Modularization of XHTML DTDs and docs
WWW=		https://www.w3.org/TR/xhtml-modularization/

LICENSE=	W3C_DOCUMENT_LICENSE
LICENSE_NAME=	W3C Document License
LICENSE_TEXT=	See https://www.w3.org/copyright/document-license/ for detail
LICENSE_PERMS=	auto-accept dist-mirror dist-sell pkg-mirror pkg-sell

RUN_DEPENDS=	xmlcatmgr:textproc/xmlcatmgr

USES=		tar:tgz

NO_ARCH=	yes
NO_BUILD=	yes
NO_MTREE=	yes

SUB_FILES=	catalog.xml
WRKSRC=		${WRKDIR}/xhtml-modularization-${RECDATE}

RECDATE=	20010410

OPTIONS_DEFINE=	DOCS EXAMPLES

.include "${.CURDIR}/contents.inc"

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/xml/dtd/xhtml-modularization
.for f in ${contents_DTD}
	${INSTALL_DATA} ${WRKSRC}/DTD/${f} ${STAGEDIR}${PREFIX}/share/xml/dtd/xhtml-modularization/${f}
.endfor
	${INSTALL_DATA} ${WRKDIR}/catalog.xml ${STAGEDIR}${PREFIX}/share/xml/dtd/xhtml-modularization/catalog.xml

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/images
.for f in ${contents_DOC}
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f}
.endfor

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${contents_EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/DTD/examples/${f} ${STAGEDIR}${EXAMPLESDIR}/${f}
.endfor
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/templates
.for f in ${contents_TEMPLATES}
	${INSTALL_DATA} ${WRKSRC}/DTD/templates/${f} ${STAGEDIR}${EXAMPLESDIR}/templates/${f}
.endfor

.include <bsd.port.mk>
