1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/net/ndpi/Makefile
Guido Falsi 2adbe2ccc4 net/ndpi: Update to latest upstream commit
Fix missing SONAME (intruduced by mistake in previous update)
2023-11-03 19:58:30 +01:00

53 lines
1.5 KiB
Makefile

PORTNAME= ndpi
PORTVERSION= 4.8.d20231102
PORTEPOCH= 1
CATEGORIES= net
MAINTAINER= madpilot@FreeBSD.org
COMMENT= NTOP-maintained superset of the popular OpenDPI library
WWW= https://www.ntop.org/products/deep-packet-inspection/ndpi/
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= librrd.so:databases/rrdtool \
libjson-c.so:devel/json-c \
libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error
USES= autoreconf compiler:c++11-lang cpe libtool localbase:ldflags pathfix \
pkgconfig
CPE_VENDOR= ntop
USE_LDCONFIG= yes
CONFIGURE_ARGS= --with-pic --with-local-libgcrypt
CPPFLAGS= -I${LOCALBASE}/include/json-c
LIBS= -ljson-c
MAKE_ENV= EXAMPLESDIR="${EXAMPLESDIR_REL}"
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_GITHUB= yes
GH_ACCOUNT= ntop
GH_PROJECT= nDPI
GH_TAGNAME= 816b001
PLIST_SUB= MAJOR_VER=${PORTVERSION:R:R} VER=${PORTVERSION:R}
post-configure:
@${REINPLACE_CMD} -e 's/#define PACKAGE/#define NDPI_PACKAGE/g' \
-e 's/#define VERSION/#define NDPI_VERSION/g' \
${WRKSRC}/configure
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R}.0
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ndpiReader
${RM} ${STAGEDIR}${PREFIX}/lib/libndpi.so \
${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R:R}
${RLN} ${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R}.0 \
${STAGEDIR}${PREFIX}/lib/libndpi.so
${RLN} ${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R}.0 \
${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R:R}
.include <bsd.port.mk>