1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils gnome2-utils
8 DESCRIPTION="model-airplane flight simulation program"
9 HOMEPAGE="https://sourceforge.net/projects/crrcsim/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
17 RDEPEND="media-libs/libsdl[X,sound,joystick,opengl,video]
20 portaudio? ( media-libs/portaudio )"
24 "${FILESDIR}"/${P}-buildsystem.patch
25 "${FILESDIR}"/${P}-gcc6.patch
31 if has_version "sci-mathematics/cgal[gmp(+)]" ; then
32 eapply "${FILESDIR}"/${PN}-cgal_gmp.patch
39 --datadir="/usr/share" \
40 --datarootdir="${EPREFIX}/usr/share" \
41 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
46 emake DESTDIR="${D}" install
47 dodoc AUTHORS HISTORY NEWS README
48 doicon -s 32 packages/icons/${PN}.png
49 make_desktop_entry ${PN}
57 gnome2_icon_cache_update
61 gnome2_icon_cache_update