/[gentoo-x86]/media-libs/tiff/tiff-4.0.0_beta6.ebuild
Gentoo

Contents of /media-libs/tiff/tiff-4.0.0_beta6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Nov 5 21:01:24 2010 UTC (3 years, 5 months ago) by ssuominen
Branch: MAIN
Changes since 1.5: +3 -1 lines
Remove libtool archives (.la)

(Portage version: 2.2.0_alpha3/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/tiff/tiff-4.0.0_beta6.ebuild,v 1.5 2010/09/18 23:32:11 nerdboy Exp $
4
5 EAPI=3
6 inherit eutils libtool
7
8 MY_P=${P/_}
9
10 DESCRIPTION="Library for manipulation of TIFF (Tag Image File Format) images"
11 HOMEPAGE="http://www.remotesensing.org/libtiff/"
12 SRC_URI="ftp://ftp.remotesensing.org/pub/libtiff/${MY_P}.tar.gz"
13
14 LICENSE="as-is"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
17 IUSE="+cxx jbig jpeg static-libs zlib"
18
19 DEPEND="jpeg? ( virtual/jpeg )
20 jbig? ( media-libs/jbigkit )
21 zlib? ( sys-libs/zlib )"
22
23 S=${WORKDIR}/${MY_P}
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${PN}-3.9.2-CVE-2009-2347.patch
27 epatch "${FILESDIR}"/${P}-cr2-bitspersample.patch
28 elibtoolize
29 }
30
31 src_configure() {
32 econf \
33 --disable-dependency-tracking \
34 $(use_enable static-libs static) \
35 $(use_enable cxx) \
36 $(use_enable zlib) \
37 $(use_enable jpeg) \
38 $(use_enable jbig) \
39 --without-x \
40 --with-docdir="${EPREFIX}"/usr/share/doc/${PF}
41 }
42
43 src_install() {
44 emake DESTDIR="${D}" install || die
45 dodoc ChangeLog README TODO
46
47 use static-libs || find "${ED}" -name '*.la' -exec rm -f '{}' +
48 }
49
50 pkg_postinst() {
51 if use jbig; then
52 echo
53 elog "JBIG support is intended for Hylafax fax compression, so we"
54 elog "really need more feedback in other areas (most testing has"
55 elog "been done with fax). Be sure to recompile anything linked"
56 elog "against tiff if you rebuild it with jbig support."
57 echo
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20