gracer-0.1.5.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils games
  5. DESCRIPTION="3D motor sports simulator"
  6. HOMEPAGE="http://gracer.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/gracer/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc sparc x86"
  11. IUSE="joystick"
  12. DEPEND="
  13. dev-lang/tcl:0
  14. media-libs/freeglut
  15. media-libs/giflib
  16. media-libs/libpng:0
  17. media-libs/plib
  18. x11-libs/libXi
  19. x11-libs/libXmu
  20. virtual/glu
  21. virtual/opengl
  22. virtual/jpeg:0"
  23. RDEPEND=${DEPEND}
  24. src_prepare() {
  25. epatch \
  26. "${FILESDIR}"/${PV}-gldefs.patch \
  27. "${FILESDIR}"/${PN}-gcc-3.4.patch \
  28. "${FILESDIR}/${P}"-gcc41.patch \
  29. "${FILESDIR}"/${P}-as-needed.patch \
  30. "${FILESDIR}"/${P}-libpng14.patch \
  31. "${FILESDIR}"/${P}-png15.patch \
  32. "${FILESDIR}"/${P}-giflib.patch \
  33. "${FILESDIR}"/${P}-warnings.patch
  34. }
  35. src_configure() {
  36. egamesconf \
  37. --enable-gif \
  38. --enable-jpeg \
  39. --enable-png \
  40. $(use_enable joystick)
  41. sed -i \
  42. -e 's:-lplibsl:-lplibsl -lplibul:' \
  43. $(find -name Makefile) || die
  44. }
  45. src_install() {
  46. default
  47. prepgamesdirs
  48. }