/[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.9 - (show annotations) (download)
Tue Sep 28 16:19:42 2010 UTC (7 years, 9 months ago) by ssuominen
Branch: MAIN
Changes since 1.8: +10 -8 lines
USE="static-libs" and punt .la files.

(Portage version: 2.2_rc87/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-libs/lcms/lcms-1.19.ebuild,v 1.8 2010/07/23 20:40:22 ssuominen Exp $
4
5 EAPI=2
6 inherit libtool multilib
7
8 DESCRIPTION="A lightweight, speed optimized color management engine"
9 HOMEPAGE="http://www.littlecms.com/"
10 SRC_URI="http://www.littlecms.com/${P}.tar.gz"
11
12 LICENSE="MIT"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
15 IUSE="jpeg python static-libs tiff zlib"
16
17 RDEPEND="tiff? ( media-libs/tiff )
18 jpeg? ( virtual/jpeg )
19 zlib? ( sys-libs/zlib )"
20 DEPEND="${RDEPEND}
21 python? ( >=dev-lang/swig-1.3.31 )"
22
23 src_prepare() {
24 # run swig to regenerate lcms_wrap.cxx and lcms.py (bug #148728)
25 if use python; then
26 cd python
27 ./swig_lcms || die
28 fi
29 }
30
31 src_configure() {
32 econf \
33 --disable-dependency-tracking \
34 $(use_enable static-libs static) \
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
47
48 insinto /usr/share/lcms/profiles
49 doins testbed/*.icm
50
51 dodoc AUTHORS README* INSTALL NEWS doc/*
52
53 find "${D}" -name '*.la' -exec rm -f '{}' +
54 }

  ViewVC Help
Powered by ViewVC 1.1.20