Line
Link Here
|
0 |
-- clanlib-0.8.1.ebuild |
0 |
++ clanlib-2.3.4.ebuild |
Lines 2-78
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-games/clanlib/clanlib-0.8.1.ebuild,v 1.9 2011/09/15 02:31:01 ssuominen Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-games/clanlib/clanlib-0.8.1.ebuild,v 1.9 2011/09/15 02:31:01 ssuominen Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=4 |
6 |
inherit flag-o-matic eutils |
|
|
7 |
|
6 |
|
|
|
7 |
inherit autotools eutils toolchain-funcs versionator |
8 |
|
9 |
MY_MAJORV=$(get_major_version).0 |
10 |
MY_PN=ClanLib-${PV} |
8 |
DESCRIPTION="multi-platform game development library" |
11 |
DESCRIPTION="multi-platform game development library" |
9 |
HOMEPAGE="http://www.clanlib.org/" |
12 |
HOMEPAGE="http://www.clanlib.org/" |
10 |
SRC_URI="http://clanlib.org/download/releases-${PV:0:3}/ClanLib-${PV}.tgz" |
13 |
SRC_URI="http://clanlib.org/download/releases-${MY_MAJORV}/${MY_PN}.tgz" |
11 |
|
14 |
|
12 |
LICENSE="ZLIB" |
15 |
LICENSE="ZLIB" |
13 |
SLOT="0.8" |
16 |
SLOT="2.3" |
14 |
KEYWORDS="amd64 x86" #not big endian safe #82779 |
17 |
KEYWORDS="~amd64 ~x86" #not big endian safe #82779 |
15 |
IUSE="doc ipv6 mikmod opengl sdl static-libs vorbis" |
18 |
IUSE="doc ipv6 opengl pcre sound static-libs sqlite test" |
16 |
|
19 |
|
17 |
# opengl keyword does not drop the GL/GLU requirement. |
20 |
RDEPEND=" |
18 |
# Autoconf files need to be fixed |
21 |
media-libs/freetype |
19 |
RDEPEND="media-libs/libpng |
22 |
media-libs/fontconfig |
|
|
23 |
media-libs/libpng |
24 |
sys-libs/zlib |
20 |
virtual/jpeg |
25 |
virtual/jpeg |
21 |
virtual/opengl |
26 |
x11-libs/libX11 |
22 |
sdl? ( |
27 |
opengl? ( virtual/opengl x11-libs/libXrender ) |
23 |
media-libs/libsdl |
28 |
pcre? ( dev-libs/libpcre ) |
24 |
media-libs/sdl-gfx |
29 |
sound? ( |
|
|
30 |
media-libs/alsa-lib |
31 |
media-libs/libmikmod |
32 |
media-libs/libogg |
33 |
media-libs/libvorbis |
25 |
) |
34 |
) |
26 |
x11-libs/libXt |
35 |
sqlite? ( dev-db/sqlite )" |
27 |
x11-libs/libXmu |
36 |
|
28 |
x11-libs/libXxf86vm |
|
|
29 |
media-libs/alsa-lib |
30 |
mikmod? ( media-libs/libmikmod ) |
31 |
vorbis? ( media-libs/libvorbis )" |
32 |
DEPEND="${RDEPEND} |
37 |
DEPEND="${RDEPEND} |
33 |
x11-proto/xf86vidmodeproto" |
38 |
dev-util/pkgconfig |
|
|
39 |
doc? ( app-doc/doxygen dev-lang/perl ) |
40 |
test? ( x11-libs/libXxf86vm x11-libs/libXi )" |
34 |
|
41 |
|
35 |
S=${WORKDIR}/ClanLib-${PV} |
42 |
S=${WORKDIR}/${MY_PN} |
36 |
|
43 |
|
37 |
src_prepare() { |
44 |
src_prepare() { |
38 |
epatch \ |
45 |
epatch "${FILESDIR}"/${P}-autotools.patch |
39 |
"${FILESDIR}"/${P}-ndebug.patch \ |
46 |
eautoreconf |
40 |
"${FILESDIR}"/${P}-gcc43.patch \ |
|
|
41 |
"${FILESDIR}"/${P}-gcc44.patch \ |
42 |
"${FILESDIR}"/${P}-libpng15.patch |
43 |
} |
47 |
} |
44 |
|
48 |
|
45 |
src_configure() { |
49 |
src_configure() { |
46 |
#clanSound only controls mikmod/vorbis so there's |
|
|
47 |
# no need to pass --{en,dis}able-clanSound ... |
48 |
#clanDisplay only controls X, SDL, OpenGL plugins |
50 |
#clanDisplay only controls X, SDL, OpenGL plugins |
49 |
# so no need to pass --{en,dis}able-clanDisplay |
51 |
# so no need to pass --{en,dis}able-clanDisplay |
50 |
# also same reason why we don't have to use clanGUI |
52 |
# also same reason why we don't have to use clanGUI |
51 |
econf \ |
53 |
econf \ |
52 |
--enable-dyn \ |
|
|
53 |
--enable-clanNetwork \ |
54 |
--disable-dependency-tracking \ |
54 |
--disable-dependency-tracking \ |
55 |
$(use_enable x86 asm386) \ |
|
|
56 |
$(use_enable doc docs) \ |
55 |
$(use_enable doc docs) \ |
57 |
$(use_enable opengl clanGL) \ |
|
|
58 |
$(use_enable sdl clanSDL) \ |
59 |
$(use_enable vorbis clanVorbis) \ |
60 |
$(use_enable mikmod clanMikMod) \ |
61 |
$(use_enable ipv6 getaddr) \ |
56 |
$(use_enable ipv6 getaddr) \ |
62 |
$(use_enable static-libs static) |
57 |
$(use_enable pcre clanRegExp) \ |
|
|
58 |
$(use_enable opengl clanGL) \ |
59 |
$(use_enable opengl clanGL1) \ |
60 |
$(use_enable sound clanSound) \ |
61 |
$(use_enable static-libs static) \ |
62 |
$(use_enable sqlite clanSqlite) |
63 |
} |
64 |
|
65 |
src_compile() { |
66 |
default |
67 |
if use doc ; then |
68 |
tc-export CXX |
69 |
emake html |
70 |
fi |
63 |
} |
71 |
} |
64 |
|
72 |
|
65 |
src_install() { |
73 |
src_install() { |
66 |
emake DESTDIR="${D}" install || die "emake install failed" |
74 |
emake DESTDIR="${D}" install |
67 |
if use doc ; then |
75 |
if use doc ; then |
68 |
dodir /usr/share/doc/${PF}/html |
76 |
emake DESTDIR="${D}" install-html |
69 |
mv "${D}"/usr/share/doc/clanlib/* "${D}"/usr/share/doc/${PF}/html/ || die |
|
|
70 |
rm -rf "${D}"/usr/share/doc/clanlib |
71 |
cp -r Examples Resources "${D}"/usr/share/doc/${PF}/ || die |
77 |
cp -r Examples Resources "${D}"/usr/share/doc/${PF}/ || die |
72 |
fi |
78 |
fi |
73 |
if ! use static-libs ; then |
79 |
if ! use static-libs ; then |
74 |
find "${D}" -type f -name '*.la' -exec rm {} + \ |
80 |
find "${D}" -type f -name '*.la' -exec rm {} + \ |
75 |
|| die "la removal failed" |
81 |
|| die "la removal failed" |
76 |
fi |
82 |
fi |
77 |
dodoc CODING_STYLE CREDITS NEWS PATCHES README* INSTALL.linux |
83 |
dodoc CODING_STYLE CREDITS PATCHES README* |
78 |
} |
84 |
} |