Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # $OpenBSD: Makefile,v 1.96 2017/05/30 21:21:47 sthen Exp $
  2. COMMENT= tty-based e-mail client
  3. DISTNAME= mutt-1.8.3
  4. EPOCH= 3
  5. CATEGORIES= mail
  6. HOMEPAGE= http://www.mutt.org/
  7. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  8. # GPLv2+
  9. PERMIT_PACKAGE_CDROM= Yes
  10. # uses pledge()
  11. WANTLIB+= c crypto iconv idn intl qdbm ssl z
  12. MASTER_SITES= http://ftp.mutt.org/pub/mutt/ \
  13. https://bitbucket.org/mutt/mutt/downloads/ \
  14. ftp://ftp.mutt.org/pub/mutt/
  15. LIB_DEPENDS= databases/qdbm \
  16. devel/gettext \
  17. devel/libidn
  18. BUILD_DEPENDS+= textproc/docbook-xsl \
  19. www/lynx
  20. FLAVORS= gpgme sasl slang
  21. FLAVOR?=
  22. CONFIGURE_STYLE= gnu
  23. FLAVOR_COMMA= ${FLAVOR_EXT:S/-/,/g}
  24. SUBST_VARS= FLAVOR_COMMA
  25. CONFIGURE_ARGS+= --enable-compressed \
  26. --enable-external_dotlock \
  27. --disable-fcntl \
  28. --enable-flock \
  29. --enable-hcache \
  30. --with-idn \
  31. --enable-imap \
  32. --enable-pop \
  33. --enable-sidebar \
  34. --enable-smtp \
  35. --mandir=${PREFIX}/man \
  36. --without-gdbm \
  37. --without-tokyocabinet \
  38. --with-qdbm \
  39. --with-docdir="${PREFIX}/share/doc/mutt" \
  40. --with-ssl
  41. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  42. LDFLAGS="-L${LOCALBASE}/lib" \
  43. ISPELL="${LOCALBASE}/bin/ispell"
  44. SYSCONFDIR= ${BASESYSCONFDIR}/mutt
  45. FAKE_FLAGS= sysconfdir="${PREFIX}/share/examples/mutt"
  46. .if defined(DEBUG)
  47. CONFIGURE_ARGS+= --enable-debug
  48. .endif
  49. ## standard flavours:
  50. .if ${FLAVOR:Mgpgme}
  51. CONFIGURE_ARGS+= --enable-gpgme
  52. LIB_DEPENDS+= security/gpgme
  53. WANTLIB+= assuan gpg-error gpgme
  54. .endif
  55. .if ${FLAVOR:Msasl}
  56. CONFIGURE_ARGS+= --with-sasl=${LOCALBASE}
  57. LIB_DEPENDS+= security/cyrus-sasl2
  58. WANTLIB+= sasl2
  59. .endif
  60. .if ${FLAVOR:Mslang}
  61. CONFIGURE_ARGS+= --with-slang="${PREFIX}"
  62. LIB_DEPENDS+= devel/libslang
  63. WANTLIB+= m termlib slang>=14
  64. .else
  65. CONFIGURE_ARGS+= --with-curses
  66. WANTLIB+= ncurses
  67. .endif
  68. post-install:
  69. @mv -f ${PREFIX}/share/doc/mutt/samples/* ${PREFIX}/share/examples/mutt
  70. @perl -pi -e "s,/usr/bin/gpg,${LOCALBASE}/bin/gpg," \
  71. ${PREFIX}/share/examples/mutt/gpg.rc
  72. .include <bsd.port.mk>