You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-games/openscenegraph-qt/openscenegraph-qt-3.5.5.ebuild

46 lines
927 B

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MY_PN="osgQt"
MY_P=${MY_PN}-${PV}
inherit cmake-utils
DESCRIPTION="Qt support for OpenSceneGraph"
HOMEPAGE="http://www.openscenegraph.org/"
SRC_URI="https://github.com/openscenegraph/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="wxWinLL-3 LGPL-2.1"
SLOT="0/145" # NOTE: CHECK WHEN BUMPING! Subslot is SOVERSION
KEYWORDS="amd64 ~ppc64 x86"
IUSE="debug examples"
RDEPEND="
dev-games/openscenegraph:${SLOT}
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtopengl:5
dev-qt/qtwebkit:5
examples? ( dev-qt/qtwidgets:5 )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${PN}-3.5.5-cmake.patch
)
src_configure() {
local mycmakeargs=(
-DDYNAMIC_OPENSCENEGRAPH=ON
-DDESIRED_QT_VERSION=5
-DBUILD_OSG_EXAMPLES=$(usex examples)
)
cmake-utils_src_configure
}