diff options
Diffstat (limited to 'mail/qsf/Makefile')
-rw-r--r-- | mail/qsf/Makefile | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/mail/qsf/Makefile b/mail/qsf/Makefile index 0cdf10110c3e..697007309266 100644 --- a/mail/qsf/Makefile +++ b/mail/qsf/Makefile @@ -6,24 +6,48 @@ # PORTNAME= qsf -PORTVERSION= 0.9.18 +PORTVERSION= 1.0.18 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= qsf -EXTRACT_SUFX= .tar.bz2 MAINTAINER= liamfoy@sepulcrum.org COMMENT= A small fast spam filter intended to be used with procmail GNU_CONFIGURE= yes USE_BZIP2= yes +USE_REINPLACE= yes MAN1= qsf.1 -MANCOMPRESSED= no +MANCOMPRESSED= yes PLIST_FILES= bin/qsf -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/qsf ${PREFIX}/bin/qsf - ${INSTALL_MAN} ${WRKSRC}/doc/quickref.1 ${MAN1PREFIX}/man/man1/qsf.1 +OPTIONS= GDBM "GDBM support" off \ + MYSQL "MySQL support" off \ + SQLITE2 "SQLite2 support" off -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if defined(WITH_GDBM) +LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm +CONFIGURE_ARGS+= --with-gdbm=${LOCALBASE} +.endif + +.if defined(WITH_MYSQL) +USE_MYSQL= yes +CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} +.endif + +.if defined(WITH_SQLITE2) +LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2 +CONFIGURE_ARGS+= --with-sqlite=${LOCALBASE} +.endif + +# not supported yet. +#.if defined(WITH_SQLITE3) +#.endif + +post-patch: + @${REINPLACE_CMD} -e 's/Linux/${OPSYS}/g' ${WRKSRC}/doc/quickref.1.in + +.include <bsd.port.post.mk> |