You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
952 B
40 lines
952 B
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit cmake-utils
|
|
|
|
DESCRIPTION="Simulation Description Format (SDF) parser"
|
|
HOMEPAGE="http://sdformat.org/"
|
|
SRC_URI="http://osrf-distributions.s3.amazonaws.com/sdformat/releases/${P}.tar.bz2"
|
|
|
|
LICENSE="Apache-2.0"
|
|
# subslot = libsdformat major
|
|
SLOT="0/9"
|
|
KEYWORDS="~amd64"
|
|
IUSE=""
|
|
|
|
RDEPEND="
|
|
>=dev-libs/urdfdom-1:=
|
|
dev-libs/tinyxml
|
|
dev-libs/boost:=
|
|
sci-libs/ignition-math:6=
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
dev-lang/ruby:*
|
|
virtual/pkgconfig
|
|
"
|
|
CMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
src_configure() {
|
|
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
|
|
local mycmakeargs=(
|
|
"-DUSE_INTERNAL_URDF=OFF"
|
|
"-DUSE_EXTERNAL_TINYXML=ON"
|
|
)
|
|
cmake-utils_src_configure
|
|
}
|