Makefile 797 B

123456789101112131415161718192021222324252627282930313233343536
  1. # $OpenBSD: Makefile,v 1.26 2016/03/20 19:56:47 naddy Exp $
  2. COMMENT= modules for handling mail with perl
  3. V= 2.14
  4. MODULES= cpan
  5. PKG_ARCH= *
  6. DISTNAME= MailTools-${V}
  7. PKGNAME= p5-Mail-Tools-${V}
  8. CATEGORIES= mail devel
  9. MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Mail/}
  10. MAINTAINER= Marc Espie <espie@openbsd.org>
  11. PERMIT_PACKAGE_CDROM= Yes
  12. RUN_DEPENDS= devel/p5-Time-TimeDate
  13. MAKE_ENV+= TEST_POD=Yes
  14. # Build examples as well
  15. post-build:
  16. @cd ${WRKSRC} && for i in examples/*.PL; do perl $$i; done
  17. DIR=${PREFIX}/share/examples/p5-Mail-Tools
  18. post-install:
  19. ${INSTALL_DATA_DIR} ${DIR}
  20. ${INSTALL_SCRIPT} ${WRKSRC}/forwd_demo ${DIR}
  21. ${INSTALL_SCRIPT} ${WRKSRC}/rplyto_demo ${DIR}
  22. ${INSTALL_SCRIPT} ${WRKSRC}/send_demo ${DIR}
  23. ${INSTALL_DATA} ${WRKSRC}/README.demos ${DIR}
  24. .include <bsd.port.mk>