1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/textproc/sdocbook-xml/Makefile
Baptiste Daroussin 963854440c Add a new keywork xmlcatmgr
It simplifies the handling of the XML and SMGL catalog
It brings a big of consistency by always specifying the catalog path absolute
instead of mixing absolute and relative path.
The keyword is also written a PKG_ROOTDIR friendly to simplify cross installing

Reviewed by:	hrs
Differential Revision:	https://reviews.freebsd.org/D6539
2016-05-24 22:32:49 +00:00

40 lines
1013 B
Makefile

# Created by: KIRIYAMA Kazuhiko <kiri@FreeBSD.org>
# $FreeBSD$
PORTNAME= sdocbook-xml
PORTVERSION= 1.1
PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= textproc
MASTER_SITES= http://www.oasis-open.org/docbook/xml/simple/${PORTVERSION}/
DISTNAME= docbook-simple-${PORTVERSION}
MAINTAINER= gabor@FreeBSD.org
COMMENT= "Simplified" DocBook XML DTD
RUN_DEPENDS+= xmlcatmgr:textproc/xmlcatmgr
USES= zip
NO_MTREE= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
CATALOG_FILES= catalog catalog.xml
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}
DTD_NAME= sdocbook
DTD_VERSION= ${PORTVERSION}
DTD_SUBDIR= /dtd
DTDDIR= share/xml/${DTD_NAME}/${DTD_VERSION}${DTD_SUBDIR}
PLIST_SUB+= DTDDIR=${DTDDIR}
SUB_FILES= ${CATALOG_FILES}
SUB_LIST+= DTDDIR=${PREFIX}/${DTDDIR}
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${DTDDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "*.css *.dtd *.mod" ${STAGEDIR}${PREFIX}/${DTDDIR}
.for f in ${CATALOG_FILES}
${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/${DTDDIR}
.endfor
.include <bsd.port.mk>