blob: 2e9bcefd1ab749dda4b1eb99cb13efdddf922137 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-1.09.ebuild,v 1.11 2003/03/11 10:28:14 gmsoft Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A lightweight, speed optimized color management engine"
SRC_URI="http://www.littlecms.com/${P}.tar.gz"
HOMEPAGE="http://www.littlecms.com/"
DEPEND="media-libs/tiff
media-libs/jpeg
sys-libs/zlib"
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="x86 ppc sparc alpha hppa"
src_compile() {
mv ${S}/src/makefile ${S}/src/makefile.orig
sed -e 's/-Wall/-Wall -fPIC/' ${S}/src/makefile.orig > ${S}/src/makefile
make || die
}
src_install () {
make \
DESTDIR=${D} \
BINDIR=${D}/usr/bin \
install || die
( use tiff && use jpeg ) && ( \
make \
DESTDIR=${D} \
utils || die
)
cd ${D}/usr/include
cp lcms.h lcms.orig
sed -e "s:#define VERSION.*::" \
-e "s:#define PACKAGE.*::" \
lcms.orig > lcms.h
rm lcms.orig
dodir /usr/include/lcms
mv ${D}/usr/include/*.h ${D}/usr/include/lcms
cd ${S}/testbed
dodir /usr/share/lcms/profiles
cp *.icm ${D}/usr/share/lcms/profiles
cd ${S}
dodoc AUTHORS COPYING ChangeLog README* INSTALL NEWS README
docinto txt
dodoc doc/*
}
|