gracer-0.1.5-r1.ebuild 1008 B

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