blob: 0d4ec88c67a1c5fb5fc656496e8694c2361c46ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/tiff-3.5.5-r2.ebuild,v 1.1 2001/02/13 14:29:41 achim Exp $
P=${PN}-v${PV}
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="libtiff"
SRC_URI="http://www.libtiff.org/"${A}
HOMEPAGE="http://www.libtiff.org/"
DEPEND=">=media-libs/jpeg-6b >=sys-libs/zlib-1.1.3-r2"
src_unpack() {
unpack ${A}
cd ${S}
cp ${FILESDIR}/config.site-${PV}-r${PR} config.site
echo "DIR_HTML=\"${D}/usr/share/doc/${PF}/html\"" >> config.site
cp configure configure.orig
sed -e "s:if \[ -r /lib/libc.*:if \[ -r /lib/libc\.so\.6 \]\; then:" \
configure.orig > configure
}
src_compile() {
try ./configure --noninteractive
cd libtiff
cp Makefile Makefile.orig
sed -e "s/-O/${CFLAGS}/" Makefile.orig > Makefile
cd ../tools
cp Makefile Makefile.orig
sed -e "s/-O/${CFLAGS}/" Makefile.orig > Makefile
cd ..
try make
}
src_install() {
dodir /usr/{bin,lib,share/man,share/doc/${PF}/html}
dodir /usr/doc/${PF}/html
try make install
gzip ${D}/usr/doc/${PF}/html/*.html
gzip ${D}/usr/doc/${PF}/html/images/*
rm ${D}/usr/lib/libtiff.so.3
mv ${D}/usr/lib/libtiff.so.3.5. ${D}/usr/lib/libtiff.so.3.5.5
preplib /usr
rm -r /tiff.sw.tools
dodoc COPYRIGHT README TODO VERSION
}
|