aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/macroscope/Makefile
blob: 30cae0df951e76ab7927b356ee32e584d8463ba7 (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
48
49
50
51
52
53
54
# New ports collection makefile for:	macroscope
# Date created:		2007-05-14
# Whom:			Dukashvili Guram <white_raven@users.berlios.de>
#
# $FreeBSD$
#

PORTNAME=		macroscope
PORTVERSION=		1.0.3787
PORTREVISION=	4
CATEGORIES=		net-mgmt
MASTER_SITES=		ftp://ftp.berlios.de/pub/macroscope/ \
			http://white-raven.pisem.net/
DISTNAME=		${PORTNAME}-${PORTVERSION}

MAINTAINER=		white_raven@users.berlios.de
COMMENT=		User and IP traffic management with Web interface

LIB_DEPENDS=		lzo2:${PORTSDIR}/archivers/lzo2 \
			odbc:${PORTSDIR}/databases/unixODBC \
			pcap:${PORTSDIR}/net/libpcap \
			gd:${PORTSDIR}/graphics/gd

USE_RC_SUBR=		${PORTNAME}
USE_BZIP2=		yes
USE_DOS2UNIX=		yes
USE_CMAKE=		yes

OPTIONS=		MYSQL		"With MySQL support" on \
			FIREBIRD	"With Firebird support" off

.include <bsd.port.pre.mk>

.if defined(NOPORTDOCS)
CMAKE_ARGS+=		-DCMAKE_NOT_INSTALL_DOC:BOOL=ON
.endif

.if !defined(WITHOUT_MYSQL)
WANT_MYSQL_VER=		50
USE_MYSQL=		yes
.endif

.if !defined(WITHOUT_FIREBIRD)
WITH_FIREBIRD_VER=	2
USE_FIREBIRD=		yes
.endif

.include "${PORTSDIR}/Mk/bsd.database.mk"

.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN=	Does not compile on this architecture
.endif

.include <bsd.port.post.mk>