summaryrefslogtreecommitdiff
blob: fa218e4735248a4798fba4e4a67c57f2cafd97f5 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/libgd-2.0.11.ebuild,v 1.2 2003/02/23 14:58:34 dragon Exp $

inherit eutils libtool

MY_P=${P/lib/}
S=${WORKDIR}/${MY_P}
DESCRIPTION="A graphics library for fast image creation"
SRC_URI="http://www.boutell.com/gd/http/${MY_P}.tar.gz"
HOMEPAGE="http://www.boutell.com/gd/"

SLOT="0"
LICENSE="as-is | BSD"
KEYWORDS="~x86 ~ppc ~sparc ~mips"
IUSE="X gif pic"

DEPEND=">=media-libs/jpeg-6b
	>=media-libs/libpng-1.2.5
	>=media-libs/freetype-2.1.2
	X? ( virtual/x11 )"

src_unpack() {

	unpack ${A}
	cd ${S}

	elibtoolize

	if [ -n "`use gif`" ]
	then
		epatch ${FILESDIR}/${MY_P}-gif-support.patch.bz2
	fi

}

src_compile() {

	econf \
		--with-gnu-ld \
		`use_with pic` \
		`use_with X x` \
		|| die
	emake || die

}

src_install() {

	emake DESTDIR=${D} install || die
	dodoc COPYING INSTALL README*
	dohtml -r ./

}