1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/net-mgmt/macroscope/Makefile
2008-02-01 12:43:44 +00:00

63 lines
1.4 KiB
Makefile

# 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.2278
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.berlios.de/pub/macroscope/ \
http://white-raven.pisem.net/
MAINTAINER= white_raven@users.berlios.de
COMMENT= User and IP traffic management with Web interface
BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake
LIB_DEPENDS= lzo2:${PORTSDIR}/archivers/lzo2 \
odbc:${PORTSDIR}/databases/unixODBC \
pcap:${PORTSDIR}/net/libpcap
USE_RC_SUBR= macroscope
USE_BZIP2= yes
USE_DOS2UNIX= yes
CMAKE_ARGS= -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_C_COMPILER:STRING="${CC}" \
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
-DCMAKE_CXX_COMPILER:STRING="${CXX}" \
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
-DCMAKE_INSTALL_PREFIX=${PREFIX}
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} == "sparc64"
BROKEN= Does not compile
.endif
do-configure:
@(cd ${WRKSRC}; \
${LOCALBASE}/bin/cmake ${CMAKE_ARGS} .)
.include <bsd.port.post.mk>