# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/cel-ps-1.1-r2637.ebuild,v 1.3 2007/02/23 22:14:56 loux.thefuture Exp $ DESCRIPTION="Portable 3D Game Development Kit written in C++" HOMEPAGE="http://crystal.sourceforge.net/" SRC_URI="http://loux.thefuture.free.fr/distfiles/${PF}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="3ds alsa cegui mng ode sdl vorbis static" RDEPEND="virtual/opengl virtual/glu cegui? ( dev-games/cegui ) ode? ( dev-games/ode ) sdl? ( media-libs/libsdl ) vorbis? ( media-libs/libogg media-libs/libvorbis ) alsa? ( media-libs/alsa-lib ) mng? ( media-libs/libmng ) media-libs/jpeg =media-libs/cal3d-0.11* media-libs/libpng >=media-libs/freetype-2.1 media-gfx/nvidia-cg-toolkit x11-libs/libXaw x11-libs/libXxf86vm" DEPEND="${RDEPEND} 3ds? ( media-libs/lib3ds ) dev-util/jam dev-lang/swig" S="${WORKDIR}/cel" DEST="/opt/planeshift/cel" src_compile() { econf --prefix=${D}/${DEST} \ --datadir=${D}/${DEST}/share \ --sysconfdir=${D}/${DEST}/etc \ --infodir=${D}/${DEST}/share/info \ --mandir=${D}/${DEST}/share/man \ --enable-cpu-specific-optimizations=no \ --without-lcms \ --with-cs-prefix=/opt/planeshift/crystalspace \ --enable-separate-debug-info=no \ --without-perl \ --without-python \ --without-java \ --with-png \ --with-freetype2 \ --with-cal3d \ --with-cg \ --with-jpeg \ $(use_with mng) \ $(use_with vorbis) \ $(use_with 3ds) \ $(use_with ode) \ $(use_with sdl) \ $(use_with cegui CEGUI) \ $(use_with alsa asound) #remove unwanted CFLAGS added by ./configure sed -i -e '/COMPILER\.CFLAGS\.optimize/d' \ Jamconfig jam ${MAKEOPTS} || die "compile failed" if use static ; then jam staticplugins || die "compile staticplugins failed" fi } src_install() { jam install || die "make install failed" if use amd64 ; then dosym /opt/planeshift/cel/lib64 /opt/planeshift/cel/lib fi if use static ; then sed -i -e 's!Depends install_staticplugins : install_libs ;!!' \ mk/jam/static.jam jam install_staticplugins || die "jam install staticplugins failed" dosym libcel_staticplugins-1.1.a /opt/planeshift/cel/lib/libcel_staticplugins.a dosym libceltool-1.1.a /opt/planeshift/cel/lib/libceltool.a fi # Fill cache directory for the examples #for dir in castle flarge isomap parallaxtest partsys r3dtest stenciltest \ # terrain terrainf; #do # cslight -video=null ${D}/${DEST}//usr/share/${PN}/data/maps/$dir; #done #dodoc README }