openbsd-ports/textproc/xmlcatmgr/Makefile

43 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2013/10/11 23:51:27 naddy Exp $
COMMENT= small utility used to manipulate SGML and XML catalogs
DISTNAME= xmlcatmgr-2.2
REVISION= 2
CATEGORIES= textproc
HOMEPAGE= http://xmlcatmgr.sourceforge.net/
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmlcatmgr/}
CONFIGURE_STYLE=gnu
EXAMPLE_DIR= ${PREFIX}/share/examples/xmlcatmgr
post-build:
@echo "Creating SGML sample catalogs..."
${WRKSRC}/xmlcatmgr -sc ${WRKDIR}/catalog.etc.sgml create
${WRKSRC}/xmlcatmgr -sc ${WRKDIR}/catalog.sgml create
${WRKSRC}/xmlcatmgr -sc ${WRKDIR}/catalog.etc.sgml add \
CATALOG ${PREFIX}/share/sgml/catalog
@echo "Creating XML sample catalogs..."
${WRKSRC}/xmlcatmgr -c ${WRKDIR}/catalog.etc.xml create
${WRKSRC}/xmlcatmgr -c ${WRKDIR}/catalog.xml create
${WRKSRC}/xmlcatmgr -c ${WRKDIR}/catalog.etc.xml add \
nextCatalog ${PREFIX}/share/xml/catalog
post-install:
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
${INSTALL_DATA} ${WRKDIR}/catalog.etc.sgml ${EXAMPLE_DIR}
${INSTALL_DATA} ${WRKDIR}/catalog.etc.xml ${EXAMPLE_DIR}
${INSTALL_DATA} ${WRKDIR}/catalog.sgml \
${EXAMPLE_DIR}/catalog.share.sgml
${INSTALL_DATA} ${WRKDIR}/catalog.xml \
${EXAMPLE_DIR}/catalog.share.xml
.include <bsd.port.mk>