aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-02-18 16:17:40 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-02-18 16:17:40 +0000
commita78004a03ed9fcc2dcbc3abf0738f95fce5df3ef (patch)
treec575fd6ef47ad3c46d5044f4335452bf37ce79fc /textproc/docbook
parent9aab61944840ed04ab2fc12b3a554f814d8fbe16 (diff)
downloadports-a78004a03ed9fcc2dcbc3abf0738f95fce5df3ef.tar.gz
ports-a78004a03ed9fcc2dcbc3abf0738f95fce5df3ef.zip
Convert textproc/sdocbook to staging.
Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=344920
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 a9713a3047e3..f1a01baadb09 100644
--- a/textproc/docbook/bsd.docbook.mk
+++ b/textproc/docbook/bsd.docbook.mk
@@ -30,6 +30,7 @@ NO_BUILD= yes
EXTRACT_AFTER_ARGS= -s ,^,${DISTNAME}/,
.endif
+CATALOG_FILES?= catalog
XMLCATMGR= bin/xmlcatmgr
SGMLCAT= share/sgml/catalog.ports
ISOCAT= share/sgml/iso8879/catalog
@@ -43,8 +44,10 @@ DTD_SUBDIR?= /dtd
DTDDIR?= share/${XML_SGML}/${DTD_NAME}/${DTD_VERSION}${DTD_SUBDIR}
PLIST_SUB+= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} XMLCAT=${XMLCAT} \
DTDDIR=${DTDDIR}
+SUB_LIST+= DTDDIR=${PREFIX}/${DTDDIR}
-.if !defined(PORTDOCS)
+
+.if !defined(PORTDOCS) && !defined(MANUAL_DOCS)
PORTDOCS= *.txt
.endif
@@ -60,17 +63,19 @@ post-patch:
@${ECHO_CMD} 'CATALOG "${LOCALBASE}/${ISOCAT}"' >> ${WRKSRC}/catalog
@${RM} ${WRKSRC}/catalog.orig
.elifndef HAS_MANUAL_CATALOG_FILE
-SUB_FILES= catalog
+SUB_FILES= ${CATALOG_FILES}
.endif
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${DTDDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${DTDDIR}
.if !defined(HAS_CATALOG_FILE) && !defined(HAS_MANUAL_CATALOG_FILE)
- ${INSTALL_DATA} ${WRKDIR}/catalog ${STAGEDIR}${PREFIX}/${DTDDIR}
+. for f in ${CATALOG_FILES}
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/${DTDDIR}
+. endfor
.endif
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
.if defined(PORTDOCS) && !defined(MANUAL_DOCS)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
. for f in ${PORTDOCS}
${MV} ${STAGEDIR}${PREFIX}/${DTDDIR}/${f} ${STAGEDIR}${DOCSDIR}
. endfor