summaryrefslogtreecommitdiff
blob: 87ca0ac28218571f770809999792e26897f1b374 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/giblib/giblib-1.2.4.ebuild,v 1.7 2006/01/06 16:15:41 axxo Exp $

inherit toolchain-funcs eutils

DESCRIPTION="Giblib, graphics library"
HOMEPAGE="http://www.linuxbrit.co.uk/giblib/"
SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz"

LICENSE="|| ( as-is BSD )"
SLOT="0"
KEYWORDS="alpha amd64 ~hppa ppc ppc64 sparc x86"
IUSE=""

DEPEND=">=media-libs/imlib2-1.0.3
	|| ( ( x11-libs/libX11 x11-libs/libXext ) virtual/x11 )
	>=media-libs/freetype-2.0"

src_unpack() {
	unpack ${A}
	cd ${S}
	built_with_use media-libs/imlib2 X \
		|| die "You need to re-emerge Imlib2 with USE=X"
	epunt_cxx
}

src_install() {
	make DESTDIR="${D}" install || die
	rm -r "${D}"/usr/doc
	dodoc README AUTHORS ChangeLog TODO
}