simgear-9999.ebuild 1.1 KB

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