48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.4 2007/09/15 20:59:42 merdely Exp $
|
|
|
|
COMMENT= small utility used to manipulate SGML and XML catalogs
|
|
|
|
DISTNAME= xmlcatmgr-2.2
|
|
PKGNAME= ${DISTNAME}p1
|
|
CATEGORIES= textproc
|
|
|
|
HOMEPAGE= http://xmlcatmgr.sourceforge.net/
|
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= 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>
|