freebsd-ports/textproc/xmlcatmgr/Makefile
Hiroki Sato fbed898dda Update to 2.1, which is the second stable version of the 2.x branch,
released on 2004/05/02.

* Fixed an attribute name when parsing the `uri' tag in XML catalogs; it
  expects `name', not `uriId'.

* Fixed a warning message when removing entries from an XML catalog.

* Added the `-p' flag which changes the behavior of the `add' action so
  that new entries are prepended instead of appended.

* Improved consistency of the lookup action so that it behaves equally
  for SGML and XML catalogs (this includes making XML lookup show all
  matching entries).

Approved by:	linimon (mentor)
2004-05-17 21:29:03 +00:00

65 lines
1.8 KiB
Makefile

# Ports collection makefile for: xmlcatmgr
# Date created: Sat May 24, 2003
# Whom: Hiroki Sato <hrs@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xmlcatmgr
PORTVERSION= 2.1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= hrs@FreeBSD.org
COMMENT= SGML and XML catalog manager
MAN1= xmlcatmgr.1
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configure.sh
CONFIGURE_ARGS= -D \
-p ${PREFIX} \
-d ${DOCSDIR} \
-c ${CATALOG_PORTS_XML} \
-C ${CATALOG_PORTS_SGML}
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+= -n doc
.endif
CONFIGURE_ENV= SED="${SED}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_DIR="${INSTALL_DATA_DIR}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
NOPORTDOCS="${NOPORTDOCS}"
BUILD_WRKSRC= ${WRKSRC}/work
INSTALL_WRKSRC= ${WRKSRC}/work
COMMONVARS= ${WRKDIR}/commonvars.sh
XMLCATMGR?= ${PREFIX}/bin/xmlcatmgr
CATALOG_MASTER_SGML?= ${PREFIX}/share/sgml/catalog
CATALOG_PORTS_SGML?= ${PREFIX}/share/sgml/catalog.ports
CATALOG_MASTER_XML?= ${PREFIX}/share/xml/catalog
CATALOG_PORTS_XML?= ${PREFIX}/share/xml/catalog.ports
PKGINSTALL= ${WRKDIR}/pkg-install.sh
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall.sh
post-build:
${TOUCH} ${COMMONVARS}
${ECHO} '#!/bin/sh' >> ${COMMONVARS}
${ECHO} 'PATH=$${PATH}:/bin:/usr/bin:${LOCALBASE}/bin:${X11BASE}/bin' >> ${COMMONVARS}
${ECHO} 'export PATH;' >> ${COMMONVARS}
.for V in XMLCATMGR CATALOG_MASTER_SGML CATALOG_MASTER_XML CATALOG_PORTS_SGML CATALOG_PORTS_XML
${ECHO} '${V}=${${V}}' >> ${COMMONVARS}
.endfor
${CAT} ${COMMONVARS} ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
${CAT} ${COMMONVARS} ${FILESDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
${CHMOD} 0555 ${PKGINSTALL} ${PKGDEINSTALL}
post-install:
@${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>