Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $OpenBSD: Makefile,v 1.14 2015/01/22 12:52:45 naddy Exp $
  2. COMMENT= interactive tutorial for algorithms and data structures
  3. DISTNAME= algotutor-0.8.6
  4. REVISION= 1
  5. CATEGORIES= education math
  6. HOMEPAGE= http://people.ofset.org/~ckhung/p/algotutor/
  7. # GPLv2
  8. PERMIT_PACKAGE_CDROM= Yes
  9. MASTER_SITES= http://people.ofset.org/~ckhung/dl/
  10. EXTRACT_SUFX= .tgz
  11. RUN_DEPENDS= x11/p5-Tk
  12. NO_BUILD= Yes
  13. P5SITE= libdata/perl5/site_perl
  14. P5INST= ${PREFIX}/${P5SITE}
  15. SUBST_VARS= P5SITE
  16. DOCS= ChangeLog gpl.html
  17. do-configure:
  18. ${SUBST_CMD} ${WRKSRC}/algotutor
  19. do-install:
  20. ${INSTALL_DATA_DIR} ${P5INST}/algotutor
  21. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/algotutor
  22. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/algotutor
  23. ${INSTALL_DATA} ${WRKSRC}/etc/algotutor \
  24. ${PREFIX}/share/examples/algotutor
  25. ${INSTALL_DATA_DIR} ${PREFIX}/share/algotutor
  26. ${INSTALL_SCRIPT} ${WRKSRC}/algotutor ${PREFIX}/bin
  27. ${INSTALL_SCRIPT} ${WRKSRC}/gen_at_graph ${PREFIX}/bin
  28. ${INSTALL_MAN} ${WRKSRC}/doc/algotutor.1 ${PREFIX}/man/man1
  29. ${INSTALL_MAN} ${WRKSRC}/doc/gen_at_graph.1 ${PREFIX}/man/man1
  30. ${INSTALL_DATA} ${WRKSRC}/doc/*.{php,png,css} \
  31. ${PREFIX}/share/doc/algotutor
  32. cd ${WRKSRC}/doc && ${INSTALL_DATA} ${DOCS} \
  33. ${PREFIX}/share/doc/algotutor
  34. cp -R ${WRKSRC}/cgeom ${P5INST}/algotutor
  35. cp -R ${WRKSRC}/data ${PREFIX}/share/algotutor
  36. cp -R ${WRKSRC}/dp ${P5INST}/algotutor
  37. cp -R ${WRKSRC}/graph ${P5INST}/algotutor
  38. cp ${WRKSRC}/*.pm ${P5INST}/algotutor
  39. cp ${WRKSRC}/basic.pl ${P5INST}/algotutor
  40. cp ${WRKSRC}/utilalgo ${P5INST}/algotutor
  41. .include <bsd.port.mk>