|
|
LICENSE="GPL-2" | LICENSE="GPL-2" |
SLOT="0" | SLOT="0" |
KEYWORDS="x86" | KEYWORDS="x86" |
IUSE="" |
IUSE="static" |
| |
DEPEND="sys-libs/ncurses" | DEPEND="sys-libs/ncurses" |
| |
|
src_unpack() { |
|
unpack "${A}" |
|
cd "${S}" |
|
|
|
sed -i \ |
|
-e "s:share/:share/games/:" \ |
|
-e "s:)/bin:)/games/bin:" \ |
|
-e "s:CCO:#CCO:" \ |
|
-e "/^CPPFLAGS/s:+=:+= ${CXXFLAGS}:" \ |
|
configure || die "sed configure failed" |
|
} |
|
|
src_compile() { | src_compile() { |
./configure \ |
local myconf="--prefix /usr --without-fltk2" |
--prefix "${GAMES_PREFIX}" \ |
use static && myconf="${myconf} --enable-static" |
--without-fltk2 || die "configure failed" |
./configure ${myconf} || die "configure failed" |
emake || die "emake failed" | emake || die "emake failed" |
} | } |
| |
src_install() { | src_install() { |
egamesinstall |
make DESTDIR="${D}" install || die "make install failed" |
dodoc AUTHORS Changelog README TODO | dodoc AUTHORS Changelog README TODO |
prepgamesdirs | prepgamesdirs |
} |
} |