mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
24efa94047
to unbreak gtk-doc as well as removes a ton of gross hacks to support the old location. Also, import some CVS patches from SK to fix some potential crashes when installing bad catalogs. While I tested this with a full SK database rebuild, problems may still occur. Please let me know if you encounter any issues with OMF files after this commit.
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# New ports collection makefile for: DocBook XML for ScrollKeeper
|
|
# Date created: 16 January 2003
|
|
# Whom: marcus@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= docbook-sk
|
|
PORTVERSION= 4.1.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://www.docbook.org/xml/${PORTVERSION}/
|
|
DISTNAME= docbkx${PORTVERSION:S/.//g}
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= XML version of the DocBook DTD version controlled for ScrollKeeper
|
|
|
|
RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
|
|
|
|
USE_ZIP= yes
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
PLIST_SUB= DTD_VERSION=${PORTVERSION} \
|
|
XMLCATMGR=${XMLCATMGR} \
|
|
DOCBOOKDIR=${DOCBOOKDIR} \
|
|
CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} \
|
|
CATALOG_PORTS_XML=${CATALOG_PORTS_XML}
|
|
|
|
DOCBOOKDIR= ${PREFIX}/share/xml/${PORTNAME:S/-sk//}/${PORTVERSION}
|
|
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
|
|
CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
|
|
CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
|
|
|
|
pre-install:
|
|
@[ -d ${DOCBOOKDIR}/ent ] || ${MKDIR} ${DOCBOOKDIR}/ent
|
|
|
|
do-install:
|
|
for file in `unzip -l ${DISTDIR}/${DISTFILES}|${AWK} '/:[0-9].*[^\/]$$/{print $$4}'`; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$$file ${DOCBOOKDIR}/$$file; \
|
|
done
|
|
|
|
post-install:
|
|
@${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${DOCBOOKDIR}/docbook.cat
|
|
@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add nextCatalog ${DOCBOOKDIR}/catalog.xml
|
|
|
|
.include <bsd.port.mk>
|