1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit multilib toolchain-funcs
9 DESCRIPTION="libspnav is a replacement for the magellan library with a cleaner API"
10 HOMEPAGE="http://spacenav.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20library%20%28SDK%29/${PN}%20${PV}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~ppc64 ~x86"
17 CDEPEND="X? ( x11-libs/libX11 )"
18 RDEPEND="app-misc/spacenavd[X?]
23 eapply "${FILESDIR}"/${P}-makefile.patch
37 emake CC="$(tc-getCC)"
43 libdir="$(get_libdir)"
45 emake "${args[@]}" install