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.
45 lines
1.1 KiB
45 lines
1.1 KiB
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/ngstar/ngstar-2.1.8-r2.ebuild,v 1.9 2012/07/21 20:33:46 tupone Exp $
|
|
|
|
EAPI=2
|
|
inherit eutils games
|
|
|
|
DESCRIPTION="NGStar is a clone of a HP48 game called dstar"
|
|
HOMEPAGE="http://freshmeat.net/projects/ngstar"
|
|
SRC_URI="mirror://gentoo//${P}-src.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 x86"
|
|
IUSE=""
|
|
|
|
DEPEND="sys-libs/ncurses
|
|
sys-libs/gpm"
|
|
|
|
src_prepare() {
|
|
epatch \
|
|
"${FILESDIR}"/${P}-gentoo-path.patch \
|
|
"${FILESDIR}"/${P}-gcc43.patch \
|
|
"${FILESDIR}"/${P}-gcc47.patch \
|
|
"${FILESDIR}"/${P}-ldflags.patch
|
|
sed -i \
|
|
-e "s:@GENTOO_DATA@:${GAMES_DATADIR}:" \
|
|
-e "s:@GENTOO_BIN@:${GAMES_BINDIR}:" \
|
|
-e "/^CPPFLAGS/s:+=:+= ${CXXFLAGS}:" \
|
|
-e "/SILENT/d" \
|
|
configure || die "sed configure failed"
|
|
}
|
|
|
|
src_configure() {
|
|
./configure \
|
|
--prefix "" \
|
|
--without-fltk2 || die "configure failed"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die "emake install failed"
|
|
dodoc AUTHORS Changelog README TODO
|
|
prepgamesdirs
|
|
}
|