You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.0 KiB
54 lines
1.0 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
|
|
||
|
inherit desktop xdg
|
||
8 years ago
|
|
||
|
DESCRIPTION="A racing game starring Tux, the Linux penguin"
|
||
|
HOMEPAGE="http://tuxkart.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/tuxkart/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~alpha ~amd64 ~x86"
|
||
|
|
||
4 years ago
|
RDEPEND="
|
||
|
>=media-libs/plib-1.8.0
|
||
8 years ago
|
x11-libs/libX11
|
||
|
x11-libs/libICE
|
||
|
x11-libs/libSM
|
||
|
x11-libs/libXext
|
||
|
x11-libs/libXi
|
||
|
x11-libs/libXmu
|
||
4 years ago
|
virtual/opengl
|
||
|
"
|
||
|
DEPEND="
|
||
|
${RDEPEND}
|
||
|
x11-libs/libXt
|
||
|
"
|
||
8 years ago
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
# apparently <sys/perm.h> doesn't exist on alpha
|
||
|
if use alpha; then
|
||
|
sed -i \
|
||
|
-e '/#include <sys\/perm.h>/d' src/gfx.cxx || die
|
||
|
fi
|
||
|
sed -i \
|
||
|
-e "/^plib_suffix/ s/-lplibul/-lplibul -lplibjs/" \
|
||
|
-e "s/-malign-double//; s/-O6//" configure || die
|
||
|
sed -i \
|
||
|
-e "/^bindir/s/=.*/=@bindir@/" src/Makefile.in || die
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
dodoc doc/*.html
|
||
4 years ago
|
rm -r "${ED}"/usr/share/tuxkart/ || die
|
||
|
|
||
|
newicon -s 256 doc/title_screen.png ${PN}.png
|
||
|
make_desktop_entry ${PN} TuxKart
|
||
8 years ago
|
}
|