Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.7 2015/12/03 21:24:29 sthen Exp $
  2. COMMENT= the definite guide to DocBook
  3. V= 2.0.8
  4. DISTNAME= tdg-en-html-${V}
  5. PKGNAME= docbook-guide-${V}
  6. EXTRACT_SUFX= .zip
  7. CATEGORIES= books
  8. MASTER_SITES= http://docbook.org/tdg/en/ \
  9. https://spacehopper.org/mirrors/
  10. HOMEPAGE= http://docbook.org/tdg/en/
  11. MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
  12. # GNU Free Documentation License
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WRKDIST= ${WRKDIR}/tdg/en
  15. NO_BUILD= Yes
  16. NO_TEST= Yes
  17. PKG_ARCH= *
  18. INSTALL_LOC= ${PREFIX}/share/doc/docbook-guide
  19. DOC_SUBDIRS= html html/figures html/figures/admon html/figures/callouts \
  20. glyphs/100dpi
  21. ISO_GLYPHS= amsa amsb amsc amsn amso amsr box cyr1 cyr2 dia grk1 \
  22. grk2 grk3 grk4 lat1 lat2 num pub tech
  23. do-install:
  24. .for i in ${DOC_SUBDIRS}
  25. ${INSTALL_DATA_DIR} ${INSTALL_LOC}/$i
  26. ${INSTALL_DATA} `find ${WRKDIST}/$i -maxdepth 1 -type f` \
  27. ${INSTALL_LOC}/$i
  28. .endfor
  29. .for i in ${ISO_GLYPHS}
  30. @sed 's,http://www.oasis-open.org/docbook/xmlcharent/,../,g' \
  31. <${WRKSRC}/html/iso-${i}.html >${INSTALL_LOC}/html/iso-${i}.html
  32. .endfor
  33. .include <bsd.port.mk>