freebsd-ports/textproc/xhtml-11/Makefile
Mathieu Arnold 597afc47ba Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:25:16 +00:00

54 lines
1.5 KiB
Makefile

# Created by: Kimura Fuyuki <fuyuki@hadaly.org>
# $FreeBSD$
PORTNAME= xhtml
PORTVERSION= 1.1.${RECDATE}
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://www.w3.org/TR/2007/WD-xhtml11-${RECDATE}/
DISTNAME= xhtml11
PKGNAMESUFFIX= -11
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= W3C's XHTML 1.1 DTD
RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
RECDATE= 20070216
WRKSRC= ${WRKDIR}/xhtml11-${RECDATE}
NO_BUILD= yes
PLIST_SUB+= XMLCAT_ADD="${XMLCAT_ADD}" \
XMLCAT_RM="${XMLCAT_RM}" \
SGMLCAT_ADD="${SGMLCAT_ADD}" \
SGMLCAT_RM="${SGMLCAT_RM}"
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
SGMLCAT= ${PREFIX}/share/sgml/catalog.ports
XMLCAT= ${PREFIX}/share/xml/catalog.ports
XMLCAT_ADD= ${XMLCATMGR} -c ${XMLCAT} add nextCatalog \
${PREFIX}/${DTDDIR}/catalog.xml
XMLCAT_RM= ${XMLCATMGR} -c ${XMLCAT} remove \
${PREFIX}/${DTDDIR}/catalog.xml
SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
${PREFIX}/${DTDDIR}/xhtml11.cat
SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
${PREFIX}/${DTDDIR}/xhtml11.cat
DTDDIR= share/xml/${PORTNAME}/1.1/dtd
XSDDIR= share/xml/${PORTNAME}/1.1/xsd
post-patch:
${REINPLACE_CMD} -i '' 's|SGMLDECL "xml1.dcl"|-- SGMLDECL "xml1.dcl" --|g' \
${WRKSRC}/DTD/xhtml11.cat
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${DTDDIR}
${INSTALL_DATA} ${WRKSRC}/DTD/* ${STAGEDIR}${PREFIX}/${DTDDIR}
${INSTALL_DATA} ${FILESDIR}/catalog.xml ${STAGEDIR}${PREFIX}/${DTDDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${XSDDIR}
${INSTALL_DATA} ${WRKSRC}/SCHEMA/* ${STAGEDIR}${PREFIX}/${XSDDIR}
.include <bsd.port.mk>