Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= xhtml |
8 |
PORTNAME= xhtml |
9 |
PORTVERSION= 1.0.20000126 |
9 |
PORTVERSION= 1.0.20000126 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= textproc |
11 |
CATEGORIES= textproc |
11 |
#MASTER_SITES= http://www.w3.org/TR/xhtml1/ |
12 |
#MASTER_SITES= http://www.w3.org/TR/xhtml1/ |
12 |
MASTER_SITES= ${MASTER_SITE_LOCAL} |
13 |
MASTER_SITES= ${MASTER_SITE_LOCAL} |
Lines 16-36
Link Here
|
16 |
MAINTAINER= kuriyama@FreeBSD.org |
17 |
MAINTAINER= kuriyama@FreeBSD.org |
17 |
COMMENT= W3C's XHTML DTD |
18 |
COMMENT= W3C's XHTML DTD |
18 |
|
19 |
|
19 |
BUILD_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog |
20 |
RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr |
20 |
RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog |
|
|
21 |
|
21 |
|
22 |
USE_ZIP= YES |
22 |
USE_ZIP= YES |
23 |
NO_MTREE= YES |
23 |
NO_MTREE= YES |
24 |
NO_BUILD= YES |
24 |
NO_BUILD= YES |
25 |
WRKSRC= ${WRKDIR}/xhtml1 |
25 |
WRKSRC= ${WRKDIR}/xhtml1 |
|
|
26 |
PLIST_SUB= XMLCATMGR=${XMLCATMGR} |
27 |
PLIST_SUB+= DTDDIR=${DTDDIR} |
28 |
PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} |
29 |
PLIST_SUB+= CATALOG_PORTS_XML=${CATALOG_PORTS_XML} |
26 |
|
30 |
|
27 |
INSTDIR= ${PREFIX}/share/xml |
31 |
INSTDIR= ${PREFIX}/share/xml |
28 |
DTDDIR= ${INSTDIR}/dtd/xhtml |
32 |
DTDDIR= ${INSTDIR}/dtd/xhtml |
29 |
DTDFILES= xhtml-lat1.ent xhtml-special.ent xhtml-symbol.ent \ |
33 |
DTDFILES= xhtml-lat1.ent xhtml-special.ent xhtml-symbol.ent \ |
30 |
xhtml.soc xhtml1-frameset.dtd xhtml1-strict.dtd \ |
34 |
xhtml.soc xhtml1-frameset.dtd xhtml1-strict.dtd \ |
31 |
xhtml1-transitional.dtd xhtml1.dcl |
35 |
xhtml1-transitional.dtd xhtml1.dcl ${WRKSRC}/catalog.xml |
32 |
MKCATALOG= ${PREFIX}/sbin/mkcatalog |
36 |
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr |
33 |
PLIST_SUB= MKCATALOG=${MKCATALOG} |
37 |
CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports |
|
|
38 |
CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports |
39 |
|
40 |
post-patch: |
41 |
${SED} -e 's#@@DTDDIR@@#${DTDDIR}#' < ${FILESDIR}/catalog.xml > ${WRKSRC}/catalog.xml |
34 |
|
42 |
|
35 |
pre-install: |
43 |
pre-install: |
36 |
@[ -d ${DTDDIR} ] || ${MKDIR} ${DTDDIR} |
44 |
@[ -d ${DTDDIR} ] || ${MKDIR} ${DTDDIR} |
Lines 39-44
Link Here
|
39 |
@(cd ${WRKSRC}/DTD; ${INSTALL_DATA} ${DTDFILES} ${DTDDIR}) |
47 |
@(cd ${WRKSRC}/DTD; ${INSTALL_DATA} ${DTDFILES} ${DTDDIR}) |
40 |
|
48 |
|
41 |
post-install: |
49 |
post-install: |
42 |
@${MKCATALOG} -c ${INSTDIR}/catalog -q install dtd/xhtml xhtml.soc |
50 |
${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${DTDDIR}/xhtml.soc |
|
|
51 |
${XMLCATMGR} -c ${CATALOG_PORTS_XML} add nextCatalog ${DTDDIR}/catalog.xml |
43 |
|
52 |
|
44 |
.include <bsd.port.mk> |
53 |
.include <bsd.port.mk> |