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.
53 lines
1.0 KiB
53 lines
1.0 KiB
7 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
|
inherit desktop gnome2-utils
|
||
13 years ago
|
|
||
|
DESCRIPTION="The game Missile Command for Linux"
|
||
|
HOMEPAGE="http://missile.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~alpha ~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
11 years ago
|
DEPEND="media-libs/libsdl[sound,video]
|
||
13 years ago
|
media-libs/sdl-image[png]
|
||
7 years ago
|
media-libs/sdl-mixer
|
||
|
"
|
||
|
RDEPEND="${DEPEND}"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
7 years ago
|
default
|
||
|
eapply "${FILESDIR}"/${P}-ldflags.patch
|
||
13 years ago
|
sed -i \
|
||
|
-e '/^CC/d' \
|
||
7 years ago
|
-e "s:\$(game_prefix)/\$(game_data):/usr/share/${PN}:" \
|
||
13 years ago
|
-e "s/-O2/${CFLAGS}/" \
|
||
11 years ago
|
-e 's/-lSDL_image $(SND_LIBS)/-lSDL_image -lm $(SND_LIBS)/g' \
|
||
|
Makefile || die
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
7 years ago
|
dobin ${PN}
|
||
|
insinto /usr/share/${PN}
|
||
11 years ago
|
doins -r data/*
|
||
|
newicon -s 48 icons/${PN}_icon_black.png ${PN}.png
|
||
13 years ago
|
make_desktop_entry ${PN} "Missile Command"
|
||
7 years ago
|
einstalldocs
|
||
13 years ago
|
}
|
||
11 years ago
|
|
||
|
pkg_preinst() {
|
||
|
gnome2_icon_savelist
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|