# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 WX_GTK_VER="3.0" inherit eutils flag-o-matic multilib java-pkg-opt-2 autotools wxwidgets versionator multiprocessing MY_P=${PN}-src-${PV} PATH_P=${PN}-$(get_version_component_range 1-2) DESCRIPTION="Portable 3D Game Development Kit written in C++" HOMEPAGE="http://crystal.sourceforge.net/" SRC_URI="mirror://sourceforge/crystal/${MY_P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="amd64 x86" IUSE="3ds alsa bullet cal3d cegui cg doc java jpeg mng ode png speex truetype vorbis wxwidgets" COMMON_DEP="virtual/opengl media-libs/openal x11-libs/libXt x11-libs/libXxf86vm sys-libs/zlib cg? ( media-gfx/nvidia-cg-toolkit ) ode? ( =media-libs/cal3d-0.11 ) jpeg? ( virtual/jpeg:0 ) bullet? ( sci-physics/bullet ) vorbis? ( media-libs/libvorbis ) speex? ( media-libs/libogg media-libs/speex ) truetype? ( >=media-libs/freetype-2.1 ) alsa? ( media-libs/alsa-lib ) mng? ( media-libs/libmng ) png? ( media-libs/libpng:0 ) wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) cegui? ( >=dev-games/cegui-0.5.0 ) 3ds? ( media-libs/lib3ds )" RDEPEND="${COMMON_DEP} java? ( >=virtual/jre-1.5 )" DEPEND="${COMMON_DEP} java? ( >=virtual/jdk-1.5 dev-java/ant-core ) dev-util/ftjam 90crystalspace echo "CRYSTAL_CONFIG=/etc/${PATH_P}" >> 90crystalspace doenvd 90crystalspace } pkg_postinst() { elog "Examples coming with this package, need correct light calculation" elog "Do the following commands, with the root account, to fix that:" # Fill cache directory for the examples local dir for dir in castle flarge isomap parallaxtest partsys r3dtest stenciltest \ terrain terrainf; do elog "cslight -video=null /usr/share/${PATH_P}/data/maps/${dir}" done }