Makefile 909 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # $OpenBSD: Makefile,v 1.63 2016/03/16 16:46:32 naddy Exp $
  2. COMMENT= sendmail milter to scan messages for viruses and spam
  3. DISTNAME= smtp-vilter-1.3.6
  4. EPOCH= 0
  5. REVISION= 3
  6. CATEGORIES= mail
  7. # BSD
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB += c m pthread milter
  10. MASTER_SITES= https://spacehopper.org/mirrors/
  11. EXTRACT_SUFX= .tgz
  12. LIB_DEPENDS= mail/sendmail,-libmilter
  13. NO_TEST= Yes
  14. FLAVORS= ldap
  15. FLAVOR?=
  16. .if ${FLAVOR:Mldap}
  17. MAKE_FLAGS+= -DENABLE_LDAP
  18. LIB_DEPENDS+= databases/openldap
  19. WANTLIB += ldap_r lber
  20. .endif
  21. CFLAGS+= -I${LOCALBASE}/include
  22. FAKE_FLAGS= BINDIR=${PREFIX}/sbin \
  23. LIBDIR=${PREFIX}/lib/smtp-vilter \
  24. MANDIR=${PREFIX}/man/man \
  25. SPATH=${PREFIX}/share/examples/smtp-vilter
  26. pre-configure:
  27. ${SUBST_CMD} ${WRKSRC}/etc/smtp-vilter/smtp-vilter.conf
  28. post-install:
  29. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples
  30. cp -r ${WRKSRC}/etc/smtp-vilter ${PREFIX}/share/examples/
  31. .include <bsd.port.mk>