diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-04-29 11:42:39 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-04-29 13:25:41 +0200 |
commit | 5d1e26892212ffbdcae528cd2e38efc4f3230515 (patch) | |
tree | 5cc1ac8f2daeddcf088f680d4fa0ff1fc650f5fb /games-emulation/generator/generator-0.35_p4-r1.ebuild | |
parent | games-emulation/gcube: Drop old (diff) | |
download | gentoo-5d1e26892212ffbdcae528cd2e38efc4f3230515.tar.gz gentoo-5d1e26892212ffbdcae528cd2e38efc4f3230515.tar.bz2 gentoo-5d1e26892212ffbdcae528cd2e38efc4f3230515.zip |
games-emulation/generator: Drop games.eclass, fix compilation (#650574)
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-emulation/generator/generator-0.35_p4-r1.ebuild')
-rw-r--r-- | games-emulation/generator/generator-0.35_p4-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/games-emulation/generator/generator-0.35_p4-r1.ebuild b/games-emulation/generator/generator-0.35_p4-r1.ebuild new file mode 100644 index 000000000000..14ef210d58a8 --- /dev/null +++ b/games-emulation/generator/generator-0.35_p4-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools toolchain-funcs + +MY_P="${PN}-${PV/_p/-cbiere-r}" +DESCRIPTION="Sega Genesis / Mega Drive emulator" +HOMEPAGE="http://www.squish.net/generator/" +SRC_URI="http://www.squish.net/generator/cbiere/generator/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+sdlaudio" + +RDEPEND=" + virtual/jpeg:0 + media-libs/libsdl[joystick,video] + sdlaudio? ( media-libs/libsdl[sound] ) +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + eapply \ + "${FILESDIR}"/${P}-configure.patch \ + "${FILESDIR}"/${P}-underlink.patch \ + "${FILESDIR}"/${P}-inline.patch + + sed -i -e 's/@GTK_CFLAGS@//g' main/Makefile.am || die + eautoreconf +} + +src_configure() { + econf \ + --with-cmz80 \ + --with-sdl \ + --without-tcltk \ + --with-gcc=$(gcc-major-version) \ + $(use_with sdlaudio sdl-audio) +} + +src_compile() { + [[ -f Makefile ]] && emake clean + emake -j1 +} + +src_install() { + dobin main/generator-sdl + dodoc AUTHORS ChangeLog NEWS README TODO docs/* +} |