blob: d90f82ffa1b4bedbae8b3baa9bf46ee019fea443 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit cmake-utils vcs-snapshot flag-o-matic
DESCRIPTION="Combines ZeroMQ with Protobufs to create a fast and efficient message passing system"
HOMEPAGE="http://ignitionrobotics.org/libraries/transport"
SRC_URI="http://gazebosim.org/distributions/ign-transport/releases/${PN}3-${PV}.tar.bz2"
LICENSE="Apache-2.0"
SLOT="3/3"
KEYWORDS="~amd64"
IUSE=""
DEPEND="
net-libs/ignition-msgs:0=
dev-libs/protobuf:=
>=net-libs/zeromq-3.2.0:=
sys-apps/util-linux
net-libs/cppzmq
"
RDEPEND="${DEPEND}"
DEPEND="${DEPEND}
virtual/pkgconfig"
CMAKE_BUILD_TYPE=RelWithDebInfo
S="${WORKDIR}/${PN}3-${PV}"
src_configure() {
# upstream appends this conditionally...
append-flags "-fPIC"
echo "set (CMAKE_C_FLAGS_ALL \"${CXXFLAGS} \${CMAKE_C_FLAGS_ALL}\")" > "${S}/cmake/HostCFlags.cmake"
sed -i -e "s/LINK_FLAGS_RELWITHDEBINFO \" \"/LINK_FLAGS_RELWITHDEBINFO \" ${LDFLAGS} \"/" cmake/DefaultCFlags.cmake || die
cmake-utils_src_configure
}
|