blob: 5c6210c231bd9499dc2481b7ad286d9153fa1783 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Created by: Lefteris Chatzibarbas <lefcha@hellug.gr>
# $FreeBSD$
PORTNAME= imapfilter
PORTVERSION= 2.6.6
DISTVERSIONPREFIX= v
CATEGORIES= mail
MAINTAINER= bofh@FreeBSD.org
COMMENT= IMAP mail filtering utility
LICENSE= MIT
LIB_DEPENDS= libpcre.so:devel/pcre
USES= lua
USE_OPENSSL= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LUA_INCDIR}
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
USE_GITHUB= yes
GH_ACCOUNT= lefcha
PORTDOCS= LICENSE NEWS README
PLIST_FILES= bin/imapfilter \
man/man1/imapfilter.1.gz \
man/man5/imapfilter_config.5.gz \
%%DATADIR%%/account.lua \
%%DATADIR%%/auxiliary.lua \
%%DATADIR%%/common.lua \
%%DATADIR%%/mailbox.lua \
%%DATADIR%%/message.lua \
%%DATADIR%%/options.lua \
%%DATADIR%%/regex.lua \
%%DATADIR%%/set.lua \
%%EXAMPLESDIR%%/config.lua \
%%EXAMPLESDIR%%/extend.lua
MAKE_ARGS= PREFIX=${PREFIX} \
MYCFLAGS="${CPPFLAGS}" \
MYLDFLAGS="${LDFLAGS}" \
BINDIR=${PREFIX}/bin \
SHAREDIR=${DATADIR} \
MANDIR=${MANPREFIX}/man \
LIBLUA=-llua-${LUA_VER}
post-patch:
${REINPLACE_CMD} 's|-ldl ||' ${WRKSRC}/src/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/imapfilter
@${MKDIR} ${STAGEDIR}/${DATADIR} ${STAGEDIR}/${EXAMPLESDIR}
cd ${WRKSRC}/samples && \
${INSTALL_DATA} config.lua extend.lua \
${STAGEDIR}/${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>
|