Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # $OpenBSD: Makefile,v 1.148 2015/11/02 11:56:54 espie Exp $
  2. COMMENT= mail retrieval utility for POP2, POP3, KPOP, IMAP and more
  3. DISTNAME= fetchmail-6.3.26
  4. CATEGORIES= mail
  5. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fetchmail/}
  6. REVISION= 0
  7. HOMEPAGE= http://www.fetchmail.info/
  8. # GPLv2+
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB += c crypto ssl
  11. MODULES= devel/gettext \
  12. lang/python
  13. MODPY_RUNDEP= No
  14. MODPY_ADJ_FILES= fetchmailconf.py
  15. SUBST_VARS+= MODPY_LIBDIR
  16. BUILD_DEPENDS= devel/bison
  17. SEPARATE_BUILD= Yes
  18. CONFIGURE_STYLE= autoconf
  19. AUTOCONF_VERSION= 2.68
  20. CFLAGS= -I${LOCALBASE}/include
  21. CONFIGURE_ENV= PYTHON=: YACC="bison -y"
  22. CONFIGURE_ARGS= --with-ssl \
  23. --enable-NTLM
  24. USE_GROFF= Yes# uses www.tmac for .URL tags
  25. EXTRACT_SUFX= .tar.xz
  26. DOCS= FAQ NOTES FEATURES README COPYING fetchmail-FAQ.html \
  27. fetchmail-features.html design-notes.html todo.html
  28. # Remove those so they get rebuild. Fixes problems with gcc2.
  29. post-extract:
  30. rm ${WRKSRC}/rcfile_y.[ch]
  31. pre-patch:
  32. ${SUBST_CMD} -m 555 -c ${FILESDIR}/fetchmailconf ${WRKDIR}/fetchmailconf
  33. @tbl ${WRKSRC}/fetchmail.man > ${WRKSRC}/fetchmail.tbl && \
  34. cp -f ${WRKSRC}/fetchmail.tbl ${WRKSRC}/fetchmail.man
  35. post-install:
  36. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fetchmail
  37. @cd ${PREFIX}/man/man1 && ln -sf fetchmail.1 fetchmailconf.1
  38. cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/fetchmail
  39. ${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py \
  40. ${PREFIX}/libexec/fetchmailconf.bin
  41. ${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
  42. .include <bsd.port.mk>