foobillard-3.0a.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 autotools toolchain-funcs games
  5. DESCRIPTION="8ball, 9ball, snooker and carambol game"
  6. HOMEPAGE="http://foobillard.sourceforge.net/"
  7. SRC_URI="mirror://gentoo/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc x86 ~x86-fbsd"
  11. IUSE="sdl video_cards_nvidia"
  12. DEPEND="x11-libs/libXaw
  13. x11-libs/libXi
  14. virtual/opengl
  15. virtual/glu
  16. >=media-libs/freetype-2.0.9
  17. media-libs/libpng:0
  18. sdl? ( media-libs/libsdl[video] )
  19. !sdl? ( media-libs/freeglut )"
  20. RDEPEND=${DEPEND}
  21. src_prepare() {
  22. epatch \
  23. "${FILESDIR}"/${P}-no_nvidia.patch \
  24. "${FILESDIR}"/${P}-fbsd.patch \
  25. "${FILESDIR}"/${P}-as-needed.patch \
  26. "${FILESDIR}"/${P}-gl-clamp.patch
  27. mv configure.{in,ac}
  28. rm aclocal.m4
  29. eautoreconf
  30. }
  31. src_configure() {
  32. use video_cards_nvidia && append-ldflags -L/usr/$(get_libdir)/opengl/nvidia/lib
  33. egamesconf \
  34. --enable-sound \
  35. $(use_enable sdl SDL) \
  36. $(use_enable !sdl glut) \
  37. $(use_enable video_cards_nvidia nvidia)
  38. }
  39. src_install() {
  40. default
  41. doman foobillard.6
  42. newicon data/full_symbol.png foobillard.png
  43. make_desktop_entry foobillard Foobillard
  44. prepgamesdirs
  45. }