2007-09-11 03:17:42 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.12 2007/09/11 07:17:42 aanriot Exp $
|
2002-10-21 22:07:34 -04:00
|
|
|
|
2007-09-07 04:13:20 -04:00
|
|
|
COMMENT= easy to use Bayesian spam filter
|
2002-10-21 22:07:34 -04:00
|
|
|
DISTNAME= bmf-0.9.4
|
2007-09-11 03:17:42 -04:00
|
|
|
PKGNAME= ${DISTNAME}p2
|
2002-10-21 22:07:34 -04:00
|
|
|
CATEGORIES= mail
|
2007-09-11 03:17:42 -04:00
|
|
|
HOMEPAGE= http://sourceforge.net/projects/bmf/
|
2002-10-21 22:07:34 -04:00
|
|
|
|
2004-02-02 18:11:28 -05:00
|
|
|
MAINTAINER= Jim Razmus <jim@bonetruck.org>
|
2002-10-21 22:07:34 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-29 04:08:08 -05:00
|
|
|
WANTLIB= c
|
2002-10-21 22:07:34 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bmf/}
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
|
2002-11-29 07:56:57 -05:00
|
|
|
FLAVORS= mysql
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
2004-12-29 04:08:08 -05:00
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10:mysql-client-*:databases/mysql
|
2002-11-29 07:56:57 -05:00
|
|
|
CONFIGURE_ARGS= --without-libdb --with-mysql="${LOCALBASE}"
|
|
|
|
CFLAGS+= "-I${LOCALBASE}/include/mysql"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS= --without-mysql --with-libdb
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKE_ENV= CC="${CC}"
|
2002-10-21 22:07:34 -04:00
|
|
|
INSTALL_TARGET= MANDIR=${PREFIX}/man \
|
|
|
|
BINDIR=${PREFIX}/bin \
|
|
|
|
install
|
|
|
|
|
2002-10-27 12:21:39 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2002-10-21 22:07:34 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bmf
|
2007-09-07 04:13:20 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bmf
|
2002-10-21 22:07:34 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2002-11-29 07:56:57 -05:00
|
|
|
|