Makefile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. # $OpenBSD: Makefile,v 1.110 2017/06/02 08:56:32 schwarze Exp $
  2. COMMENT-main= imap server for maildir format mailboxes
  3. COMMENT-pop3= pop3 server for maildir format mailboxes
  4. V= 4.17.3
  5. DISTNAME= courier-imap-${V}
  6. PKGNAME-main= ${DISTNAME}
  7. FULLPKGNAME-pop3= courier-pop3-${V}
  8. FULLPKGPATH-pop3= mail/courier-imap,-pop3
  9. REVISION= 0
  10. CATEGORIES= mail
  11. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
  12. EXTRACT_SUFX= .tar.bz2
  13. HOMEPAGE= http://www.courier-mta.org/imap/
  14. MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
  15. # GPLv3
  16. PERMIT_PACKAGE_CDROM= Yes
  17. WANTLIB= c courierauth courierauthcommon courierauthsasl gdbm
  18. WANTLIB+= idn pcre
  19. WANTLIB-pop3= c courierauth courierauthcommon courierauthsasl
  20. WANTLIB-pop3+= idn pcre ${MODGETTEXT_WANTLIB}
  21. USE_GMAKE= Yes
  22. CONFIGURE_STYLE= autoconf automake
  23. AUTOCONF_VERSION= 2.69
  24. AUTOMAKE_VERSION= 1.15
  25. # AM_PROG_LIBTOOL, aclocal is run during build
  26. BUILD_DEPENDS += devel/libtool
  27. CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
  28. CXXFLAGS="-I${LOCALBASE}/include" \
  29. CPPFLAGS="-I${LOCALBASE}/include" \
  30. OPENSSL=/usr/bin/openssl \
  31. ac_cv_lib_db_dbopen=no \
  32. ac_cv_lib_db_db_env_create=no
  33. LIB_DEPENDS= mail/courier-authlib \
  34. devel/libidn \
  35. devel/pcre
  36. EXAMPLE_DIR= ${PREFIX}/share/examples/courier
  37. SYSCONFDIR= /etc/courier
  38. CONFIGURE_ARGS= --sbindir=${PREFIX}/sbin \
  39. --datadir=${PREFIX}/sbin \
  40. --prefix=${PREFIX} \
  41. --bindir=${PREFIX}/bin \
  42. --mandir=${PREFIX}/man \
  43. --enable-static \
  44. --disable-root-check \
  45. --with-dirsync \
  46. --enable-mimecharset=iso-8859-1 \
  47. --enable-unicode \
  48. --with-locking-method=fcntl \
  49. --with-mailuser=_courier \
  50. --with-piddir=${BASELOCALSTATEDIR}/run/courier \
  51. --with-makedatprog=${TRUEPREFIX}/libexec/makedat \
  52. --with-db=gdbm \
  53. --with-certsdir=/etc/ssl \
  54. --cache-file=${WRKDIR}/courier-imap.cache
  55. DOCS= AUTHORS INSTALL \
  56. NEWS libs/imap/ChangeLog \
  57. libs/imap/README libs/imap/README.proxy \
  58. libs/maildir/README.imapkeywords.html \
  59. libs/maildir/README.maildirfilter.html \
  60. libs/maildir/README.maildirquota.txt \
  61. libs/maildir/README.sharedfolders.txt \
  62. libs/tcpd/README.couriertls
  63. FLAVORS= no_trashquota imap_bugs
  64. FLAVOR?=
  65. .if ${FLAVOR:Mno_trashquota}
  66. CONFIGURE_ARGS+= --without-trashquota
  67. .else
  68. CONFIGURE_ARGS+= --with-trashquota
  69. .endif
  70. .if ${FLAVOR:Mimap_bugs}
  71. CONFIGURE_ARGS+= --enable-workarounds-for-imap-client-bugs
  72. .else
  73. CONFIGURE_ARGS+= --disable-workarounds-for-imap-client-bugs
  74. .endif
  75. MULTI_PACKAGES= -main -pop3
  76. LIB_DEPENDS-main= ${LIB_DEPENDS} \
  77. mail/courier-unicode>=1.3 \
  78. databases/gdbm
  79. RUN_DEPENDS-pop3= mail/courier-imap,-main
  80. WANTLIB-main= ${WANTLIB} ssl crypto courier-unicode
  81. MODULES= devel/gettext
  82. CNFFILES= etc/courier/imapd-ssl.dist etc/courier/imapd.dist \
  83. etc/courier/pop3d-ssl.dist etc/courier/pop3d.dist \
  84. etc/courier/imapd.cnf etc/courier/pop3d.cnf \
  85. etc/courier/quotawarnmsg.example
  86. # Regression tests need ulimit -p 256 and are not compatible
  87. # with no_trashquota and imap_bugs flavors.
  88. # If those flavors are not built you can do regress tests with
  89. # ulimit -p 256
  90. # make test NO_TEST=NO
  91. NO_TEST= Yes
  92. post-extract:
  93. @perl -pi -e 's,\@datadir\@\/imapd.rand,\/dev\/urandom,g' \
  94. ${WRKSRC}/libs/imap/imapd.cnf.openssl.in
  95. @perl -pi -e 's,\@datadir\@\/imapd.rand,\/dev\/urandom,g' \
  96. ${WRKSRC}/libs/imap/pop3d.cnf.openssl.in
  97. post-install:
  98. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/courier
  99. ${INSTALL_DATA} ${WRKSRC}/libs/imap/README \
  100. ${PREFIX}/share/doc/courier/README.imap.txt
  101. . for i in ${DOCS}
  102. ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/courier
  103. . endfor
  104. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/courier
  105. . for i in ${CNFFILES}
  106. mv ${WRKINST}/${i} ${EXAMPLE_DIR}
  107. . endfor
  108. @rmdir ${WRKINST}/etc/courier/shared ${WRKINST}/etc/courier/shared.tmp
  109. .include <bsd.port.mk>