# New ports collection makefile for: qmail-qfilter
# Date created: 2004-10-13
# Whom: Sergei Kolobov <sergei@FreeBSD.org>
#
# $FreeBSD: ports/mail/qmail-qfilter/Makefile,v 1.5 2007/01/29 19:05:04 gabor Exp $
#
PORTNAME= qmail-qfilter
PORTVERSION= 2.1
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://untroubled.org/${PORTNAME}/
MAINTAINER= sergei@FreeBSD.org
COMMENT= Front-end for qmail-queue to run messages through filters
LIB_DEPENDS= bg-sysdeps.1:${PORTSDIR}/devel/bglibs
LDFLAGS?= -s
BGLIBS_INC= ${LOCALBASE}/include/bglibs
BGLIBS_LIB= ${LOCALBASE}/lib/bglibs
MAN1= qmail-qfilter.1
DOCS= NEWS README TODO
do-configure:
${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin
${ECHO_CMD} "${MANPREFIX}/man" > ${WRKSRC}/conf-man
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/conf-ld
${ECHO_CMD} "${BGLIBS_INC}" > ${WRKSRC}/conf-bgincs
${ECHO_CMD} "${BGLIBS_LIB}" > ${WRKSRC}/conf-bglibs
post-install:
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} samples/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
syntax highlighted by Code2HTML, v. 0.9.1