Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # $OpenBSD: Makefile,v 1.58 2017/06/02 08:56:32 schwarze Exp $
  2. COMMENT-main= mail delivery agent with filtering abilities
  3. COMMENT-utils= quota tools for the Courier mail suite
  4. V= 2.8.5
  5. DISTNAME= maildrop-$V
  6. PKGNAME-main= maildrop-$V
  7. FULLPKGNAME-utils= courier-utils-$V
  8. FULLPKGPATH-utils= mail/maildrop,-utils
  9. REVISION= 0
  10. CATEGORIES= mail
  11. HOMEPAGE= http://www.courier-mta.org/maildrop/
  12. MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
  13. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
  14. EXTRACT_SUFX= .tar.bz2
  15. FLAVORS= postfix no_trashquota
  16. FLAVOR?=
  17. MULTI_PACKAGES= -main -utils
  18. # GPLv3
  19. PERMIT_PACKAGE_CDROM= Yes
  20. CONFIGURE_STYLE= gnu
  21. CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
  22. CPPFLAGS="${CFLAGS:C/ *$//} -I${LOCALBASE}/include" \
  23. ac_cv_header_fam_h=no \
  24. ac_cv_lib_fam_FAMOpen=no \
  25. ac_cv_lib_db_dbopen=no \
  26. ac_cv_func_dbopen=no
  27. MAKE_ENV= INCLUDES="-I${LOCALBASE}/include" \
  28. CPPFLAGS="-I${LOCALBASE}/include" \
  29. ac_cv_header_fam_h=no ac_cv_lib_fam_FAMOpen=no
  30. # do not pick up Berkeley DB in bdbobj
  31. CONFIGURE_ENV+= ac_cv_lib_db_dbopen=no \
  32. ac_cv_lib_db_db_open=no \
  33. ac_cv_lib_db_db_env_create=no \
  34. ac_cv_func_dbopen=no
  35. CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR}/courier \
  36. --with-etcdir=${SYSCONFDIR}/courier \
  37. --datadir=${PREFIX}/share/doc \
  38. --enable-static \
  39. --with-db=gdbm \
  40. --enable-maildrop-gid=_courier \
  41. --enable-maildrop-uid=_courier \
  42. --enable-syslog=1 \
  43. --enable-restrict-trusted=1 \
  44. --enable-keep-fromline=1 \
  45. --enable-use-flock=1 \
  46. --enable-use-dotlock=1 \
  47. --enable-authlib \
  48. --with-dirsync \
  49. --enable-maildirquota \
  50. --with-default-maildrop="./Maildir"
  51. .if ${FLAVOR:Mpostfix}
  52. CONFIGURE_ARGS+= --enable-sendmail=/usr/local/sbin/sendmail
  53. CONFIGURE_ARGS+= --enable-trusted-users="root _courier _postfix"
  54. CONFIGURE_ARGS+= --enable-trusted-groups="wheel _courier _postdrop"
  55. # this sets the default version as postfix/stable if postfix is not
  56. # already installed, but matches postfix-* so can still be installed
  57. # alongside postfix/snapshot.
  58. RUN_DEPENDS-main= mail/postfix/stable
  59. .else
  60. CONFIGURE_ARGS+= --enable-sendmail=/usr/sbin/sendmail
  61. CONFIGURE_ARGS+= --enable-trusted-users="root _courier"
  62. CONFIGURE_ARGS+= --enable-trusted-groups="wheel _courier"
  63. .endif
  64. .if ${FLAVOR:Mno_trashquota}
  65. CONFIGURE_ARGS+= --without-trashquota
  66. .else
  67. CONFIGURE_ARGS+= --with-trashquota
  68. .endif
  69. MODULES= devel/gettext
  70. LIB_DEPENDS= devel/libidn \
  71. mail/courier-unicode>=1.3
  72. WANTLIB = c idn courier-unicode
  73. WANTLIB-main= ${WANTLIB} gdbm m ${LIBCXX} gdbm>=3 pcre>=1 courierauth
  74. LIB_DEPENDS-main= ${LIB_DEPENDS} \
  75. databases/gdbm \
  76. devel/pcre \
  77. mail/courier-authlib
  78. DOCFILES= README \
  79. INSTALL \
  80. UPGRADE \
  81. README.postfix \
  82. maildroptips.txt \
  83. libs/maildir/README.sharedfolders.txt \
  84. libs/maildir/README.maildirquota.txt \
  85. libs/maildir/quotawarnmsg
  86. post-install:
  87. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/maildrop
  88. .for f in ${DOCFILES}
  89. ${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/maildrop/
  90. .endfor
  91. .include <bsd.port.mk>