1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit flag-o-matic toolchain-funcs
12 DESCRIPTION="Utility library for quaternion arithmetic / rotation math (ANSI C implemented)"
13 HOMEPAGE="http://cqrlib.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
18 KEYWORDS="amd64 ppc ~x86 ~amd64-linux ~x86-linux"
21 RDEPEND="dev-libs/cvector"
24 DOCS=( README_CQRlib.txt )
25 HTML_DOCS=( README_CQRlib.html )
26 PATCHES=( "${FILESDIR}"/1.0.6-gentoo.patch )
28 S="${WORKDIR}"/${MY_P}
32 sed "s:GENTOOLIBDIR:$(get_libdir):g" -i Makefile || die
33 append-cflags -std=c90
34 append-cxxflags -std=c++98
42 CPPFLAGS="${CXXFLAGS} -DCQR_NOCCODE=1" \
55 emake -j1 DESTDIR="${ED}" install
58 find "${D}" -name '*.la' -delete || die