summaryrefslogtreecommitdiff
blob: f6a79d44be2f81c7e6b845f581897c1aac605966 (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
37
38
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

ROS_REPO_URI="https://github.com/ros/ros_comm"
KEYWORDS="~amd64 ~arm"
ROS_SUBDIR=tools/${PN}

inherit ros-catkin

DESCRIPTION="ROS console output library"
LICENSE="BSD"
SLOT="0"
IUSE="+log4cxx glog"

RDEPEND="
	dev-ros/cpp_common
	dev-ros/rostime
	dev-ros/rosunit
	dev-libs/boost:=[threads]
	log4cxx? ( dev-libs/log4cxx )
	!log4cxx? ( glog? ( dev-cpp/glog ) )
"
DEPEND="${RDEPEND}"

src_configure() {
	local ROSCONSOLE_BACKEND=""
	if use log4cxx; then
		ROSCONSOLE_BACKEND="log4cxx"
	elif use glog; then
		ROSCONSOLE_BACKEND="glog"
	else
		ROSCONSOLE_BACKEND="print"
	fi
	local mycatkincmakeargs=( "-DROSCONSOLE_BACKEND=${ROSCONSOLE_BACKEND}" )
	ros-catkin_src_configure
}