Files
haikuports/net-libs/zeromq/zeromq-4.2.3.recipe
Schrijvers Luc 99639fa5b2 zeromq, bump version (#2726)
* zeromq, bump version

* use commandSuffix
2018-06-23 23:18:32 -04:00

99 lines
2.4 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 Google, 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="8f1e2b2aade4dbfde98d82366d61baef2f62e812530160d2e6d0a5bb24e40bc0"
SOURCE_URI_2="https://raw.githubusercontent.com/zeromq/cppzmq/a604af9/zmq.hpp#noarchive"
CHECKSUM_SHA256_2="cc9258ac55ccf3e53594d0c0c154ac089a08a11d1f3e1d52e6acc8c6a71eef69"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="5.1.3"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
zeromq$secondaryArchSuffix = $portVersion
cmd:curve_keygen$commandSuffix
lib:libzmq$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
zeromq${secondaryArchSuffix}_devel = $portVersion
devel:libzmq$secondaryArchSuffix = $libVersionCompat
"
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
"
defineDebugInfoPackage zeromq$secondaryArchSuffix \
"$commandBinDir"/curve_keygen \
"$libDir"/libzmq.so.$libVersion
BUILD()
{
autoreconf -fi
runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir"
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
}