blob: 246560acb761fb2cf23069da76d9ae73618d62a6 (
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
|
# Created by: Lefteris Chatzibarbas <lefcha@hellug.gr>
# $FreeBSD$
PORTNAME= imapfilter
PORTVERSION= 2.6.11
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= mail
MAINTAINER= bofh@FreeBSD.org
COMMENT= IMAP mail filtering utility
LICENSE= MIT
LIB_DEPENDS= libpcre.so:devel/pcre
USES= lua ssl
CPPFLAGS+= -I${LOCALBASE}/include -I${LUA_INCDIR}
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
USE_GITHUB= yes
GH_ACCOUNT= lefcha
PORTDOCS= LICENSE NEWS README
MAKE_ARGS= PREFIX=${PREFIX} \
MYCFLAGS="${CPPFLAGS}" \
MYLDFLAGS="${LDFLAGS}" \
BINDIR=${PREFIX}/bin \
SHAREDIR=${DATADIR} \
MANDIR=${MANPREFIX}/man \
LIBLUA=-llua-${LUA_VER}
OPTIONS_DEFINE= DOCS
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>
|