# New ports collection makefile for: imapfilter # Date created: 28 July 2002 # Whom: Lefteris Chatzibarbas # # $FreeBSD: ports/mail/imapfilter/Makefile,v 1.22 2007/09/25 17:29:18 stefan Exp $ # PORTNAME= imapfilter PORTVERSION= 2.0.3 CATEGORIES= mail MASTER_SITES= http://imapfilter.hellug.gr/source/ MAINTAINER= stefan@FreeBSD.org COMMENT= IMAP mail filtering utility LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre USE_BZIP2= yes USE_LUA= 5.1 USE_OPENSSL= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= -d ${PREFIX} -s ${DATADIR} CPPFLAGS= -I${LOCALBASE}/include -I${LUA_INCDIR} LDFLAGS= -L${LOCALBASE}/lib -L${LUA_LIBDIR} MAN1= imapfilter.1 MAN5= imapfilter_config.5 PORTDOCS= LICENSE NEWS README PLIST_FILES= bin/imapfilter \ %%DATADIR%%/account.lua \ %%DATADIR%%/auxiliary.lua \ %%DATADIR%%/common.lua \ %%DATADIR%%/deprecated.lua \ %%DATADIR%%/mailbox.lua \ %%DATADIR%%/message.lua \ %%DATADIR%%/options.lua \ %%DATADIR%%/regex.lua \ %%DATADIR%%/set.lua \ %%EXAMPLESDIR%%/sample.config.lua \ %%EXAMPLESDIR%%/sample.extend.lua PLIST_DIRS= %%DATADIR%% %%EXAMPLESDIR%% post-patch: @${REINPLACE_CMD} -Ee \ 's|^(incdirs=).*|\1"${CPPFLAGS}"| ; \ s|^(libdirs=).*|\1"${LDFLAGS}"| ; \ s|^(mycflags=).*|\1"${CFLAGS}"| ; \ s|-llualib||' \ ${WRKSRC}/configure post-install: ${STRIP_CMD} ${PREFIX}/bin/imapfilter @${MKDIR} ${DATADIR} ${EXAMPLESDIR} cd ${WRKSRC} && \ ${INSTALL_DATA} sample.config.lua sample.extend.lua \ ${EXAMPLESDIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif .include