# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator cmake-utils EAPI="3" MY_PN="MyGUI" DESCRIPTION="a library for creating Graphical User Interfaces (GUIs) for games" HOMEPAGE="http://mygui.info/" SRC_URI="mirror://sourceforge/my-gui/${MY_PN}/${MY_PN}_${PV}/${MY_PN}_${PV}_source.zip" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="+freetype ogre" DEPEND="freetype? ( media-libs/freetype:2 ) ogre? ( dev-games/ogre )" CMAKE_BUILD_TYPE="Release" S="${WORKDIR}"/${MY_PN}$(get_version_component_range 1-2) src_configure() { local myconf if use ogre; then myconf="-D MYGUI_RENDERSYSTEM=2" else myconf="-D MYGUI_RENDERSYSTEM=3" fi mycmakeargs=( $(cmake-utils_use_enable freetype FREETYPE) ${myconf} -DMYGUI_INSTALL_TOOLS=TRUE -DMYGUI_BUILD_SAMPLES=FALSE -DMYGUI_BUILD_TESTS=FALSE ) cmake-utils_src_configure }