mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
zeromq: add recipe for version 4.2.1.
* would need libunwind to be more complete.
This commit is contained in:
36
net-libs/zeromq/patches/zeromq-4.2.1.patchset
Normal file
36
net-libs/zeromq/patches/zeromq-4.2.1.patchset
Normal file
@@ -0,0 +1,36 @@
|
||||
From c7fd95dbd48ddffaf5477cd4b831a6cdbb4f9008 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Tue, 18 Apr 2017 21:52:36 +0200
|
||||
Subject: Haiku patch
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 915d795..61d1426 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -212,6 +212,9 @@ case "${host_os}" in
|
||||
LIBZMQ_CHECK_LANG_FLAG_PREPEND([-Wno-uninitialized])
|
||||
AC_LANG_POP([C++])
|
||||
;;
|
||||
+ *haiku*)
|
||||
+ AC_DEFINE(ZMQ_HAVE_HAIKU, 1, [Have Haiku OS])
|
||||
+ ;;
|
||||
*netbsd*)
|
||||
# Define on NetBSD to enable all library features
|
||||
CPPFLAGS="-D_NETBSD_SOURCE $CPPFLAGS"
|
||||
diff --git a/src/ip.cpp b/src/ip.cpp
|
||||
index a2a8582..4242ae5 100644
|
||||
--- a/src/ip.cpp
|
||||
+++ b/src/ip.cpp
|
||||
@@ -174,7 +174,7 @@ void zmq::set_ip_type_of_service (fd_t s_, int iptos)
|
||||
#endif
|
||||
|
||||
// Windows does not support IPV6_TCLASS
|
||||
-#ifndef ZMQ_HAVE_WINDOWS
|
||||
+#if !defined(ZMQ_HAVE_WINDOWS) && !defined(ZMQ_HAVE_HAIKU)
|
||||
rc = setsockopt(
|
||||
s_,
|
||||
IPPROTO_IPV6,
|
||||
--
|
||||
2.12.2
|
||||
|
||||
85
net-libs/zeromq/zeromq-4.2.1.recipe
Normal file
85
net-libs/zeromq/zeromq-4.2.1.recipe
Normal file
@@ -0,0 +1,85 @@
|
||||
SUMMARY="A lightweight messaging kernel"
|
||||
DESCRIPTION="The ZeroMQ lightweight messaging kernel is a library which \
|
||||
extends the standard socket interfaces with features traditionally provided by\
|
||||
specialised messaging middleware products. ZeroMQ sockets provide an \
|
||||
abstraction of asynchronous message queues, multiple messaging patterns, \
|
||||
message filtering (subscriptions), seamless access to multiple transport \
|
||||
protocols and more."
|
||||
HOMEPAGE="http://www.zeromq.org/"
|
||||
COPYRIGHT="2007-2014 iMatix Corporation
|
||||
2009-2011 250bpm s.r.o.
|
||||
2010-2011 Miru Limited
|
||||
2011 VMware, Inc.
|
||||
2012 Spotify AB
|
||||
2013 Ericsson AB
|
||||
2014 AppDynamics Inc.
|
||||
2015-2016 Brocade Communications Systems Inc.
|
||||
"
|
||||
LICENSE="GNU LGPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/zeromq/libzmq/releases/download/v$portVersion/zeromq-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="27d1e82a099228ee85a7ddb2260f40830212402c605a4a10b5e5498a7e0e9d03"
|
||||
SOURCE_URI_2="https://raw.githubusercontent.com/zeromq/cppzmq/1fdf3d1/zmq.hpp#noarchive"
|
||||
CHECKSUM_SHA256_2="88d5978e7c7220e71aa7aa255081e7e01502d18d89f2eb9d42b96a43bb642293"
|
||||
PATCHES="zeromq-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
|
||||
|
||||
PROVIDES="
|
||||
zeromq$secondaryArchSuffix = $portVersion
|
||||
cmd:curve_keygen$secondaryArchSuffix
|
||||
lib:libzmq$secondaryArchSuffix = 5.1.1 compat >= 5
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
zeromq${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libzmq$secondaryArchSuffix = 5.1.1 compat >= 5
|
||||
"
|
||||
REQUIRES_devel="
|
||||
zeromq$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/libzmq.la
|
||||
|
||||
cp $sourceDir2/zmq.hpp $includeDir
|
||||
|
||||
# prepare development lib links
|
||||
prepareInstalledDevelLib libzmq
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel $developDir $manDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user