/[gentoo-x86]/media-libs/lcms/lcms-1.19.ebuild
Gentoo

Contents of /media-libs/lcms/lcms-1.19.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Wed Feb 10 20:15:35 2010 UTC (8 years, 7 months ago) by jer
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for HPPA (bug #302647).
(Portage version: 2.2_rc62/cvs/Linux i686)

1 ssuominen 1.2 # Copyright 1999-2010 Gentoo Foundation
2 pva 1.1 # Distributed under the terms of the GNU General Public License v2
3 jer 1.3 # $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild,v 1.2 2010/01/22 17:06:08 ssuominen Exp $
4 pva 1.1
5     EAPI="2"
6    
7     inherit libtool eutils multilib
8    
9     DESCRIPTION="A lightweight, speed optimized color management engine"
10     HOMEPAGE="http://www.littlecms.com/"
11     SRC_URI="http://www.littlecms.com/${P}.tar.gz"
12    
13     LICENSE="MIT"
14     SLOT="0"
15 jer 1.3 KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
16 pva 1.1 IUSE="tiff jpeg zlib python"
17    
18     RDEPEND="tiff? ( media-libs/tiff )
19 ssuominen 1.2 jpeg? ( media-libs/jpeg:0 )
20 pva 1.1 zlib? ( sys-libs/zlib )"
21     DEPEND="${RDEPEND}
22     python? ( >=dev-lang/swig-1.3.31 )"
23    
24     src_prepare() {
25     # run swig to regenerate lcms_wrap.cxx and lcms.py (bug #148728)
26     if use python; then
27     cd "${S}"/python
28     ./swig_lcms || die "swig_lcms failed"
29     fi
30     }
31    
32     src_configure() {
33     econf \
34     --disable-dependency-tracking \
35     $(use_with jpeg) \
36     $(use_with python) \
37     $(use_with tiff) \
38     $(use_with zlib)
39     }
40    
41     src_install() {
42     emake \
43     DESTDIR="${D}" \
44     BINDIR="${D}"/usr/bin \
45     libdir=/usr/$(get_libdir) \
46     install || die "make install failed"
47    
48     insinto /usr/share/lcms/profiles
49     doins testbed/*.icm
50    
51     dodoc AUTHORS README* INSTALL NEWS doc/*
52     }

  ViewVC Help
Powered by ViewVC 1.1.20