42 lines
849 B
Makefile
42 lines
849 B
Makefile
# $OpenBSD: Makefile,v 1.28 2019/07/12 20:47:25 sthen Exp $
|
|
|
|
COMMENT= easy to use Bayesian spam filter
|
|
DISTNAME= bmf-0.9.4
|
|
REVISION= 10
|
|
CATEGORIES= mail
|
|
HOMEPAGE= http://sourceforge.net/projects/bmf/
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE= Yes
|
|
WANTLIB= c
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bmf/}
|
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
FLAVORS= mysql
|
|
FLAVOR?=
|
|
|
|
CONFIGURE_ARGS= --without-mysql \
|
|
--with-libdb
|
|
|
|
.if ${FLAVOR:Mmysql}
|
|
LIB_DEPENDS+= databases/mariadb
|
|
WANTLIB += mysqlclient pthread
|
|
CONFIGURE_ARGS+= --without-libdb --with-mysql="${LOCALBASE}"
|
|
CFLAGS+= "-I${LOCALBASE}/include/mysql"
|
|
.endif
|
|
|
|
MAKE_ENV= CC="${CC}"
|
|
INSTALL_TARGET= MANDIR=${PREFIX}/man \
|
|
BINDIR=${PREFIX}/bin \
|
|
install
|
|
|
|
NO_TEST= Yes
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bmf
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bmf
|
|
|
|
.include <bsd.port.mk>
|