aboutsummaryrefslogtreecommitdiffstats
path: root/net/ndpi/Makefile
blob: 548ebd5ceb338979da830b86b156a91e519c39b7 (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
# Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
# $FreeBSD$

PORTNAME=   ndpi
PORTVERSION=    1.5.1
CATEGORIES= net
MASTER_SITES=   SF/ntop/nDPI
DISTNAME=   libndpi-${PORTVERSION}

MAINTAINER= bofh@FreeBSD.org
COMMENT=    NTOP-maintained superset of the popular OpenDPI library

LICENSE=    GPLv3

LIB_DEPENDS=    libjson-c.so:${PORTSDIR}/devel/json-c

CONFIGURE_ARGS= --with-pic
CPPFLAGS+=  -I${LOCALBASE}/include/json-c
LDFLAGS+=   -L${LOCALBASE}/lib
LIBS+=      -ljson-c
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USES=       libtool pathfix pkgconfig compiler:c++11-lang
WRKSRC=     ${WRKDIR}/libndpi-${PORTVERSION}
INSTALL_TARGET= install-strip

PLIST_SUB=  MAJOR_VER=${PORTVERSION}

.include <bsd.port.mk>