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)
This commit is contained in:
Piotr Kubaj 2020-09-03 22:34:38 +00:00
parent e92033371a
commit ab7af76236
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q3/; revision=547489

View File

@ -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>