Bump net/packter-agent to version 2.5_2
[dports.git] / net / packter-agent / Makefile
1 # Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
2 # $FreeBSD$
3
4 PORTNAME=       packter-agent
5 PORTVERSION=    2.5
6 PORTREVISION=   2
7 CATEGORIES=     net
8 MASTER_SITES=   http://www.packter.jp/
9 DISTNAME=       PackterAgent-${PORTVERSION}
10
11 MAINTAINER=     masaki@club.kyutech.ac.jp
12 COMMENT=        Agent of the tool for graphical Internet traffic visualization
13
14 LICENSE=        BSD2CLAUSE
15
16 GNU_CONFIGURE=  yes
17 USES=           pkgconfig
18 USE_GNOME=      glib20
19 CFLAGS+=        -Wno-return-type
20
21 PORTDOCS=       AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README
22
23 OPTIONS_DEFINE= IPV6 PACKTERTC DOCS
24 PACKTERTC_DESC= Install Packter TC
25
26 .include <bsd.port.options.mk>
27
28 .if ${PORT_OPTIONS:MIPV6}
29 CONFIGURE_ARGS+=        --enable-ipv6
30 .else
31 CONFIGURE_ARGS+=        --disable-ipv6
32 .endif
33
34 .if ${PORT_OPTIONS:MPACKTERTC}
35 USES+=          perl5
36 USE_PERL5=      run
37 RUN_DEPENDS+=   p5-XML-Pastor>=0:devel/p5-XML-Pastor
38 PLIST_SUB+=     PACKTERTC=""
39 .else
40 PLIST_SUB+=     PACKTERTC="@comment "
41 .endif
42
43 post-patch:
44         @${REINPLACE_CMD} 's/-lssl/-lcrypto/' ${WRKSRC}/configure
45
46 post-install:
47 .if ${PORT_OPTIONS:MPACKTERTC}
48         @${MKDIR} ${STAGEDIR}${DATADIR}
49         ${CP} -pr ${WRKSRC}/packter_tc ${STAGEDIR}${DATADIR}/
50 .endif
51 .if ${PORT_OPTIONS:MDOCS}
52         @${MKDIR} ${STAGEDIR}${DOCSDIR}
53 .for f in ${PORTDOCS}
54         ${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
55 .endfor
56 .endif
57
58 .include <bsd.port.mk>