Makefile 900 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.26 2015/08/25 11:16:12 sthen Exp $
  2. COMMENT= easy to use Bayesian spam filter
  3. DISTNAME= bmf-0.9.4
  4. REVISION= 9
  5. CATEGORIES= mail
  6. HOMEPAGE= http://sourceforge.net/projects/bmf/
  7. MAINTAINER= Jim Razmus II <jim@openbsd.org>
  8. # GPL
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB= c
  11. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bmf/}
  12. CONFIGURE_STYLE= simple
  13. FLAVORS= mysql
  14. FLAVOR?=
  15. CONFIGURE_ARGS= --without-mysql \
  16. --with-libdb
  17. .if ${FLAVOR:Mmysql}
  18. LIB_DEPENDS+= databases/mariadb
  19. WANTLIB += mysqlclient pthread
  20. CONFIGURE_ARGS+= --without-libdb --with-mysql="${LOCALBASE}"
  21. CFLAGS+= "-I${LOCALBASE}/include/mysql"
  22. .endif
  23. MAKE_ENV= CC="${CC}"
  24. INSTALL_TARGET= MANDIR=${PREFIX}/man \
  25. BINDIR=${PREFIX}/bin \
  26. install
  27. NO_TEST= Yes
  28. post-install:
  29. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bmf
  30. ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bmf
  31. .include <bsd.port.mk>