summaryrefslogtreecommitdiff
blob: de0c3c33d453f23fc0105a006ddd2f1f91597876 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-1.06.ebuild,v 1.2 2002/07/11 06:30:38 drobbins Exp $

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="lcms deals with color management stuff"
SRC_URI="http://www.littlecms.com/${A}"
HOMEPAGE="http://www.littlecms.com/index.htm"

DEPEND="virtual/glibc"

src_compile() {

    try ./configure --prefix=/usr --host=${CHOST}
    try make

}

src_install () {

    try make DESTDIR=${D} install
    cd ${D}/usr/include/lcms
    cp lcms.h lcms.orig
    sed -e "s:#define VERSION.*::" \
        -e "s:#define PACKAGE.*::" \
        lcms.orig > lcms.h
    rm lcms.orig

    cd ${S}/profiles
    dodir /usr/share/lcms/profiles
    cp *.icm ${D}/usr/share/lcms/profiles
    cd ${S}

    dodoc AUTHORS COPYING ChangeLog README*
    docinto txt
    dodoc doc/*.txt

}