net/libzmq4: OPTIONize STATIC build

PR:		266744
Reported by:	yonas.yanfa@gmail.com
This commit is contained in:
Muhammad Moinur Rahman 2022-10-01 15:08:06 -05:00
parent 24d9ef5e73
commit 42bef93dbc
2 changed files with 30 additions and 33 deletions

View file

@ -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>

View file

@ -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