# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 EGIT_REPO_URI="git://github.com/mosra/magnum-examples.git" PYTHON_COMPAT=( python2_7 ) inherit python-r1 eutils cmake-utils games DESCRIPTION="A modern gaming engine for Doom, Heretic, and Hexen" HOMEPAGE="http://www.dengine.net" SRC_URI="https://downloads.sourceforge.net/project/deng/Doomsday%20Engine/2.0.3/doomsday-2.0.3.tar.gz" LICENSE="GPL-3+ LGPL-3+" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="dedicated fluidsynth openal +doom demo freedoom heretic hexen resources tools" REQUIRED_USE="${PYTHON_REQUIRED_USE} demo? ( doom ) freedoom? ( doom ) resources? ( doom )" RDEPEND=" dev-qt/qtnetwork:5 dev-qt/qtopengl:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 dev-qt/qtgui:5[-gles2] dev-qt/qtcore:5 net-misc/curl sys-libs/zlib media-libs/assimp !dedicated? ( media-libs/libsdl2[joystick,sound] media-libs/sdl2-mixer media-libs/libpng:0 virtual/opengl virtual/glu x11-libs/libX11 x11-libs/libXrandr x11-libs/libXxf86vm ) fluidsynth? ( media-sound/fluidsynth ) openal? ( media-libs/openal ) tools? ( sys-libs/ncurses:0 )" DEPEND="${RDEPEND}" DEPEND="${DEPEND} ${PYTHON_DEPS} virtual/pkgconfig" PDEPEND=" !dedicated? ( demo? ( games-fps/doom-data ) freedoom? ( games-fps/freedoom ) resources? ( games-fps/doomsday-resources ) )" src_configure() { # general configuration local mycmakeargs=( -DQMAKE=/usr/lib64/qt5/bin/qmake ) BUILD_DIR="${WORKDIR}/build" CMAKE_USE_DIR="${WORKDIR}/doomsday-2.0.3/doomsday" cmake-utils_src_configure }