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.
52 lines
1.1 KiB
52 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
|
inherit desktop toolchain-funcs
|
||
8 years ago
|
|
||
|
DESCRIPTION="A shooting game in the spirit of Phobia games"
|
||
|
HOMEPAGE="http://www.mhgames.org/oldies/formido/"
|
||
|
SRC_URI="http://noe.falzon.free.fr/prog/${P}.tar.gz
|
||
|
http://koti.mbnet.fi/lsoft/formido/formido-music.tar.bz2"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT=0
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
8 years ago
|
|
||
|
DEPEND="media-libs/libsdl[sound,video]
|
||
|
media-libs/sdl-image
|
||
|
media-libs/sdl-mixer"
|
||
|
RDEPEND=${DEPEND}
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack ${P}.tar.gz
|
||
|
cd "${S}"/data || die
|
||
|
unpack ${PN}-music.tar.bz2
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
sed -i \
|
||
4 years ago
|
-e '/^FLAGS=/s:$: $(CXXFLAGS):' \
|
||
8 years ago
|
Makefile || die
|
||
|
}
|
||
|
|
||
4 years ago
|
src_compile() {
|
||
|
emake CC="$(tc-getCXX)" \
|
||
|
CXXFLAGS="${CXXFLAGS}" \
|
||
|
LINKFLAGS="${LDFLAGS}" \
|
||
|
DATDIR="${EPREFIX}/usr/share/formido/data" \
|
||
|
DEFCONFIGDIR="${EPREFIX}/usr/share/formido"
|
||
|
}
|
||
|
|
||
8 years ago
|
src_install() {
|
||
|
dobin ${PN}
|
||
|
insinto /usr/share/${PN}
|
||
|
doins -r ${PN}.cfg data
|
||
|
newicon data/icon.dat ${PN}.bmp
|
||
|
make_desktop_entry ${PN} Formido /usr/share/pixmaps/${PN}.bmp
|
||
|
dodoc README README-1.0.1
|
||
|
}
|