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-02-07 13:29:36 +01:00
|
|
|
PORTVERSION= 1.1
|
2003-07-11 21:12:07 +02:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= http://www.namazu.org/~satoru/scmail/
|
|
|
|
|
2003-08-05 07:18:53 +02:00
|
|
|
MAINTAINER= fuyuki@nigredo.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
|
|
|
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
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-02-23 23:04:54 +01:00
|
|
|
.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
|
|
|
|
BROKEN= "Does not compile on alpha >= 5.x"
|
|
|
|
.endif
|
|
|
|
|
2004-02-07 07:13:24 +01:00
|
|
|
.if exists(${LOCALBASE}/bin/gauche-config)
|
|
|
|
GAUCHE_VER!= gauche-config -V
|
|
|
|
.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-02-07 07:13:24 +01:00
|
|
|
.include <bsd.port.post.mk>
|