diff options
author | Carsten Lohrke <carlo@gentoo.org> | 2005-07-21 20:45:01 +0000 |
---|---|---|
committer | Carsten Lohrke <carlo@gentoo.org> | 2005-07-21 20:45:01 +0000 |
commit | 3a7c9b3142ab2285282b29727ff0c9f0bc909678 (patch) | |
tree | 617d1ce21becf793c89f4088eafab7ea51ff0389 /media-libs/openexr | |
parent | x86; version bump (diff) | |
download | gentoo-2-3a7c9b3142ab2285282b29727ff0c9f0bc909678.tar.gz gentoo-2-3a7c9b3142ab2285282b29727ff0c9f0bc909678.tar.bz2 gentoo-2-3a7c9b3142ab2285282b29727ff0c9f0bc909678.zip |
optionalise fltk dependency and examples installation
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'media-libs/openexr')
-rw-r--r-- | media-libs/openexr/ChangeLog | 7 | ||||
-rw-r--r-- | media-libs/openexr/Manifest | 8 | ||||
-rw-r--r-- | media-libs/openexr/files/digest-openexr-1.2.2-r1 | 1 | ||||
-rw-r--r-- | media-libs/openexr/openexr-1.2.2-r1.ebuild | 53 |
4 files changed, 65 insertions, 4 deletions
diff --git a/media-libs/openexr/ChangeLog b/media-libs/openexr/ChangeLog index a85694119849..73d4039b2bc6 100644 --- a/media-libs/openexr/ChangeLog +++ b/media-libs/openexr/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-libs/openexr # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/openexr/ChangeLog,v 1.22 2005/07/14 06:44:03 hardave Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/openexr/ChangeLog,v 1.23 2005/07/21 20:45:01 carlo Exp $ + +*openexr-1.2.2-r1 (21 Jul 2005) + + 21 Jul 2005; Carsten Lohrke <carlo@gentoo.org> +openexr-1.2.2-r1.ebuild: + optionalise fltk dependency and examples installation 14 Jul 2005; Hardave Riar <hardave@gentoo.org> openexr-1.2.2.ebuild: Keyworded ~mips diff --git a/media-libs/openexr/Manifest b/media-libs/openexr/Manifest index 5e386a19cadf..6454264ab599 100644 --- a/media-libs/openexr/Manifest +++ b/media-libs/openexr/Manifest @@ -1,7 +1,9 @@ -MD5 197d754b28c302ed5db86a89056015ec ChangeLog 3036 -MD5 7300a7b361fa9f48e37722c6952bd432 metadata.xml 158 -MD5 0bafcd884e6fca0f9074fcbdfbb376f1 openexr-1.0.7.ebuild 1012 MD5 23b94c681753bc3e98d920f8a8dc0943 openexr-1.2.2.ebuild 1009 +MD5 53d4863b3f8396dc7754f5b888294a20 openexr-1.2.2-r1.ebuild 1514 +MD5 0bafcd884e6fca0f9074fcbdfbb376f1 openexr-1.0.7.ebuild 1012 +MD5 e0ad6166f0ddd8a3cbcf93df2b80e4fc ChangeLog 3201 +MD5 7300a7b361fa9f48e37722c6952bd432 metadata.xml 158 +MD5 ae16061f11f8add38c447314c0f8724c files/digest-openexr-1.2.2-r1 66 MD5 21ea9ea0c3fabd1e25cd34b7de57dc62 files/digest-openexr-1.0.7 66 MD5 ae16061f11f8add38c447314c0f8724c files/digest-openexr-1.2.2 66 MD5 dd45e17d712e65d12cb5a8cb704fc11c files/openexr-1.0.7-gentoo.patch 993 diff --git a/media-libs/openexr/files/digest-openexr-1.2.2-r1 b/media-libs/openexr/files/digest-openexr-1.2.2-r1 new file mode 100644 index 000000000000..f1dc406e2c15 --- /dev/null +++ b/media-libs/openexr/files/digest-openexr-1.2.2-r1 @@ -0,0 +1 @@ +MD5 a2e56af78dc47c7294ff188c8f78394b OpenEXR-1.2.2.tar.gz 9324108 diff --git a/media-libs/openexr/openexr-1.2.2-r1.ebuild b/media-libs/openexr/openexr-1.2.2-r1.ebuild new file mode 100644 index 000000000000..ef4badba9320 --- /dev/null +++ b/media-libs/openexr/openexr-1.2.2-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openexr/openexr-1.2.2-r1.ebuild,v 1.1 2005/07/21 20:45:01 carlo Exp $ + +inherit eutils + +MY_P=OpenEXR-${PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="ILM's HDR image file format libraries" +SRC_URI="http://savannah.nongnu.org/download/openexr/${MY_P}.tar.gz" +HOMEPAGE="http://www.openexr.com" + +SLOT="0" +LICENSE="as-is" +KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc examples fltk" + +RDEPEND="virtual/x11 + virtual/opengl + fltk? ( x11-libs/fltk )" +DEPEND="dev-util/pkgconfig + ${RDEPEND}" + +pkg_setup() { + if use fltk && ( ! built_with_use x11-libs/fltk opengl ) ; then + echo + eerror "You need either to rebuild x11-libs/fltk with opengl use flag enabled, or to build" + eerror "OpenEXR without fltk support (exrdisplay, an OpenEXR image viewer won't be built)." + die + fi +} + +src_unpack() { + unpack ${A} + sed -i -e "s:OpenEXR-@OPENEXR_VERSION@:\$\(P\):" ${S}/IlmImfExamples/Makefile.in + sed -i -e "s:NVSDK_CXXFLAGS=\"\":NVSDK_CXXFLAGS=\"-DUNIX\":" ${S}/acinclude.m4 +} + +src_compile() { + local myconf="--disable-fltktest $(use_with fltk fltk-config) $(use_enable examples imfexamples)" + econf ${myconf} || die "configure failed" + emake || die "make failed" +} + +src_install () { + make DESTDIR="${D}" install || die "install failed" + dodoc AUTHORS Changelog README* INSTALL ChangeLog LICENSE NEWS + if use examples && [ "${P}" != "${PF}" ] ; then + mv ${D}/usr/share/doc/${P}/examples ${D}/usr/share/doc/${PF}/examples + fi + use doc && dohtml -r ${S}/doc/* +} |