blob: 65a546a99f7e281e778582afee048e9602bf4d22 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/allegro/allegro-4.0.3.ebuild,v 1.11 2005/01/19 00:43:00 wolf31o2 Exp $
inherit flag-o-matic
DESCRIPTION="cross-platform multimedia library"
HOMEPAGE="http://alleg.sourceforge.net/"
SRC_URI="mirror://sourceforge/alleg/${P}.tar.gz"
LICENSE="Allegro"
SLOT="0"
KEYWORDS="x86 sparc"
IUSE="static mmx sse oss alsa esd arts X fbcon svga tetex doc"
RDEPEND="alsa? ( media-libs/alsa-lib )
esd? ( media-sound/esound )
arts? ( kde-base/arts )
X? ( virtual/x11 )
svga? ( media-libs/svgalib )"
DEPEND="${RDEPEND}
tetex? ( virtual/tetex )"
src_unpack() {
unpack ${A}
# remove the prototype for malloc for gcc34 (bug #58279)
sed -i \
-e '/*malloc/d' \
-e '/TARGET_ARCH=/s:=.*:=:' \
${S}/configure \
|| die 'couldnt remove pentium cpu'
}
src_compile() {
filter-flags -fPIC
econf \
--enable-linux \
--enable-vga \
$(use_enable static) \
$(use_enable static staticprog) \
$(use_enable mmx) \
$(use_enable sse) \
$(use_enable oss ossdigi) \
$(use_enable oss ossmidi) \
$(use_enable alsa alsadigi) \
$(use_enable alsa alsamidi) \
$(use_enable esd esddigi) \
$(use_enable arts artsdigi) \
$(use_with X x) \
$(use_enable X xwin-shm) \
$(use_enable X xwin-vidmode) \
$(use_enable X xwin-dga) \
$(use_enable X xwin-dga2) \
$(use_enable fbcon) \
$(use_enable svga svgalib) \
|| die
sed -i \
-e "/CFLAGS =.*/s:$: ${CFLAGS}:" \
makefile \
|| die "sed makefile failed"
emake -j1 || die # parallel fails
if use tetex ; then
addwrite /var/lib/texmf
addwrite /usr/share/texmf
addwrite /var/cache/fonts
make docs-dvi docs-ps || die
fi
}
src_install() {
addpredict /usr/share/info
make DESTDIR=${D} install install-gzipped-man install-gzipped-info || die
# Different format versions of the Allegro documentation
dodoc AUTHORS CHANGES THANKS readme.txt todo.txt
use tetex && dodoc docs/allegro.{dvi,ps}
use doc && dodoc examples/*
dohtml docs/html/*
docinto txt ; dodoc docs/txt/*.txt
docinto rtf ; dodoc docs/rtf/*.rtf
docinto build ; dodoc docs/build/*.txt
}
|