Files
haikuports/net-libs/zeromq/zeromq-4.2.2.recipe
2017-08-31 18:48:08 +02:00

86 lines
2.1 KiB
Bash

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="5b23f4ca9ef545d5bd3af55d305765e3ee06b986263b31967435d285a3e6df6b"
SOURCE_URI_2="https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp#noarchive"
CHECKSUM_SHA256_2="02b73219656df3ffe3b231c7d0326e754a738ef2a83c8e94cd1e47d22cdd9535"
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.2 compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
zeromq${secondaryArchSuffix}_devel = $portVersion
devel:libzmq$secondaryArchSuffix = 5.1.2 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
}