aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook-sgml/Makefile
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-02-19 14:45:19 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-02-19 14:45:19 +0000
commitc924394e7bf4e87ffb44d02054f7c0a9723dc9ab (patch)
tree613726703c4327bff2ddfcb55ef1b9f90d377c79 /textproc/docbook-sgml/Makefile
parente28af42f42ba485c29a63d7b8076069b118600d1 (diff)
downloadports-c924394e7bf4e87ffb44d02054f7c0a9723dc9ab.tar.gz
ports-c924394e7bf4e87ffb44d02054f7c0a9723dc9ab.zip
Notes
Diffstat (limited to 'textproc/docbook-sgml/Makefile')
-rw-r--r--textproc/docbook-sgml/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/textproc/docbook-sgml/Makefile b/textproc/docbook-sgml/Makefile
new file mode 100644
index 000000000000..b72eb8cede58
--- /dev/null
+++ b/textproc/docbook-sgml/Makefile
@@ -0,0 +1,53 @@
+# $FreeBSD$
+
+PORTNAME= docbook
+PORTVERSION= 4.5
+CATEGORIES= textproc
+MASTER_SITES= ${DBFILES:C,(.*):(.*),http://www.oasis-open.org/docbook/sgml/\1/:\2,:C,:docbook-([0-9]+).([0-9]+),:db\1\2,}
+PKGNAMESUFFIX= -sgml
+DISTFILES= ${DBFILES:C,.*:(.*),\1.zip:\1,:C,:docbook-([0-9]+).([0-9]+),:db\1\2,}
+
+MAINTAINER= doceng@FreeBSD.org
+COMMENT= DocBook SGML DTD
+
+RUN_DEPENDS= ${LOCALBASE}/${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
+ ${LOCALBASE}/${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
+
+NO_BUILD= yes
+
+DBFILES=2.4.1:docbk241 3.0:docbk30 3.1:docbk31 \
+ 4.0:docbk40 4.1:docbk41 4.2:docbook-4.2 \
+ 4.3:docbook-4.3 4.4:docbook-4.4 4.5:docbook-4.5
+
+XMLCATMGR= bin/xmlcatmgr
+SGMLCAT= share/sgml/catalog.ports
+ISOCAT= share/sgml/iso8879/catalog
+DBKDIR= share/sgml/docbook
+DBCAT= ${PREFIX}/${DBKDIR}/catalog
+PLIST_SUB= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} DBKDIR=${DBKDIR}
+
+do-extract:
+ @${RM} -rf ${WRKDIR}
+ @${MKDIR} ${WRKDIR}
+.for df in ${DISTFILES:C,:.*,,}
+ @cd ${WRKDIR} && ${EXTRACT_CMD} \
+ ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${df} \
+ ${EXTRACT_AFTER_ARGS} -s ,^,${df:R}/,
+.endfor
+
+pre-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${DBKDIR}
+ ${ECHO_CMD} "CATALOG \"${LOCALBASE}/${ISOCAT}\"" \
+ > ${STAGEDIR}${DBCAT}
+
+.for D in ${DBFILES:C,:.*,,}
+do-install-${D:S/./_/g}:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/sgml/docbook/$D
+ cd ${WRKDIR}/${DBFILES:M${D}\:*:C,.*:,,} && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/sgml/docbook/$D
+ ${ECHO_CMD} "CATALOG \"${PREFIX}/share/sgml/docbook/$D/docbook.cat" \
+ >> ${STAGEDIR}${DBCAT}
+do-install: do-install-${D:S/./_/g}
+.endfor
+
+.include <bsd.port.mk>