aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-02-18 13:09:58 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-02-18 13:09:58 +0000
commit7bba8db505ff15722430e7bfb4cf17827c91e09c (patch)
treeada09a58f36a5f6b7de23d6183d79d9e8c5c225a /textproc/docbook
parent6df414f4acd2f8e222d245f9ddc2ed568b07a139 (diff)
Fix docbook-500, the files were one level too deep.
Pointy hat to: mat Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=344882
Diffstat (limited to 'textproc/docbook')
-rw-r--r--textproc/docbook/bsd.docbook.mk13
1 files changed, 9 insertions, 4 deletions
diff --git a/textproc/docbook/bsd.docbook.mk b/textproc/docbook/bsd.docbook.mk
index 9f8ae0f55584..a9713a3047e3 100644
--- a/textproc/docbook/bsd.docbook.mk
+++ b/textproc/docbook/bsd.docbook.mk
@@ -35,9 +35,12 @@ SGMLCAT= share/sgml/catalog.ports
ISOCAT= share/sgml/iso8879/catalog
XMLCAT= share/xml/catalog.ports
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}
-DTD_SUBDIR?= ${PORTNAME}
+DTD_NAME?= ${PORTNAME}
DTD_VERSION?= ${PORTVERSION}
-DTDDIR?= share/${XML_SGML}/${DTD_SUBDIR}/${DTD_VERSION}/dtd
+.ifndef NO_DTD_SUBDIR
+DTD_SUBDIR?= /dtd
+.endif
+DTDDIR?= share/${XML_SGML}/${DTD_NAME}/${DTD_VERSION}${DTD_SUBDIR}
PLIST_SUB+= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} XMLCAT=${XMLCAT} \
DTDDIR=${DTDDIR}
@@ -72,8 +75,10 @@ do-install:
${MV} ${STAGEDIR}${PREFIX}/${DTDDIR}/${f} ${STAGEDIR}${DOCSDIR}
. endfor
.endif
- @${ECHO_CMD} "@dirrm share/${XML_SGML}/${DTD_SUBDIR}/${DTD_VERSION}" >> ${TMPPLIST}
- @${ECHO_CMD} "@dirrmtry share/${XML_SGML}/${DTD_SUBDIR}" >> ${TMPPLIST}
+.ifndef NO_DTD_SUBDIR
+ @${ECHO_CMD} "@dirrm share/${XML_SGML}/${DTD_NAME}/${DTD_VERSION}" >> ${TMPPLIST}
+.endif
+ @${ECHO_CMD} "@dirrmtry share/${XML_SGML}/${DTD_NAME}" >> ${TMPPLIST}
.if defined(PORTDOCS)
@${ECHO_CMD} "@dirrmtry share/doc/${PORTNAME}" >> ${TMPPLIST}
.endif