freebsd-ports/net/cppzmq/Makefile
Tobias Kortkamp f4c9de68f6 net/openpgm: Do not add -I to non-existing directory in openpgm-5.2.pc
foo/lib/pgm-5.2/include does not exist, so applications using strict
compiler flags will fail to build due to this.

Here this breaks devel/xeus build after r491260 [1]:

CMake Error in CMakeLists.txt:
  Imported target "cppzmq" includes non-existent path

    "/usr/local/lib/pgm-5.2/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

- Bump revisions of all net/openpgm consumers
- Unbreak devel/xeus

[1] http://beefy9.nyi.freebsd.org/data/112amd64-default/491532/logs/errors/xeus-0.18.1.log

PR:		230575
2019-03-01 08:08:14 +00:00

44 lines
964 B
Makefile

# Created by: Vasil Dimov <vd@FreeBSD.org>
# $FreeBSD$
PORTNAME= cppzmq
PORTVERSION= 4.3.0
PORTREVISION= 2
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>