1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/net/cppzmq/Makefile
2021-04-06 16:31:07 +02:00

43 lines
936 B
Makefile

# Created by: Vasil Dimov <vd@FreeBSD.org>
PORTNAME= cppzmq
PORTVERSION= 4.7.1
DISTVERSIONPREFIX= v
CATEGORIES= net
MAINTAINER= vd@FreeBSD.org
COMMENT= C++ bindings for 0MQ
LICENSE= MIT
LIB_DEPENDS= libzmq.so:net/libzmq4
NO_ARCH= yes
USES= cmake pkgconfig
CMAKE_ARGS= --no-warn-unused-cli \
-DCPPZMQ_BUILD_TESTS:BOOL=OFF \
-DCPPZMQ_CMAKECONFIG_INSTALL_DIR:PATH="lib/cmake/${PORTNAME}" \
-Wno-dev
# cppzmq is included in libzmq2
CONFLICTS_INSTALL= libzmq2
USE_GITHUB= yes
GH_ACCOUNT= zeromq
PLIST_FILES= \
include/zmq.hpp \
include/zmq_addon.hpp \
lib/cmake/${PORTNAME}/cppzmqConfig.cmake \
lib/cmake/${PORTNAME}/cppzmqConfigVersion.cmake \
lib/cmake/${PORTNAME}/cppzmqTargets.cmake \
lib/cmake/${PORTNAME}/libzmq-pkg-config/FindZeroMQ.cmake
post-patch:
${SED} -i '.orig' \
-e 's|ZeroMQ_LIBRARY AND ZeroMQ_STATIC_LIBRARY|ZeroMQ_LIBRARY|' \
${WRKSRC}/libzmq-pkg-config/FindZeroMQ.cmake
.include <bsd.port.mk>