svn commit: r547489 - branches/2020Q3/net-mgmt/fastnetmon
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Sep 3 22:34:39 UTC 2020
Author: pkubaj
Date: Thu Sep 3 22:34:38 2020
New Revision: 547489
URL: https://svnweb.freebsd.org/changeset/ports/547489
Log:
MFH: r547488
net-mgmt/fastnetmon: unbreak on powerpc64, others non-x86 need testing
LuaJIT is not available on powerpc64.
Approved by: portmgr (fix build blanket)
Modified:
branches/2020Q3/net-mgmt/fastnetmon/Makefile
Directory Properties:
branches/2020Q3/ (props changed)
Modified: branches/2020Q3/net-mgmt/fastnetmon/Makefile
==============================================================================
--- branches/2020Q3/net-mgmt/fastnetmon/Makefile Thu Sep 3 22:33:25 2020 (r547488)
+++ branches/2020Q3/net-mgmt/fastnetmon/Makefile Thu Sep 3 22:34:38 2020 (r547489)
@@ -15,16 +15,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_armv6= Does not build: invokes x86 assembler
BROKEN_armv7= Does not build: invokes x86 assembler
-BROKEN_powerpc64= Does not build
LIB_DEPENDS= libboost_regex.so:devel/boost-libs \
liblog4cpp.so:devel/log4cpp \
- libluajit-5.1.so:lang/luajit \
libmongoc-1.0.so:devel/mongo-c-driver \
libjson-c.so:devel/json-c \
libbson-1.0.so:devel/libbson
-USES= cmake
+USES= cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= pavel-odintsov
@@ -46,6 +44,14 @@ CMAKE_ARGS+= -DDISABLE_PF_RING_SUPPORT=ON \
-DENABLE_NETMAP_SUPPORT=OFF
CMAKE_INSTALL_PREFIX= ${PREFIX}
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == amd64 || ${ARCH} == i386
+LIB_DEPENDS+= libluajit-5.1.so:lang/luajit
+.else
+CMAKE_ARGS+= -DENABLE_LUA_SUPPORT:BOOL=OFF
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/src/CMakeLists.txt
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \
@@ -65,4 +71,4 @@ post-install:
post-install-DOCS-on:
cd ${WRKSRC} && ${COPYTREE_SHARE} "README.md docs" ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list