summaryrefslogtreecommitdiff
path: root/net-mgmt/arts++/Makefile
blob: 789cfb8485ad43e123b6859a46b95f6bd4dad6ad (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
43
44
45
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
# $FreeBSD$

PORTNAME=	arts++
PORTVERSION=	1.1.a13
PORTREVISION=	2
PORTEPOCH=	1
CATEGORIES=	net-mgmt
MASTER_SITES=	http://www.caida.org/tools/utilities/arts/download/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Network data storage and analysis library from CAIDA

LICENSE=	LGPL21

USES=		gmake libtool
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-shared
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's/make_pair/std::make_pair/' \
		${WRKSRC}/classes/include/Ipv4PrefixPatricia.hh.in
	@${REINPLACE_CMD} -e 's|@mandir@|$${DESTDIR}@mandir@|g'  \
		-e 's|@bindir@|$${DESTDIR}@bindir@|g'  \
		${WRKSRC}/apps/*/Makefile.in
	@${REINPLACE_CMD} -e 's|@libdir@|$${DESTDIR}@libdir@|g'  \
		-e 's|@includedir@|$${DESTDIR}@includedir@|g'  \
		${WRKSRC}/classes/*/Makefile.in

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libArts.so
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
.for f in ChangeLog INSTALL WishList
	@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
	@${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}/html
.endif

.include <bsd.port.mk>