/[gentoo-x86]/media-gfx/pixie/pixie-2.2.2.ebuild
Gentoo

Contents of /media-gfx/pixie/pixie-2.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Feb 28 17:55:04 2011 UTC (9 years, 5 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/pixie/pixie-2.2.2.ebuild,v 1.9 2011/02/28 17:51:05 ssuominen Exp $
4
5 EAPI=1
6
7 inherit eutils multilib autotools
8
9 IUSE="fltk openexr X"
10
11 MY_PN="Pixie"
12 S="${WORKDIR}/${MY_PN}"
13
14 DESCRIPTION="RenderMan like photorealistic renderer."
15 HOMEPAGE="http://pixie.sourceforge.net"
16 SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-src-${PV}.tgz"
17
18 LICENSE="GPL-2"
19
20 SLOT="0"
21 KEYWORDS="amd64 ~ppc sparc x86"
22
23 RDEPEND="virtual/jpeg
24 sys-libs/zlib
25 media-libs/tiff
26 openexr? ( media-libs/openexr )
27 fltk? ( x11-libs/fltk:1.1 )
28 X? ( x11-libs/libXext )"
29
30 src_unpack() {
31 unpack ${A}
32
33 cd "${S}"
34
35 # Force make to rebuild the shaders since the packaged ones
36 # are not always compiled with the latest version of sdr
37 epatch "${FILESDIR}/${PN}-2.2.1-genshaders.patch"
38 rm "${S}/shaders/*.sdr"
39
40 eautoreconf
41 }
42
43 src_compile() {
44 ewarn "Compilation of pixie is memory intensive. If you experience problems, try"
45 ewarn "removing -pipe from your CFLAGS. Additionally, disabling optimizations (-O0)"
46 ewarn "will cause much less memory consumption. See bug #171367 for more info."
47
48 econf || die "econf failed"
49 emake -j1 || die "Make failed"
50 }
51
52 src_install() {
53 make DESTDIR="${D}" install || die
54
55 keepdir /usr/$(get_libdir)/Pixie/procedurals
56 keepdir /usr/share/Pixie/models
57
58 insinto /usr/share/Pixie/textures
59 doins "${S}/textures/checkers.tif"
60
61 dodir /usr/share/doc
62 mv "${D}/usr/doc" "${D}/usr/share/doc/${PF}"
63 }

  ViewVC Help
Powered by ViewVC 1.1.20