/[gentoo-x86]/media-libs/openexr/openexr-1.7.0.ebuild
Gentoo

Contents of /media-libs/openexr/openexr-1.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed May 9 17:00:17 2012 UTC (2 years, 4 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
keyword ~amd64-fbsd

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/openexr/openexr-1.7.0.ebuild,v 1.9 2012/05/05 08:02:36 jdhore Exp $
4
5 EAPI=2
6 inherit eutils libtool
7
8 DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries"
9 HOMEPAGE="http://openexr.com/"
10 SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="alpha amd64 -arm hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
15 IUSE="examples static-libs"
16
17 RDEPEND="sys-libs/zlib
18 >=media-libs/ilmbase-1.0.2"
19 DEPEND="${RDEPEND}
20 virtual/pkgconfig"
21
22 src_prepare() {
23 sed -i \
24 -e "s:/var/tmp/:${T}:" \
25 IlmImfTest/tmpDir.h || die # Fix path for testsuite
26
27 epatch "${FILESDIR}"/${P}-gcc43.patch
28
29 elibtoolize
30 }
31
32 src_configure() {
33 econf \
34 --disable-dependency-tracking \
35 $(use_enable static-libs static) \
36 $(use_enable examples imfexamples)
37 }
38
39 src_install() {
40 emake \
41 DESTDIR="${D}" \
42 docdir="/usr/share/doc/${PF}/pdf" \
43 examplesdir="/usr/share/doc/${PF}/examples" \
44 install || die
45
46 dodoc AUTHORS ChangeLog NEWS README
47
48 if use examples; then
49 dobin IlmImfExamples/imfexamples || die
50 else
51 rm -rf "${D}"/usr/share/doc/${PF}/examples
52 fi
53
54 find "${D}" -name '*.la' -delete
55 }

  ViewVC Help
Powered by ViewVC 1.1.20