freebsd-ports/net/ndpi/Makefile
Guido Falsi 41241f7c87 - Update net/ndpi to 2.2.2 snapshot
- Update net/ntopng to 3.4 snapshot
- Change versioning scheme to conform to porter's handbook best
  practices
- Bump PORTEPOCH to avoid version number going backwards
- Remove patches included upstream
- Remove unneeded USE_LDCONFIG in ntopng
2018-06-04 17:01:36 +00:00

43 lines
993 B
Makefile

# Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
# $FreeBSD$
PORTNAME= ndpi
PORTVERSION= 2.2.2.d20180406
PORTEPOCH= 1
CATEGORIES= net
MAINTAINER= madpilot@FreeBSD.org
COMMENT= NTOP-maintained superset of the popular OpenDPI library
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libjson-c.so:devel/json-c
USES= autoreconf compiler:c++11-lang libtool pathfix pkgconfig
CONFIGURE_ARGS= --with-pic
CPPFLAGS+= -I${LOCALBASE}/include/json-c
LDFLAGS+= -L${LOCALBASE}/lib
LIBS+= -ljson-c
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
USE_GITHUB= yes
GH_ACCOUNT= ntop
GH_PROJECT= nDPI
GH_TAGNAME= 0e11abc
PLIST_SUB= MAJOR_VER=${PORTVERSION:R}
post-patch:
@${REINPLACE_CMD} '/ndpi_config\.h/d' \
${WRKSRC}/src/include/ndpi_main.h
cd ${WRKSRC} && ${SH} autogen.sh
post-configure:
@${REINPLACE_CMD} -e 's/#define PACKAGE/#define NDPI_PACKAGE/g' \
-e 's/#define VERSION/#define NDPI_VERSION/g' \
${WRKSRC}/configure
.include <bsd.port.mk>