From 673fb57daabe6524e5001b5a80df6f60d36c1cf0 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 18 Apr 2017 22:06:38 +0200 Subject: [PATCH] zeromq: add recipe for version 4.2.1. * would need libunwind to be more complete. --- ...-0.1.1.recipe => libopenshot-0.1.4.recipe} | 0 ....1.patchset => libopenshot-0.1.4.patchset} | 0 net-libs/zeromq/patches/zeromq-4.2.1.patchset | 36 ++++++++ net-libs/zeromq/zeromq-4.2.1.recipe | 85 +++++++++++++++++++ .../bc/{bc-1.07.recipe => bc-1.07.1.recipe} | 0 .../{bc-1.07.patchset => bc-1.07.1.patchset} | 0 6 files changed, 121 insertions(+) rename media-libs/libopenshot/{libopenshot-0.1.1.recipe => libopenshot-0.1.4.recipe} (100%) rename media-libs/libopenshot/patches/{libopenshot-0.1.1.patchset => libopenshot-0.1.4.patchset} (100%) create mode 100644 net-libs/zeromq/patches/zeromq-4.2.1.patchset create mode 100644 net-libs/zeromq/zeromq-4.2.1.recipe rename sys-devel/bc/{bc-1.07.recipe => bc-1.07.1.recipe} (100%) rename sys-devel/bc/patches/{bc-1.07.patchset => bc-1.07.1.patchset} (100%) diff --git a/media-libs/libopenshot/libopenshot-0.1.1.recipe b/media-libs/libopenshot/libopenshot-0.1.4.recipe similarity index 100% rename from media-libs/libopenshot/libopenshot-0.1.1.recipe rename to media-libs/libopenshot/libopenshot-0.1.4.recipe diff --git a/media-libs/libopenshot/patches/libopenshot-0.1.1.patchset b/media-libs/libopenshot/patches/libopenshot-0.1.4.patchset similarity index 100% rename from media-libs/libopenshot/patches/libopenshot-0.1.1.patchset rename to media-libs/libopenshot/patches/libopenshot-0.1.4.patchset diff --git a/net-libs/zeromq/patches/zeromq-4.2.1.patchset b/net-libs/zeromq/patches/zeromq-4.2.1.patchset new file mode 100644 index 000000000..c48a344a5 --- /dev/null +++ b/net-libs/zeromq/patches/zeromq-4.2.1.patchset @@ -0,0 +1,36 @@ +From c7fd95dbd48ddffaf5477cd4b831a6cdbb4f9008 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +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 + diff --git a/net-libs/zeromq/zeromq-4.2.1.recipe b/net-libs/zeromq/zeromq-4.2.1.recipe new file mode 100644 index 000000000..6e7a43d07 --- /dev/null +++ b/net-libs/zeromq/zeromq-4.2.1.recipe @@ -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 +} diff --git a/sys-devel/bc/bc-1.07.recipe b/sys-devel/bc/bc-1.07.1.recipe similarity index 100% rename from sys-devel/bc/bc-1.07.recipe rename to sys-devel/bc/bc-1.07.1.recipe diff --git a/sys-devel/bc/patches/bc-1.07.patchset b/sys-devel/bc/patches/bc-1.07.1.patchset similarity index 100% rename from sys-devel/bc/patches/bc-1.07.patchset rename to sys-devel/bc/patches/bc-1.07.1.patchset