gens-2.15.5.ebuild 992 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils flag-o-matic games
  5. DESCRIPTION="A Sega Genesis/CD/32X emulator"
  6. HOMEPAGE="https://sourceforge.net/projects/gens/"
  7. SRC_URI="mirror://sourceforge/gens/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="x86"
  11. IUSE=""
  12. RDEPEND="virtual/opengl
  13. >=media-libs/libsdl-1.2[joystick,video]
  14. x11-libs/gtk+:2"
  15. DEPEND="${RDEPEND}
  16. >=dev-lang/nasm-0.98"
  17. src_prepare() {
  18. epatch \
  19. "${FILESDIR}"/${P}-romsdir.patch \
  20. "${FILESDIR}"/${P}-as-needed.patch \
  21. "${FILESDIR}"/${P}-ovflfix.patch \
  22. "${FILESDIR}"/${P}-gcc34.patch
  23. sed -i -e '1i#define OF(x) x' src/gens/util/file/unzip.h || die
  24. append-ldflags -Wl,-z,noexecstack
  25. }
  26. src_configure() {
  27. egamesconf \
  28. --disable-gtktest \
  29. --disable-sdltest
  30. }
  31. src_install() {
  32. DOCS="AUTHORS BUGS README gens.txt history.txt" \
  33. default
  34. newicon pixmaps/gens_small.png ${PN}.png
  35. make_desktop_entry "${PN}" "Gens"
  36. prepgamesdirs
  37. }