diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 16:28:07 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 16:28:07 +0000 |
commit | 4449c749e4d0a531f4dffcd6bd11772e59ecbf81 (patch) | |
tree | 47ac23a46562d1736503b9b2447f81b34199c04e /games-emulation/generator/generator-0.35.ebuild | |
parent | New package - rename. (diff) | |
download | historical-4449c749e4d0a531f4dffcd6bd11772e59ecbf81.tar.gz historical-4449c749e4d0a531f4dffcd6bd11772e59ecbf81.tar.bz2 historical-4449c749e4d0a531f4dffcd6bd11772e59ecbf81.zip |
welcome to games-emulation
Diffstat (limited to 'games-emulation/generator/generator-0.35.ebuild')
-rw-r--r-- | games-emulation/generator/generator-0.35.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/games-emulation/generator/generator-0.35.ebuild b/games-emulation/generator/generator-0.35.ebuild new file mode 100644 index 000000000000..5fcb2b236953 --- /dev/null +++ b/games-emulation/generator/generator-0.35.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/generator/generator-0.35.ebuild,v 1.1 2003/09/09 16:26:50 vapier Exp $ + +inherit games gcc + +DESCRIPTION="Sega Genesis / Mega Drive console emulator" +HOMEPAGE="http://www.squish.net/generator/" +SRC_URI="http://www.squish.net/generator/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="svga tcltk gtk" #allegro fails to compile + +DEPEND="gtk? ( =x11-libs/gtk+-1* media-libs/libsdl ) + svga? ( media-libs/svgalib ) + jpeg? ( media-libs/jpeg ) + x86? ( dev-lang/nasm )" +# allegro? ( media-libs/allegro ) +# tcltk? ( dev-lang/tk dev-lang/tcl ) #deprecated upstream + +src_compile() { + mkdir my-bins + + local myconf="--with-gcc=`gcc-major-version`" + [ "${ARCH}" == "x86" ] \ + && myconf="${myconf} --with-raze" \ + || myconf="${myconf} --with-cmz80" + + local mygui + for mygui in `use gtk` `use svga` ; do #`use allegro` `use tcltk` + [ "${mygui}" == "svga" ] && mygui=svgalib + make clean + egamesconf ${myconf} --with-${mygui} || die + make || die "building ${mygui}" + mv main/generator-${mygui} my-bins/ + done + if [ -z "`use gtk``use allegro``use svga``use tcltk`" ] ; then + egamesconf ${myconf} --with-gtk || die + make || die "building ${mygui}" + mv main/generator-gtk my-bins/ + fi +} + +src_install() { + #make install DESTDIR=${D} || die #all it does is install the binary ;) + dogamesbin my-bins/* + dodoc AUTHORS ChangeLog NEWS README TODO + prepgamesdirs +} |