# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="This is the crystal space 3d graphics library" HOMEPAGE="http://crystal.sourceforge.net" SRC_URI="http://dl.sourceforge.net/sourceforge/crystal/cs94_002.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="x86" DEPEND=">=sys-libs/zlib-1.1.4 >=media-libs/libpng-1.2.4 >=media-libs/jpeg-6b-r2 >=x11-base/xfree-4.2.0-r12 >=media-libs/svgalib-1.4.3-r1 >=dev-libs/lib3ds-1.2.0" #RDEPEND="" export CFLAGS_GENTOO=${CFLAGS} export DESTDIR=${D} export P S="${WORKDIR}/CS" src_unpack() { unpack ${A} patch -p1 < ${FILESDIR}/crystalspace-0.94.002-gentoo.diff } src_compile() { make unknown || die make linux || die make all || die } src_install () { make install || die cd ${D}/usr/${PN}/bin sed -e '/CRYSTAL=/cCRYSTAL=${CRYSTAL:-/usr/crystalspace}' cs-config > tmp~ mv tmp~ cs-config chmod 0755 cs-config insinto /usr/crystalspace/data/config doins ${S}/data/config/glnvgf.cfg cd ${D}/usr/${PN} rm -f install.log uninst cd ${S}/apps cp -r tutorial ${D}/usr/share/doc/${P} dosym /usr/share/doc/${P}/tutorial /usr/${PN}/tutorial dosym /usr/share/doc/${P} /usr/${PN}/docs find ${D}/usr/share/doc/${P}/tutorial -type d -name CVS -exec rm -rf '{}' ';' dodir /etc/env.d echo "CRYSTAL=/usr/crystalspace" > ${D}/etc/env.d/15crystalspace }