blob: c95801766bce8892f6b3e4c1e4f004e92a28171e (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-9.12-r3.ebuild,v 1.6 2003/02/14 17:14:39 lostlogic Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
HOMEPAGE="http://netpbm.sourceforge.net/"
DEPEND=">=media-libs/jpeg-6b
>=media-libs/tiff-3.5.5
>=media-libs/libpng-1.2.1"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc "
src_unpack() {
unpack ${A}
cd ${S}
sed <${FILESDIR}/${PV}/Makefile.config >Makefile.config \
-e "s|-O3|${CFLAGS}|"
}
src_compile() {
MAKEOPTS="${MAKEOPTS} -j1"
emake CC="${CC}" CXX="${CXX}"|| die
}
src_install () {
make INSTALL_PREFIX="${D}/usr/" install || die
insinto /usr/include
doins pnm/{pam,pnm}.h ppm/{ppm,pgm,pbm}.h
doins pbmplus.h shhopt/shhopt.h
dodoc COPYRIGHT.PATENT GPL_LICENSE.txt HISTORY \
Netpbm.programming README* netpbm.lsm
}
|