/[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.5 - (show annotations) (download)
Thu Mar 4 19:51:31 2010 UTC (8 years, 8 months ago) by armin76
Branch: MAIN
Changes since 1.4: +2 -2 lines
alpha/ia64/s390/sh/sparc stable wrt #302647
(Portage version: 2.1.7.17/cvs/Linux ia64)

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-libs/lcms/lcms-1.19.ebuild,v 1.4 2010/02/17 22:54:34 maekke Exp $
4
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 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc ~ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
16 IUSE="tiff jpeg zlib python"
17
18 RDEPEND="tiff? ( media-libs/tiff )
19 jpeg? ( media-libs/jpeg:0 )
20 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