# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games MY_P="${P}-src" DESCRIPTION="Raid'em is a top-down shoot'em up" HOMEPAGE="http://home.exetel.com.au/tjaden/raidem/" SRC_URI="http://home.exetel.com.au/tjaden/raidem/${MY_P}.zip" LICENSE="As-is" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="id3 mp3 no-fblend no-video-bitmaps ogg" RDEPEND=">=media-libs/allegro-4.0.0 media-libs/libpng >=sys-libs/zlib-1.1.4 >=media-libs/freetype-2.1.10 dev-libs/zziplib media-libs/adime id3? ( media-libs/libid3tag ) mp3? ( media-libs/allegromp3 ) ogg? ( media-libs/allegroogg )" DEPEND="${RDEPEND} app-arch/unzip" S="${WORKDIR}/${MY_P}" pkg_setup() { if ! built_with_use sys-devel/gcc objc ; then die "GCC needs Objective-C support" fi } src_compile() { if use amd64 || use no-fblend ; then use_fblend=--disable-fblend else use_fblend=--enable-fblend fi if use no-video-bitmaps; then use_video_bitmaps=--disable-video-bitmaps else use_video_bitmaps=--enable-video-bitmaps fi econf \ bindir=${GAMES_BINDIR} \ datadir=${GAMES_DATADIR}/${PN} \ $(use_enable id3) \ $(use_enable mp3) \ $(use_enable ogg) \ ${use_fblend} \ $(use_video_bitmaps) \ || die "econf failed" emake || die "emake failed" } src_install() { emake install DESTDIR=${D} || die "make install failed" }