# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P=${P/_rc/rc} DESCRIPTION="a small realtime render engine for linux that generates animation from sound" HOMEPAGE="http://www.pawfal.org/Software/${PN}/" SRC_URI="http://www.pawfal.org/Software/${PN}/files/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" #RESTRICT="nostrip" DEPEND="virtual/opengl >=x11-libs/fltk-1.1.4 dev-games/ode dev-util/guile dev-libs/fftw media-libs/portaudio media-libs/libsndfile" #RDEPEND="" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cd ${S} # Collect the headers where compilation can use them mkdir -p includes/fluxus find libfluxus libfluxphysics -name "*.h" -exec ln -s ../../{} includes/fluxus/ \; # Modify Makefile to compile properly sed -ie "s:-Ilibfluxus/src:-Ilibfluxus/src -Iincludes -I/usr/include/fltk-1.1:" Makefile sed -ie "s:-L/usr/X11R6/lib:-L/usr/X11R6/lib -L/usr/lib/fltk-1.1:" Makefile } src_compile() { emake || die "emake failed" } src_install() { dobin fluxus dodoc AUTHORS CHANGES COPYING INSTALL README dohtml docs/dox.html insinto /usr/share/doc/${PF}/examples doins examples/* } pkg_postinst() { einfo einfo "Example scripts are installed in:" einfo " /usr/share/doc/${PF}/examples" einfo }