47 lines
992 B
Bash
47 lines
992 B
Bash
# Copyright 1999-2015 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/games-arcade/xscavenger/xscavenger-1.4.4.ebuild,v 1.10 2015/01/06 09:38:29 tupone Exp $
|
|
|
|
EAPI=5
|
|
inherit eutils toolchain-funcs games
|
|
|
|
DESCRIPTION="Lode-Runner-like arcade game"
|
|
HOMEPAGE="http://www.xdr.com/dash/scavenger.html"
|
|
SRC_URI="http://www.xdr.com/dash/${P}.tgz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="x11-libs/libXext"
|
|
DEPEND="${RDEPEND}
|
|
x11-misc/imake"
|
|
|
|
S=${WORKDIR}/${P}/src
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/${PV}-gentoo.patch"
|
|
sed -i \
|
|
-e "s:GENTOO_DATADIR:${GAMES_DATADIR}:" \
|
|
-e "s:GENTOO_BINDIR:${GAMES_BINDIR}:" \
|
|
Imakefile \
|
|
|| die
|
|
}
|
|
|
|
src_configure() {
|
|
xmkmf || die
|
|
}
|
|
|
|
src_compile() {
|
|
emake \
|
|
CC="$(tc-getCC)" \
|
|
CDEBUGFLAGS="${CFLAGS}" \
|
|
EXTRA_LDOPTIONS="${LDFLAGS}"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install
|
|
dodoc ../{CREDITS,DOC,README,TODO,changelog}
|
|
prepgamesdirs
|
|
}
|