simgear-2017.1.2.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils cmake-utils
  5. DESCRIPTION="Development library for simulation games"
  6. HOMEPAGE="http://www.simgear.org/"
  7. SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2"
  8. LICENSE="GPL-2"
  9. KEYWORDS="~amd64 ~ppc ~x86"
  10. SLOT="0"
  11. IUSE="+dns debug subversion test"
  12. COMMON_DEPEND="
  13. dev-libs/expat
  14. >=dev-games/openscenegraph-3.2.0
  15. media-libs/openal
  16. net-misc/curl
  17. sys-libs/zlib
  18. virtual/opengl
  19. dns? ( net-libs/udns )
  20. "
  21. DEPEND="${COMMON_DEPEND}
  22. >=dev-libs/boost-1.44
  23. "
  24. RDEPEND="${COMMON_DEPEND}
  25. subversion? ( dev-vcs/subversion )
  26. "
  27. DOCS=(AUTHORS ChangeLog NEWS README Thanks)
  28. src_configure() {
  29. local mycmakeargs=(
  30. -DENABLE_DNS=$(usex dns)
  31. -DENABLE_PKGUTIL=ON
  32. -DENABLE_RTI=OFF
  33. -DENABLE_SIMD=ON
  34. -DENABLE_SOUND=ON
  35. -DENABLE_TESTS=$(usex test)
  36. -DSIMGEAR_HEADLESS=OFF
  37. -DSIMGEAR_SHARED=ON
  38. -DSYSTEM_EXPAT=ON
  39. -DSYSTEM_UDNS=ON
  40. -DUSE_AEONWAVE=OFF
  41. -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it
  42. )
  43. cmake-utils_src_configure
  44. }