Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.34 2015/02/16 22:57:09 naddy Exp $
  2. COMMENT= Tcl/Tk interface to the MH mail system
  3. DISTNAME= exmh-2.7.2
  4. REVISION = 1
  5. CATEGORIES= mail
  6. HOMEPAGE= http://www.beedub.com/exmh/
  7. MAINTAINER= Michael Paddon <michael@paddon.org>
  8. # custom BSD-like
  9. PERMIT_PACKAGE_CDROM= Yes
  10. MASTER_SITES= ftp://ftp.funet.fi/pub/languages/tcl/tcl/exmh/ \
  11. ftp://ftp.tcl.tk/pub/tcl/exmh/
  12. MODULES= x11/tk
  13. BUILD_DEPENDS= ${MODTCL_RUN_DEPENDS}
  14. RUN_DEPENDS= lang/expect\
  15. mail/nmh\
  16. mail/metamail\
  17. ${MODTK_RUN_DEPENDS}
  18. NO_BUILD= Yes
  19. NO_TEST= Yes
  20. PKG_ARCH= *
  21. do-configure:
  22. @cd ${WRKDIST} && LOCALBASE=${LOCALBASE} PREFIX=${PREFIX} \
  23. WRKSRC=${WRKSRC} WRKBUILD=${WRKBUILD} \
  24. MODTCL_BIN=${MODTCL_BIN} MODTK_BIN=${MODTK_BIN} \
  25. perl ${FILESDIR}/configure
  26. do-install:
  27. ${INSTALL_SCRIPT} ${WRKBUILD}/exmh ${PREFIX}/bin/exmh
  28. ${INSTALL_SCRIPT} ${WRKBUILD}/exmh-bg ${PREFIX}/bin/exmh-bg
  29. ${INSTALL_SCRIPT} ${WRKBUILD}/exmh-async ${PREFIX}/bin/exmh-async
  30. ${INSTALL_SCRIPT} ${WRKBUILD}/ftp.expect ${PREFIX}/bin/ftp.expect
  31. ${INSTALL_SCRIPT} ${WRKBUILD}/inc.expect ${PREFIX}/bin/inc.expect
  32. ${INSTALL_SCRIPT} ${WRKBUILD}/exmh-strip ${PREFIX}/bin/exmh-strip
  33. ${INSTALL_MAN} ${WRKSRC}/exmh.l ${PREFIX}/man/man1/exmh.1
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/exmh
  35. cp -r ${WRKSRC}/lib/. ${PREFIX}/share/exmh
  36. cd ${PREFIX}/share && echo 'auto_mkindex exmh'\
  37. | ${MODTCL_BIN}
  38. chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/exmh
  39. find ${PREFIX}/share/exmh -type d -print0 | xargs -0 chmod ${DIRMODE}
  40. find ${PREFIX}/share/exmh -type f -print0 | xargs -0 chmod ${SHAREMODE}
  41. .include <bsd.port.mk>