summaryrefslogtreecommitdiff
blob: 45e52ae80ebe60dfb271010a45832d1bc0c7c423 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/allegttf/allegttf-2.0.ebuild,v 1.12 2006/09/20 16:53:42 blubb Exp $

DESCRIPTION="Anti-aliased text output and font loading routines for Allegro"
HOMEPAGE="http://huizen.dds.nl/~deleveld/allegttf.htm"
SRC_URI="http://huizen.dds.nl/~deleveld/${P}.tar.gz"

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

DEPEND=">=media-libs/allegro-4.0.0"

src_unpack() {
	unpack ${A}

	sed -i \
		-e 's/make/$(MAKE)/' "${S}/Makefile" \
			|| die "sed failed"
}

src_compile() {
	emake || die "emake failed"
	emake examples || die "emake failed (examples)"
}

src_install() {
	cd ${S}/source
	# hardcoded install paths in makefile
	sed -i \
		-e s/'\/usr\/local'/'${D}\/usr'/ makefile.lnx \
			|| die "sed failed"

	cd ${S}
	dodir /usr/include /usr/lib
	make install || die "make install failed"
	dodoc docs/*.txt *.txt || die "dodoc failed"
	dohtml docs/allegttf.htm || die "dohtml failed"
	insinto /usr/share/doc/${PF}/examples
	doins examples/* || die "doins failed"
}