summaryrefslogtreecommitdiff
blob: a5716c37e2ad9f09b91b8fa06c53b7374a61bb51 (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
# 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-r1.ebuild,v 1.3 2000/10/30 20:08:25 achim Exp $

P=tiff-v3.5.5
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="libtiff"
SRC_URI="http://www.libtiff.org/"${A}
HOMEPAGE="http://www.libtiff.org/"

src_compile() {
    cd ${S}
    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_unpack() {
    unpack ${A}
    cd ${S}
    cp ${O}/files/config.site .
    echo "DIR_HTML=\"${D}/usr/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_install() {
               
	cd ${S}
	into /usr
	dodir /usr/bin
	dodir /usr/lib
	dodir /usr/man
	dodir /usr/doc
	dodoc COPYRIGHT README TODO VERSION
	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
}