|
|
inherit games | inherit games |
|
|
KEYWORDS="amd64 ppc ~sparc x86" | KEYWORDS="amd64 ppc ~sparc x86" |
LICENSE="GPL-2" | LICENSE="GPL-2" |
SLOT="0" | SLOT="0" |
IUSE="alsa hardened opengl" |
IUSE="alsa debug hardened opengl sdl png" |
DEPEND="sys-libs/zlib |
DEPEND="alsa? ( media-libs/alsa-lib ) |
alsa? ( media-libs/alsa-lib ) |
|
opengl? ( virtual/opengl ) | opengl? ( virtual/opengl ) |
media-libs/libpng |
png? ( media-libs/libpng ) |
|
debug? ( sys-libs/ncurses ) |
>=media-libs/libsdl-1.2.0 | >=media-libs/libsdl-1.2.0 |
media-libs/sdl-net |
sdl? ( media-libs/sdl-net |
media-libs/sdl-sound" |
media-libs/sdl-sound )" |
src_compile() { | src_compile() { |
local myconf= | local myconf= |
|
|
if use hardened ; then | if use hardened ; then |
myconf="${myconf} --disable-dynamic-x86" | myconf="${myconf} --disable-dynamic-x86" |
fi | fi |
|
if use debug ; then |
|
myconf="${myconf} --enable-debug" |
|
fi |
egamesconf \ | egamesconf \ |
--disable-dependency-tracking \ | --disable-dependency-tracking \ |
${myconf} \ | ${myconf} \ |