# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit desktop toolchain-funcs MY_PN=${PN}-rally MY_P=${MY_PN}-${PV} DESCRIPTION="Free OpenGL rally car racing game" HOMEPAGE="http://trigger-rally.sourceforge.net/" SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" S="${WORKDIR}"/${MY_P} LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND=" dev-games/physfs media-libs/freealut media-libs/libsdl[joystick] media-libs/openal media-libs/sdl-image[jpeg,png] media-libs/sdl-mixer dev-libs/tinyxml2 media-libs/freealut virtual/glu virtual/opengl" DEPEND="${RDEPEND}" src_configure() { true } src_compile() { emake prefix=/usr OPTIMS='-march=native -mtune=native -O3' -C src || die } src_install() { dobin bin/${MY_PN} insinto /usr/share/games/${MY_PN} doins -r data/* doins bin/trigger-rally.config.defs newicon data/icon/trigger-256.png ${PN}.png make_desktop_entry ${PN} Trigger dodoc doc/*.txt } pkg_postinst() { elog "After running ${PN} for the first time, a config file is" elog "available in ~/.trigger/trigger.config" }