Update net-im/pidgin to version 2.10.9_4
[dports.git] / net-im / imspector / Makefile
1 # Created by: Ilja Dejs <ilja.dejs@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       imspector
5 PORTVERSION=    20111108
6 PORTREVISION=   1
7 CATEGORIES=     net-im
8 MASTER_SITES=   http://tsatsenko.ru/ports/distfiles/
9
10 MAINTAINER=     m.tsatsenko@gmail.com
11 COMMENT=        IM transparent proxy with monitoring, blocking, and content-filtering
12
13 LICENSE=        GPLv2
14
15 CFLAGS+=        -fPIC -I ${LOCALBASE}/include -DHAVE_SSL
16 USES=           iconv gmake
17 USE_OPENSSL=    YES
18 USE_LDCONFIG=   ${LOCALBASE}/lib/imspector
19
20 CONFIG_FILES=   imspector.conf badwords.txt acl.txt
21
22 USE_RC_SUBR=    ${PORTNAME}
23
24 MAKE_ENV+=      ETCDIR=${ETCDIR}
25
26 OPTIONS_DEFINE= IPFW PLUGINS
27 OPTIONS_DEFAULT=IPFW
28 OPTIONS_SUB=    yes
29
30 IPFW_DESC=      Add IPFW support
31 PLUGINS_DESC=   Build plugins
32
33 IPFW_CFLAGS=    -DIPFW_TRANSPARENT=1
34 PLUGINS_USE=    MYSQL=yes SQLITE=yes PGSQL=yes
35
36 .include <bsd.port.options.mk>
37
38 post-extract:
39         @${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
40
41 post-patch:
42         @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
43                 ${WRKSRC}/imspector.conf \
44                 ${WRKSRC}/main.cpp
45         @${REINPLACE_CMD} -e 's,= SSLv23_method(),= (SSL_METHOD *) SSLv23_method(),g' \
46                 ${WRKSRC}/sslstate.cpp
47         @${REINPLACE_CMD} -e 's,%%ICONV_LIB%%,${ICONV_LIB},' \
48                 ${WRKSRC}/Makefile
49 .if ${PORT_OPTIONS:MPLUGINS}
50         @${REINPLACE_CMD} -e 's,#ADD_PLUGINS,ADD_PLUGINS,' \
51                 ${WRKSRC}/Makefile
52 .endif
53
54 .include <bsd.port.mk>