/[gentoo-x86]/media-libs/tiff/tiff-3.9.5-r3.ebuild
Gentoo

Contents of /media-libs/tiff/tiff-3.9.5-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri May 18 08:53:43 2012 UTC (2 years, 2 months ago) by ssuominen
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable wrt #416055

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/tiff-3.9.5-r3.ebuild,v 1.2 2012/05/18 08:08:11 ago Exp $
4
5 # this ebuild is only for the libtiff.so.3 (+ 4) and libtiffxx.so.3 (+ 4) SONAME for ABI compat
6
7 EAPI=4
8 inherit eutils libtool multilib
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/${P}.tar.gz"
13
14 LICENSE="as-is"
15 SLOT="3"
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 zlib"
18
19 RDEPEND="jpeg? ( virtual/jpeg )
20 jbig? ( media-libs/jbigkit )
21 zlib? ( sys-libs/zlib )
22 !media-libs/tiff-compat
23 !=media-libs/tiff-3*:0"
24 DEPEND="${RDEPEND}"
25
26 src_prepare() {
27 epatch "${FILESDIR}"/${P}-CVE-*.patch
28 elibtoolize
29 }
30
31 src_configure() {
32 econf \
33 --libdir=/libdir \
34 --disable-static \
35 $(use_enable cxx) \
36 $(use_enable zlib) \
37 $(use_enable jpeg) \
38 $(use_enable jbig) \
39 --without-x
40 }
41
42 src_install() {
43 # Let `make install` and libtool handle insecure runpath(s)
44 dodir tmp
45 emake DESTDIR="${D}/tmp" install
46
47 # .so.3 (upstream) is used by sci-chemistry/icm
48 # .so.4 (Debian) is used by net-im/skype
49 exeinto /usr/$(get_libdir)
50 doexe "${ED}"/tmp/libdir/libtiff$(get_libname 3)
51 dosym libtiff$(get_libname 3) /usr/$(get_libdir)/libtiff$(get_libname 4)
52 if use cxx; then
53 doexe "${ED}"/tmp/libdir/libtiffxx$(get_libname 3)
54 dosym libtiffxx$(get_libname 3) /usr/$(get_libdir)/libtiffxx$(get_libname 4)
55 fi
56
57 rm -rf "${ED}"/tmp
58 }

  ViewVC Help
Powered by ViewVC 1.1.20