flobopuyo-0.20-r1.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit toolchain-funcs eutils games
  5. DESCRIPTION="Clone of the famous PuyoPuyo game"
  6. HOMEPAGE="http://www.ios-software.com/?page=projet&quoi=29"
  7. SRC_URI="http://www.ios-software.com/flobopuyo/${P}.tgz
  8. mirror://gentoo/${PN}.png"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 ppc x86 ~x86-fbsd"
  12. IUSE="opengl"
  13. DEPEND="media-libs/libsdl
  14. media-libs/sdl-image[jpeg,png]
  15. media-libs/sdl-mixer[mod]
  16. opengl? ( virtual/opengl )"
  17. RDEPEND="${DEPEND}"
  18. src_prepare() {
  19. epatch \
  20. "${FILESDIR}"/${P}-gcc4.patch \
  21. "${FILESDIR}"/${P}-gcc41.patch \
  22. "${FILESDIR}"/${P}-libs.patch
  23. find . -type f -name ".*" -exec rm -f \{\} \;
  24. sed -i \
  25. -e "s:^DATADIR=.*:DATADIR=\"${GAMES_DATADIR}/${PN}\":" \
  26. -e "/^INSTALL_BINDIR/s:/\$(PREFIX)/games:${GAMES_BINDIR}:" \
  27. Makefile \
  28. || die
  29. }
  30. src_compile() {
  31. emake CXX="$(tc-getCXX)" \
  32. ENABLE_OPENGL="$(use opengl && echo true || echo false)"
  33. }
  34. src_install() {
  35. default
  36. doman man/flobopuyo.6
  37. doicon "${DISTDIR}/${PN}.png"
  38. make_desktop_entry flobopuyo FloboPuyo
  39. prepgamesdirs
  40. }