Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/tiff: ChangeLog tiff-3.8.2-r6.ebuild
Date: Tue, 23 Jun 2009 03:14:18
Message-Id: E1MIwSe-00027S-Bd@stork.gentoo.org
1 nerdboy 09/06/23 03:14:16
2
3 Modified: ChangeLog
4 Added: tiff-3.8.2-r6.ebuild
5 Log:
6 Updated and rev-bumped to add opengl and X-Windows support (bug #274092)
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.117 media-libs/tiff/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/tiff/ChangeLog?rev=1.117&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/tiff/ChangeLog?rev=1.117&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/tiff/ChangeLog?r1=1.116&r2=1.117
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-libs/tiff/ChangeLog,v
19 retrieving revision 1.116
20 retrieving revision 1.117
21 diff -u -r1.116 -r1.117
22 --- ChangeLog 9 May 2009 10:55:54 -0000 1.116
23 +++ ChangeLog 23 Jun 2009 03:14:16 -0000 1.117
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-libs/tiff
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/ChangeLog,v 1.116 2009/05/09 10:55:54 ssuominen Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/ChangeLog,v 1.117 2009/06/23 03:14:16 nerdboy Exp $
29 +
30 +*tiff-3.8.2-r6 (23 Jun 2009)
31 +
32 + 23 Jun 2009; Steve Arnold <nerdboy@g.o>
33 + +files/tiff-3.8.2-opengl.patch, +tiff-3.8.2-r6.ebuild:
34 + Updated and rev-bumped to add opengl and X-Windows support (bug #274092).
35 + Opengl support should be considered somewhat experimental for now...
36
37 09 May 2009; Samuli Suominen <ssuominen@g.o>
38 -files/tiff-buffer.patch:
39
40
41
42 1.1 media-libs/tiff/tiff-3.8.2-r6.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/tiff/tiff-3.8.2-r6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/tiff/tiff-3.8.2-r6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: tiff-3.8.2-r6.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/tiff-3.8.2-r6.ebuild,v 1.1 2009/06/23 03:14:16 nerdboy Exp $
52
53 EAPI="2"
54
55 inherit eutils libtool multilib
56
57 DESCRIPTION="Library for manipulation of TIFF (Tag Image File Format) images"
58 HOMEPAGE="http://www.remotesensing.org/libtiff/"
59 SRC_URI="ftp://ftp.remotesensing.org/pub/libtiff/${P}.tar.gz
60 mirror://gentoo/${P}-pdfsec-patches.tar.bz2"
61
62 LICENSE="as-is"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
65 IUSE="jpeg jbig nocxx opengl zlib"
66
67 DEPEND="jpeg? ( >=media-libs/jpeg-6b )
68 jbig? ( >=media-libs/jbigkit-1.6-r1 )
69 zlib? ( >=sys-libs/zlib-1.1.3-r2 )
70 opengl? ( app-admin/eselect-opengl
71 sys-devel/gcc[objc]
72 x11-proto/xproto
73 x11-proto/xcb-proto
74 x11-proto/xextproto
75 x11-proto/xf86vidmodeproto
76 x11-proto/glproto )"
77
78 RDEPEND="opengl? ( media-libs/mesa
79 x11-libs/libX11
80 x11-libs/libXmu
81 x11-libs/libXt
82 x11-libs/libSM
83 x11-libs/libICE
84 x11-libs/libXi
85 x11-libs/libXxf86vm
86 x11-libs/libXext
87 x11-libs/libxcb
88 x11-libs/libXau
89 x11-libs/libXdmcp )"
90
91 src_prepare() {
92 # unpack ${A}
93 # cd "${S}"
94 epatch "${WORKDIR}"/${P}-tiff2pdf-20080903.patch
95 epatch "${FILESDIR}"/${P}-tiffsplit.patch
96 use jbig && epatch "${FILESDIR}"/${PN}-jbig.patch
97 epatch "${WORKDIR}"/${P}-goo-sec.patch
98 epatch "${FILESDIR}"/${P}-CVE-2008-2327.patch
99 use opengl && epatch "${FILESDIR}"/${P}-opengl.patch
100 elibtoolize
101
102 if use opengl; then
103 sed -i -e "s|-framework GLUT|-lGLU -lGL -lglut -L/usr/$(get_libdir)|g" \
104 configure || die "sed 2 failed"
105 fi
106 }
107
108 src_compile() {
109 if use opengl; then
110 myconf="--with-x --with-apple-opengl-framework"
111 else
112 myconf="--without-x"
113 fi
114
115 econf \
116 $(use_enable !nocxx cxx) \
117 $(use_enable zlib) \
118 $(use_enable jpeg) \
119 $(use_enable jbig) \
120 ${myconf} --with-pic \
121 --with-docdir=/usr/share/doc/${PF} \
122 || die "econf failed"
123 emake || die "emake failed"
124 }
125
126 src_install() {
127 make install DESTDIR="${D}" || die "make install failed"
128 dodoc README TODO VERSION
129 }
130
131 pkg_postinst() {
132 echo
133 elog "JBIG support is intended for Hylafax fax compression, so we"
134 elog "really need more feedback in other areas (most testing has"
135 elog "been done with fax). Be sure to recompile anything linked"
136 elog "against tiff if you rebuild it with jbig support."
137 echo
138 elog "Opengl support also pulls in several X libraries; since it"
139 elog "hasn't been used much recently, it should be considered"
140 elog "somewhat experimental until more testing and feedback."
141 echo
142 }