openglad-0.98.ebuild 932 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils games
  5. DESCRIPTION="An SDL clone of Gladiator, a classic RPG game"
  6. HOMEPAGE="http://snowstorm.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/snowstorm/${P}.tar.gz
  8. mirror://gentoo/${PN}.png"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 ~ppc x86"
  12. IUSE=""
  13. DEPEND="media-libs/sdl-mixer
  14. media-libs/sdl-image
  15. media-libs/libsdl[joystick,sound,video]"
  16. RDEPEND=${DEPEND}
  17. src_prepare() {
  18. epatch \
  19. "${FILESDIR}"/${PV}-gladpack.c.patch \
  20. "${FILESDIR}"/${P}-gcc43.patch \
  21. "${FILESDIR}"/${P}-ovfl.patch
  22. }
  23. src_configure() {
  24. egamesconf \
  25. --prefix=/usr \
  26. --bindir="${GAMES_BINDIR}" \
  27. --datadir="${GAMES_DATADIR}/${PN}"
  28. }
  29. src_install() {
  30. emake install \
  31. DESTDIR="${D}" \
  32. docdir="${D}"/usr/share/doc/${PF}
  33. doicon "${DISTDIR}"/${PN}.png
  34. make_desktop_entry openglad OpenGladiator
  35. prepgamesdirs
  36. }