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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 4 22:27:20 2010 UTC (10 years, 8 months ago) by flameeyes
Branch: MAIN
Changes since 1.1: +2 -2 lines
Add missing die clause.
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.6-r1.ebuild,v 1.1 2010/01/04 14:15:28 flameeyes Exp $
4
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="media-libs/jpeg
21 media-libs/tiff
22 media-libs/libpng
23 x11-libs/fltk:1.1[opengl]
24 media-libs/openexr
25 virtual/opengl
26 sys-libs/zlib
27 X? (
28 x11-libs/libXext
29 x11-libs/libICE
30 x11-libs/libSM
31 x11-libs/libX11
32 x11-libs/libXau
33 x11-libs/libxcb
34 x11-libs/libXdmcp
35 x11-libs/libXi
36 x11-libs/libXmu
37 x11-libs/libXt
38 )"
39 DEPEND="${RDEPEND}
40 sys-devel/flex
41 sys-devel/bison"
42
43 src_prepare() {
44 # FIX: missing @includedir@
45 # https://sf.net/tracker/?func=detail&aid=2923415&group_id=59462&atid=491094
46 epatch "${FILESDIR}/${P}-autotools.patch"
47 eautoreconf
48
49 # FIX: removing pre-compiled shaders
50 # shaders must be removed before of their compilation or make
51 # parallelism can break the regeneration process, with resulting
52 # missing shaders.
53 rm "${S}"/shaders/*.sdr
54 }
55
56 src_configure() {
57 # NOTE: the option program-transform-name is used to avoid binary name
58 # conflict with package: mail-client/nmh (see #295996)
59 econf \
60 $(use_with X x) \
61 $(use_enable static-libs static) \
62 --includedir=/usr/include/pixie \
63 --libdir=/usr/$(get_libdir)/pixie \
64 --with-docdir=/usr/share/doc/${PF}/html \
65 --with-shaderdir=/usr/share/Pixie/shaders \
66 --with-ribdir=/usr/share/Pixie/ribs \
67 --with-texturedir=/usr/share/Pixie/textures \
68 --with-displaysdir=/usr/$(get_libdir)/pixie/displays \
69 --with-modulesdir=/usr/$(get_libdir)/pixie/modules \
70 --enable-openexr-threads \
71 --mandir=/usr/share/man \
72 --bindir=/usr/bin \
73 --program-transform-name="s/show/pixie-show/"
74 }
75
76 src_compile() {
77 emake || die "emake failed"
78
79 # regenerating Pixie shaders - see upstream bug report:
80 # https://sf.net/tracker/?func=detail&aid=2923407&group_id=59462&atid=491094
81 einfo "Re-building Pixie Shaders for v${PV} format"
82 emake -f "${FILESDIR}/Makefile.shaders" -C "${S}/shaders" || die "shaders rebuild failed"
83 }
84
85 src_install() {
86 emake DESTDIR="${D}" install || die "installation failed."
87
88 insinto /usr/share/Pixie/textures
89 doins "${S}"/textures/*
90
91 # remove useless .la files
92 find "${D}" -name '*.la' -delete || die "removal of libtool archive files failed"
93
94 dodoc README AUTHORS ChangeLog || die
95 }

  ViewVC Help
Powered by ViewVC 1.1.20