09904f61b8
- while there, add a trailing slash to HOMEPAGE . ok Jim Razmus (maintainer)
46 lines
1002 B
Makefile
46 lines
1002 B
Makefile
# $OpenBSD: Makefile,v 1.12 2007/09/11 07:17:42 aanriot Exp $
|
|
|
|
COMMENT= easy to use Bayesian spam filter
|
|
DISTNAME= bmf-0.9.4
|
|
PKGNAME= ${DISTNAME}p2
|
|
CATEGORIES= mail
|
|
HOMEPAGE= http://sourceforge.net/projects/bmf/
|
|
|
|
MAINTAINER= Jim Razmus <jim@bonetruck.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bmf/}
|
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
FLAVORS= mysql
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10:mysql-client-*:databases/mysql
|
|
CONFIGURE_ARGS= --without-libdb --with-mysql="${LOCALBASE}"
|
|
CFLAGS+= "-I${LOCALBASE}/include/mysql"
|
|
.else
|
|
CONFIGURE_ARGS= --without-mysql --with-libdb
|
|
.endif
|
|
|
|
MAKE_ENV= CC="${CC}"
|
|
INSTALL_TARGET= MANDIR=${PREFIX}/man \
|
|
BINDIR=${PREFIX}/bin \
|
|
install
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bmf
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bmf
|
|
|
|
.include <bsd.port.mk>
|
|
|