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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Jan 4 14:15:28 2010 UTC (10 years, 7 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fix further problems with the pixie ebuild, thanks to Mauro Toffanin in bug #299593.
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 flameeyes 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 flameeyes 1.2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/pixie/pixie-2.2.6.ebuild,v 1.1 2009/12/28 20:58:08 flameeyes Exp $
4 flameeyes 1.1
5     EAPI="2"
6     inherit eutils multilib autotools
7    
8     MY_PN="Pixie"
9     S="${WORKDIR}/${MY_PN}"
10    
11     DESCRIPTION="RenderMan like photorealistic renderer."
12     HOMEPAGE="http://pixie.sourceforge.net"
13     SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-src-${PV}.tgz"
14    
15     LICENSE="GPL-2"
16     IUSE="X static-libs"
17     SLOT="0"
18     KEYWORDS="~amd64 ~ppc ~sparc ~x86"
19    
20     RDEPEND="!mail-client/nmh
21     media-libs/jpeg
22     media-libs/tiff
23     media-libs/libpng
24     x11-libs/fltk:1.1[opengl]
25     media-libs/openexr
26     virtual/opengl
27     sys-libs/zlib
28     X? (
29     x11-libs/libXext
30     x11-libs/libICE
31     x11-libs/libSM
32     x11-libs/libX11
33     x11-libs/libXau
34     x11-libs/libxcb
35     x11-libs/libXdmcp
36     x11-libs/libXi
37     x11-libs/libXmu
38     x11-libs/libXt
39     )"
40     DEPEND="${RDEPEND}
41     sys-devel/flex
42     sys-devel/bison"
43    
44     src_prepare() {
45     # FIX: missing @includedir@
46     epatch "${FILESDIR}/${P}-autotools.patch"
47     eautoreconf
48     }
49    
50     src_configure() {
51     econf \
52     $(use_with X x) \
53     $(use_enable static-libs static) \
54     --includedir=/usr/include/pixie \
55     --libdir=/usr/$(get_libdir)/pixie \
56     --with-docdir=/usr/share/doc/${PF}/html \
57     --with-shaderdir=/usr/share/Pixie/shaders \
58     --with-ribdir=/usr/share/Pixie/ribs \
59     --with-texturedir=/usr/share/Pixie/textures \
60     --with-displaysdir=/usr/$(get_libdir)/pixie/displays \
61     --with-modulesdir=/usr/$(get_libdir)/pixie/modules \
62     --enable-openexr-threads \
63     --mandir=/usr/share/man \
64     --bindir=/usr/bin
65     }
66    
67     src_compile() {
68     emake || die "emake failed"
69    
70     # regenerating Pixie shaders
71     einfo "Re-building Pixie Shaders for v${PV} format"
72     emake -f "${FILESDIR}/Makefile.shaders" -C "${S}/shaders"
73     }
74    
75     src_install() {
76     emake DESTDIR="${D}" install || die "installation failed."
77    
78     # remove useless .la files
79     find "${D}" -name '*.la' -delete || die
80    
81     dodoc README AUTHORS ChangeLog || die
82     }

  ViewVC Help
Powered by ViewVC 1.1.20