Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.9 2013/10/11 23:51:27 naddy Exp $
  2. COMMENT= small utility used to manipulate SGML and XML catalogs
  3. DISTNAME= xmlcatmgr-2.2
  4. REVISION= 2
  5. CATEGORIES= textproc
  6. HOMEPAGE= http://xmlcatmgr.sourceforge.net/
  7. # BSD
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB= c
  10. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmlcatmgr/}
  11. CONFIGURE_STYLE=gnu
  12. EXAMPLE_DIR= ${PREFIX}/share/examples/xmlcatmgr
  13. post-build:
  14. @echo "Creating SGML sample catalogs..."
  15. ${WRKSRC}/xmlcatmgr -sc ${WRKDIR}/catalog.etc.sgml create
  16. ${WRKSRC}/xmlcatmgr -sc ${WRKDIR}/catalog.sgml create
  17. ${WRKSRC}/xmlcatmgr -sc ${WRKDIR}/catalog.etc.sgml add \
  18. CATALOG ${PREFIX}/share/sgml/catalog
  19. @echo "Creating XML sample catalogs..."
  20. ${WRKSRC}/xmlcatmgr -c ${WRKDIR}/catalog.etc.xml create
  21. ${WRKSRC}/xmlcatmgr -c ${WRKDIR}/catalog.xml create
  22. ${WRKSRC}/xmlcatmgr -c ${WRKDIR}/catalog.etc.xml add \
  23. nextCatalog ${PREFIX}/share/xml/catalog
  24. post-install:
  25. ${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
  26. ${INSTALL_DATA} ${WRKDIR}/catalog.etc.sgml ${EXAMPLE_DIR}
  27. ${INSTALL_DATA} ${WRKDIR}/catalog.etc.xml ${EXAMPLE_DIR}
  28. ${INSTALL_DATA} ${WRKDIR}/catalog.sgml \
  29. ${EXAMPLE_DIR}/catalog.share.sgml
  30. ${INSTALL_DATA} ${WRKDIR}/catalog.xml \
  31. ${EXAMPLE_DIR}/catalog.share.xml
  32. .include <bsd.port.mk>