blob: 086f7308955a6b02da0427f97b968d3085c9fe03 (
plain)
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
|
PORTNAME= vbsfilter
PORTVERSION= 1.15
PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= ftp://ftp.dinoex.de/pub/approved/
EXTRACT_SUFX= .c
EXTRACT_ONLY= # empty
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Vbs-attachment filter for Sendmail Milter
LICENSE= GPLv2
USE_RC_SUBR= vbsfilter
PLIST_FILES= libexec/vbsfilter
CTARGETS+= vbsfilter-${PORTVERSION}
LIBS+= -lpthread -lmilter
CFLAGS+= -Wall
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${_DISTDIR}vbsfilter-${PORTVERSION}.c ${WRKSRC}
.for i in ${CTARGETS}
${i}:
cd ${WRKSRC} && \
${CC} ${CFLAGS} ${LDFLAGS} -o ${i} ${i}.c ${LIBS} ${FLAGS}
.endfor
do-build: ${CTARGETS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vbsfilter-${PORTVERSION} \
${STAGEDIR}${PREFIX}/libexec/vbsfilter
.include <bsd.port.post.mk>
|