Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.9 2013/03/10 23:04:44 espie Exp $
  2. COMMENT= book on embedding Perl in HTML with Mason
  3. CATEGORIES= books
  4. # unversioned, so impose a version on it
  5. V= 1.0
  6. DISTNAME= mason-book
  7. PKGNAME= ${DISTNAME}-${V}
  8. REVISION= 0
  9. DIST_SUBDIR= mason-book-${V}
  10. HOMEPAGE= http://www.masonbook.com/
  11. MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
  12. MASTER_SITES= ${HOMEPAGE}book/
  13. BUILD_DEPENDS= www/p5-HTML-Parser \
  14. graphics/p5-Image-Size \
  15. www/p5-URI
  16. # Open Publication License
  17. PERMIT_PACKAGE_CDROM= Yes
  18. WRKDIST= ${WRKDIR}
  19. INSTALL_LOC= ${PREFIX}/share/doc/mason-book
  20. NO_TEST= Yes
  21. PKG_ARCH= *
  22. # pod files order important for TOC generation
  23. BOOK_POD= foreword preface ch1 ch2 ch3 ch4 ch5 ch6 ch7 \
  24. ch8 ch9 ch10 ch11 ch12 appendix-a appendix-b \
  25. appendix-c appendix-d glossary colophon copyright
  26. do-build:
  27. @cp ${FILESDIR}/book_as_html.pl ${WRKBUILD}
  28. do-install:
  29. ${INSTALL_DATA_DIR} ${INSTALL_LOC}
  30. @cd ${WRKBUILD} && perl ${WRKBUILD}/book_as_html.pl --toc \
  31. --target=${INSTALL_LOC} ${BOOK_POD:C/(.+)/\1.pod/g}
  32. .include <bsd.port.mk>