2003-07-11 21:12:07 +02:00
|
|
|
# New ports collection makefile for: scmail
|
|
|
|
# Date created: 13 April 2003
|
|
|
|
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= scmail
|
2004-07-29 20:45:03 +02:00
|
|
|
PORTVERSION= 1.3
|
2003-07-11 21:12:07 +02:00
|
|
|
CATEGORIES= mail
|
2004-03-22 01:01:15 +01:00
|
|
|
MASTER_SITES= http://namazu.org/~satoru/scmail/
|
2003-07-11 21:12:07 +02:00
|
|
|
|
2004-10-21 09:50:49 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-07-11 21:12:07 +02:00
|
|
|
COMMENT= A mail filter written in Scheme
|
|
|
|
|
|
|
|
BUILD_DEPENDS= gosh:${PORTSDIR}/lang/gauche
|
2004-02-07 07:13:24 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/gauche/${GAUCHE_VER}/lib/dbm/gdbm.scm:${PORTSDIR}/databases/gauche-gdbm
|
2003-07-11 21:12:07 +02:00
|
|
|
|
|
|
|
MAKE_ARGS= PREFIX="${PREFIX}" DATADIR="${EXAMPLESDIR}"
|
|
|
|
|
2004-02-07 07:13:24 +01:00
|
|
|
PORTDOCS= scbayes-ja.html scbayes.html scmail-ja.html scmail.html
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2003-07-11 21:12:07 +02:00
|
|
|
|
2004-03-11 11:44:01 +01:00
|
|
|
.if ${ARCH} == "alpha"
|
2010-06-13 10:40:06 +02:00
|
|
|
BROKEN= Does not compile on alpha
|
2004-02-23 23:04:54 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-07 07:13:24 +01:00
|
|
|
.if exists(${LOCALBASE}/bin/gauche-config)
|
2004-06-30 10:46:18 +02:00
|
|
|
GAUCHE_VER!= ${LOCALBASE}/bin/gauche-config -V
|
2004-02-07 07:13:24 +01:00
|
|
|
.else
|
|
|
|
GAUCHE_VER= none
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -E -e "s,cp -f?p,${CP},g;s,/dot.scmail,," \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
${TOUCH} ${WRKSRC}/scmail/bayesian-filter.scm.in
|
2003-08-12 12:17:54 +02:00
|
|
|
|
2003-07-11 21:12:07 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2004-02-07 13:29:36 +01:00
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
2003-07-11 21:12:07 +02:00
|
|
|
.endif
|
|
|
|
|
2004-03-12 01:30:44 +01:00
|
|
|
# Maintainer only; it actually forwards mails to @examples.com!
|
|
|
|
test:
|
|
|
|
cd ${WRKSRC}; ${MAKE} check
|
|
|
|
|
2004-02-07 07:13:24 +01:00
|
|
|
.include <bsd.port.post.mk>
|