diff options
Diffstat (limited to 'sci-libs/ignition-math/ignition-math-1.0.0.ebuild')
-rw-r--r-- | sci-libs/ignition-math/ignition-math-1.0.0.ebuild | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sci-libs/ignition-math/ignition-math-1.0.0.ebuild b/sci-libs/ignition-math/ignition-math-1.0.0.ebuild new file mode 100644 index 000000000000..623882351a63 --- /dev/null +++ b/sci-libs/ignition-math/ignition-math-1.0.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils vcs-snapshot flag-o-matic + +DESCRIPTION="A small, fast, and high performance math library for robot applications" +HOMEPAGE="http://ignitionrobotics.org/libraries/math" +SRC_URI="https://bitbucket.org/ignitionrobotics/ign-math/get/${PN}_${PV}.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="1/1" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" +S="${WORKDIR}/${PN}_${PV}" +CMAKE_BUILD_TYPE=RelWithDebInfo + +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 +} |