a74a73f65b
NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery. The API frees the programmer from worrying about details like connection management, retries, and other common considerations, so that they can focus on the application instead of the plumbing. NNG is implemented in C, requiring only C99 and CMake to build. It can be built as a shared or a static library, and is readily embeddable. It is also designed to be easy to port to new platforms if your platform is not already supported.
25 lines
633 B
Makefile
25 lines
633 B
Makefile
# $NetBSD: options.mk,v 1.1 2021/03/12 02:28:08 khorben Exp $
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.nng
|
|
PKG_SUPPORTED_OPTIONS= doc static
|
|
PKG_SUGGESTED_OPTIONS+= doc
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= doc shared static
|
|
|
|
.if !empty(PKG_OPTIONS:Mdoc)
|
|
.include "../../lang/ruby/rubyversion.mk"
|
|
BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-asciidoctor-[0-9]*:../../textproc/ruby-asciidoctor
|
|
CMAKE_ARGS+= -DNNG_ENABLE_DOC=1
|
|
CMAKE_ARGS+= -DASCIIDOCTOR=${PREFIX}/bin/asciidoctor${RUBY_VER}
|
|
PLIST.doc= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mstatic)
|
|
PLIST.static= yes
|
|
.else
|
|
CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON
|
|
PLIST.shared= yes
|
|
.endif
|