pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

nng: build shared libraries by default



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Fri Mar 12 03:05:27 2021 +0100
Changeset:	342a2e1fe9669c44bca74161812f5e20c6dceeca

Modified Files:
	nng/PLIST
	nng/options.mk

Log Message:
nng: build shared libraries by default

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=342a2e1fe9669c44bca74161812f5e20c6dceeca

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 nng/PLIST      |  5 ++++-
 nng/options.mk | 11 +++++++++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diffs:
diff --git a/nng/PLIST b/nng/PLIST
index 6f33fc8a0d..cb28c1773b 100644
--- a/nng/PLIST
+++ b/nng/PLIST
@@ -38,7 +38,10 @@ lib/cmake/nng/nng-config-version.cmake
 lib/cmake/nng/nng-config.cmake
 lib/cmake/nng/nng-targets-noconfig.cmake
 lib/cmake/nng/nng-targets.cmake
-lib/libnng.a
+${PLIST.static}lib/libnng.a
+${PLIST.shared}lib/libnng.so
+${PLIST.shared}lib/libnng.so.1
+${PLIST.shared}lib/libnng.so.${PKGVERSION}
 ${PLIST.doc}man/man1/nngcat.1
 ${PLIST.doc}man/man3/libnng.3
 ${PLIST.doc}man/man3/nng_aio_abort.3
diff --git a/nng/options.mk b/nng/options.mk
index 758e871fe4..b29b72f8b1 100644
--- a/nng/options.mk
+++ b/nng/options.mk
@@ -2,12 +2,12 @@
 
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.nng
-PKG_SUPPORTED_OPTIONS=	doc
+PKG_SUPPORTED_OPTIONS=	doc static
 PKG_SUGGESTED_OPTIONS+=	doc
 
 .include "../../mk/bsd.options.mk"
 
-PLIST_VARS+=		doc
+PLIST_VARS+=		doc shared static
 
 .if !empty(PKG_OPTIONS:Mdoc)
 .include "../../lang/ruby/rubyversion.mk"
@@ -16,3 +16,10 @@ 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


Home | Main Index | Thread Index | Old Index