summaryrefslogtreecommitdiff
blob: cf7f423370e521efa62f6a832c36b06eda18d4f9 (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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/ofbis/ofbis-0.2.0.ebuild,v 1.3 2008/04/29 15:26:52 armin76 Exp $

inherit eutils toolchain-funcs

DESCRIPTION="a library containing a few simple graphical routines for the Linux framebuffers."
HOMEPAGE="http://osis.nocrew.org/ofbis"
SRC_URI="ftp://ftp.nocrew.org/pub/osis/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 sparc x86"
IUSE=""

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-gcc4.patch
}

src_compile() {
	tc-export CC
	econf
	emake CFLAGS="${CFLAGS}" || die "emake failed."
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed."
	dodoc AUTHORS ChangeLog CREDITS DESIGN NEWS \
		OFBIS-VERSION README TODO
}