git: 42bef93dbcdf - main - net/libzmq4: OPTIONize STATIC build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 01 Oct 2022 20:09:32 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=42bef93dbcdf98a7a70bb507ca947fd6a616d281
commit 42bef93dbcdf98a7a70bb507ca947fd6a616d281
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-10-01 20:08:06 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-10-01 20:08:06 +0000
net/libzmq4: OPTIONize STATIC build
PR: 266744
Reported by: yonas.yanfa@gmail.com
---
net/libzmq4/Makefile | 62 ++++++++++++++++++++++++---------------------------
net/libzmq4/pkg-plist | 1 +
2 files changed, 30 insertions(+), 33 deletions(-)
diff --git a/net/libzmq4/Makefile b/net/libzmq4/Makefile
index c3e7c550e8d4..c2b8c730820c 100644
--- a/net/libzmq4/Makefile
+++ b/net/libzmq4/Makefile
@@ -15,52 +15,48 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake libtool pkgconfig
USE_LDCONFIG= yes
-CONFLICTS= zmq libzmq[^4]
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --disable-silent-rules \
+ --disable-Werror \
+ --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
-GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
-OPTIONS_DEFINE= LIBUNWIND MANPAGES
-OPTIONS_RADIO= CURVE
-OPTIONS_RADIO_CURVE= SODIUM TWEETNACL
+CFLAGS+= -Wno-long-long
+
+CONFLICTS= libzmq[^4] zmq
+
+OPTIONS_DEFINE= LIBUNWIND MANPAGES STATIC
+OPTIONS_DEFAULT= MANPAGES NORM PGM TWEETNACL STATIC
OPTIONS_GROUP= MULTICAST
OPTIONS_GROUP_MULTICAST= NORM PGM
-OPTIONS_DEFAULT= MANPAGES NORM PGM TWEETNACL
-OPTIONS_SUB= yes
+OPTIONS_RADIO= CURVE
+OPTIONS_RADIO_CURVE= SODIUM TWEETNACL
+OPTIONS_SUB= yes
-LIBUNWIND_DESC= Use libunwind to print stack trace in case of error
CURVE_DESC= CURVE security backend
+LIBUNWIND_DESC= Use libunwind to print stack trace in case of error
MULTICAST_DESC= Reliable Multicast Transports
-TWEETNACL_DESC= Use tweetnacl
-SODIUM_DESC= Use libsodium
-PGM_DESC= Enable PGM transport via OpenPGM
NORM_DESC= Enable NORM via NRL
+PGM_DESC= Enable PGM transport via OpenPGM
+SODIUM_DESC= Use libsodium
+TWEETNACL_DESC= Use tweetnacl
-PGM_CONFIGURE_WITH= pgm
-PGM_LIB_DEPENDS= libpgm.so:net/openpgm
-
-LIBUNWIND_LIB_DEPENDS= libunwind.so:devel/libunwind
+LIBUNWIND_LIB_DEPENDS= libunwind.so:devel/libunwind
LIBUNWIND_CONFIGURE_ENABLE= libunwind
-
-MANPAGES_BUILD_DEPENDS= xmlto:textproc/xmlto \
- asciidoc:textproc/asciidoc
+MANPAGES_BUILD_DEPENDS= asciidoc:textproc/asciidoc \
+ xmlto:textproc/xmlto
MANPAGES_CONFIGURE_WITH= docs
-
-NORM_CONFIGURE_WITH= norm=${PREFIX}
-NORM_LIB_DEPENDS= libnorm.so:net/norm
-
-SODIUM_CONFIGURE_WITH= libsodium
-SODIUM_LIB_DEPENDS= libsodium.so:security/libsodium
-SODIUM_PLIST_FILES= bin/curve_keygen
-
-TWEETNACL_PLIST_FILES= bin/curve_keygen
-
-CONFIGURE_ARGS+= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
- --disable-static \
- --disable-Werror \
- --disable-silent-rules
-CFLAGS+= -Wno-long-long
+NORM_LIB_DEPENDS= libnorm.so:net/norm
+NORM_CONFIGURE_WITH= norm=${PREFIX}
+PGM_LIB_DEPENDS= libpgm.so:net/openpgm
+PGM_CONFIGURE_WITH= pgm
+SODIUM_LIB_DEPENDS= libsodium.so:security/libsodium
+SODIUM_CONFIGURE_WITH= libsodium
+SODIUM_PLIST_FILES= bin/curve_keygen
+STATIC_CONFIGURE_OFF= --disable-static
+TWEETNACL_PLIST_FILES= bin/curve_keygen
.include <bsd.port.options.mk>
diff --git a/net/libzmq4/pkg-plist b/net/libzmq4/pkg-plist
index 1f7a59bcf572..6c715f8f53ab 100644
--- a/net/libzmq4/pkg-plist
+++ b/net/libzmq4/pkg-plist
@@ -1,5 +1,6 @@
include/zmq_utils.h
include/zmq.h
+%%STATIC%%lib/libzmq.a
lib/libzmq.so
lib/libzmq.so.5
lib/libzmq.so.5.2.4