sthen 25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.

This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -

- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.

- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.

devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
2018-10-24 14:27:57 +00:00

42 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.30 2018/10/24 14:28:09 sthen Exp $
COMMENT = open source message queue optimised for performance
V = 4.2.5
DISTNAME = zeromq-${V}
REVISION = 0
SHARED_LIBS += zmq 4.2 # 6.3
CATEGORIES = net
HOMEPAGE = http://zeromq.org/
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
# LGPLv3
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m pthread sodium ${COMPILER_LIBCXX}
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES = https://github.com/zeromq/libzmq/releases/download/v$V/
LIB_DEPENDS = security/libsodium
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --disable-Werror
# XXX: verify tweetnacl (the default) uses proper randomness before using it
CONFIGURE_ARGS += --with-libsodium
# XXX libsodium: https://github.com/jedisct1/libsodium/pull/104
CONFIGURE_ENV = CXXFLAGS="-Wno-long-long ${CXXFLAGS}"
# test_system needs to be able to create at least 496 sockets
do-test:
cd ${WRKSRC} && ulimit -n 1024 && ${MAKE_PROGRAM} ${TEST_TARGET}
.include <bsd.port.mk>