Skip to content

Commit

Permalink
games-simulation/flightgear: sync ebuilds with CMake (wrt options, al…
Browse files Browse the repository at this point in the history
…so for simgear)
  • Loading branch information
reavertm committed Feb 6, 2017
1 parent 3442d36 commit 9c51f29
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions dev-games/simgear/simgear-2016.4.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ src_configure() {
-DENABLE_DNS=$(usex dns)
-DENABLE_PKGUTIL=ON
-DENABLE_RTI=OFF
-DENABLE_SIMD=OFF
-DENABLE_SOUND=ON
-DENABLE_TESTS=$(usex test)
-DSIMGEAR_HEADLESS=OFF
Expand Down
1 change: 1 addition & 0 deletions dev-games/simgear/simgear-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ src_configure() {
-DENABLE_DNS=$(usex dns)
-DENABLE_PKGUTIL=ON
-DENABLE_RTI=OFF
-DENABLE_SIMD=OFF
-DENABLE_SOUND=ON
-DENABLE_TESTS=$(usex test)
-DSIMGEAR_HEADLESS=OFF
Expand Down
8 changes: 6 additions & 2 deletions games-simulation/flightgear/flightgear-2016.4.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="dbus debug examples qt5 test +udev +utils vim-syntax"

# zlib is some strange auto-dep from simgear
COMMON_DEPEND="
dev-db/sqlite:3
>=dev-games/openscenegraph-3.2.0[png]
Expand All @@ -38,10 +39,14 @@ COMMON_DEPEND="
virtual/opengl
)
"
# libXi and libXmu are build-only-deps according to FindGLUT.cmake
DEPEND="${COMMON_DEPEND}
>=dev-libs/boost-1.44
>=media-libs/plib-1.8.5
utils? ( x11-libs/libXmu )
utils? (
x11-libs/libXi
x11-libs/libXmu
)
"
RDEPEND="${COMMON_DEPEND}
~games-simulation/${PN}-data-${PV}
Expand Down Expand Up @@ -73,7 +78,6 @@ src_configure() {
-DFG_DATA_DIR=/usr/share/${PN}
-DJSBSIM_TERRAIN=ON
-DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear
-DSIMGEAR_SHARED=ON
-DSP_FDMS=ON
-DSYSTEM_FLITE=ON
-DSYSTEM_HTS_ENGINE=ON
Expand Down
13 changes: 12 additions & 1 deletion games-simulation/flightgear/flightgear-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ SLOT="0"
KEYWORDS=""
IUSE="dbus debug examples qt5 test +udev +utils vim-syntax"

# zlib is some strange auto-dep from simgear
COMMON_DEPEND="
dev-db/sqlite:3
>=dev-games/openscenegraph-3.2.0[png]
Expand All @@ -25,6 +26,7 @@ COMMON_DEPEND="
media-libs/speex
media-sound/gsm
sys-libs/zlib
virtual/glu
x11-libs/libX11
dbus? ( >=sys-apps/dbus-1.6.18-r1 )
qt5? (
Expand All @@ -35,13 +37,20 @@ COMMON_DEPEND="
udev? ( virtual/udev )
utils? (
media-libs/freeglut
media-libs/freetype:2
media-libs/glew:0
media-libs/libpng:0
virtual/opengl
)
"
# libXi and libXmu are build-only-deps according to FindGLUT.cmake
DEPEND="${COMMON_DEPEND}
>=dev-libs/boost-1.44
>=media-libs/plib-1.8.5
utils? (
x11-libs/libXi
x11-libs/libXmu
)
"
RDEPEND="${COMMON_DEPEND}
~games-simulation/${PN}-data-${PV}
Expand All @@ -51,6 +60,7 @@ DOCS=(AUTHORS ChangeLog NEWS README Thanks)

src_configure() {
local mycmakeargs=(
-DENABLE_FGCANVAS=$(usex qt5 && usex utils)
-DENABLE_FGCOM=$(usex utils)
-DENABLE_FGELEV=$(usex utils)
-DENABLE_FGJS=$(usex utils)
Expand All @@ -65,15 +75,16 @@ src_configure() {
-DENABLE_PROFILE=OFF
-DENABLE_QT=$(usex qt5)
-DENABLE_RTI=OFF
-DENABLE_SIMD=OFF # NOTE dead codepath in Gentoo anyway
-DENABLE_TERRASYNC=$(usex utils)
-DENABLE_TESTS=$(usex test)
-DENABLE_TRAFFIC=$(usex utils)
-DENABLE_UIUC_MODEL=ON
-DENABLE_YASIM=ON
-DEVENT_INPUT=$(usex udev)
-DFG_DATA_DIR=/usr/share/${PN}
-DJSBSIM_TERRAIN=ON
-DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear
-DSIMGEAR_SHARED=ON
-DSP_FDMS=ON
-DSYSTEM_FLITE=ON
-DSYSTEM_HTS_ENGINE=ON
Expand Down

0 comments on commit 9c51f29

Please sign in to comment.