diff options
Diffstat (limited to 'textproc/docbook-430/Makefile')
-rw-r--r-- | textproc/docbook-430/Makefile | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/textproc/docbook-430/Makefile b/textproc/docbook-430/Makefile new file mode 100644 index 000000000000..a3a9277a1a08 --- /dev/null +++ b/textproc/docbook-430/Makefile @@ -0,0 +1,74 @@ +# New ports collection makefile for: docbook-430 +# Date created: 02 Apr 2004 +# Whom: hrs +# +# $FreeBSD$ + +PORTNAME= docbook +PORTVERSION= 4.3 +CATEGORIES= textproc +MASTER_SITES= http://docbook.org/sgml/${PORTVERSION}/ + +MAINTAINER= hrs@FreeBSD.org +COMMENT= DocBook/SGML DTD V4.3, designed for technical documentation + +RUN_DEPENDS= ${LOCALBASE}/${ISOCAT}:${PORTSDIR}/textproc/iso8879 \ + ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr + +USE_ZIP= yes +NO_BUILD= yes +NO_WRKSUBDIR= yes +LATEST_LINK= ${PORTNAME}-430 +PLIST= ${WRKSRC}/pkg-plist + +SGMLCATBASE= share/sgml +DTD_NAME= ${PORTNAME} +DTD_VERSION= ${PORTVERSION} +ISOCAT= ${SGMLCATBASE}/iso8879/catalog + +XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr +CATALOG_PORTS_SGML= ${PREFIX}/${SGMLCATBASE}/catalog.ports +REGIST_CAT_FLAGS_SGML= -sc ${CATALOG_PORTS_SGML} \ + add CATALOG ${DTD_NAME}/${DTD_VERSION}/catalog +UNREGIST_CAT_FLAGS_SGML= -sc ${CATALOG_PORTS_SGML} \ + remove CATALOG ${DTD_NAME}/${DTD_VERSION}/catalog + +DOC_FILES= ChangeLog README +DTDDIR= ${SGMLCATBASE}/${DTD_NAME}/${DTD_VERSION} +DTD_FILES= calstblx.dtd catalog.xml dbcentx.mod dbgenent.mod \ + dbhierx.mod dbnotnx.mod dbpoolx.mod docbook.cat docbook.dcl \ + docbook.dtd docbookx.dtd htmltblx.mod soextblx.dtd catalog + +post-extract: + ${CP} ${WRKSRC}/docbook.cat ${WRKSRC}/catalog + +post-patch: + ${ECHO_CMD} 'CATALOG "${LOCALBASE}/${ISOCAT}"' >> ${WRKSRC}/catalog + +pre-install: + (for F in ${DTD_FILES}; do \ + ${ECHO_CMD} "${DTDDIR}/$${F}"; \ + done;\ + ${ECHO_CMD} "@dirrm ${DTDDIR}";\ + ${ECHO_CMD} "@unexec rmdir %D/${SGMLCATBASE}/${DTD_NAME} 2> /dev/null || true"; ) > ${PLIST} +.if !defined(NOPORTDOCS) + (for F in ${DOC_FILES}; do \ + ${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \ + done;\ + ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST} +.endif + ${ECHO_CMD} "@exec ${XMLCATMGR} ${REGIST_CAT_FLAGS_SGML}" >> ${PLIST} + ${ECHO_CMD} "@unexec ${XMLCATMGR} ${UNREGIST_CAT_FLAGS_SGML}" >> ${PLIST} + +do-install: + ${MKDIR} ${PREFIX}/${DTDDIR} + ${INSTALL_DATA} ${DTD_FILES:S,^,${WRKSRC}/,} ${PREFIX}/${DTDDIR} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES:S,^,${WRKSRC}/,} ${DOCSDIR} +.endif + +post-install: + -${XMLCATMGR} ${REGIST_CAT_FLAGS_SGML} + +.include <bsd.port.mk> |