/[gentoo-x86]/dev-games/cegui/cegui-0.6.2b.ebuild
Gentoo

Contents of /dev-games/cegui/cegui-0.6.2b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Thu May 3 06:35:30 2012 UTC (2 years, 7 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-games/cegui/cegui-0.6.2b.ebuild,v 1.11 2011/07/13 13:34:58 tupone Exp $
4
5 EAPI=2
6 inherit autotools eutils
7
8 MY_P=CEGUI-${PV%b}
9 DESCRIPTION="Crazy Eddie's GUI System"
10 HOMEPAGE="http://www.cegui.org.uk/"
11 SRC_URI="mirror://sourceforge/crayzedsgui/${MY_P}b.tar.gz
12 doc? ( mirror://sourceforge/crayzedsgui/${MY_P}-DOCS.tar.gz )"
13
14 LICENSE="MIT"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86"
17 IUSE="debug devil directfb doc examples expat irrlicht lua opengl xerces-c xml"
18
19 RDEPEND="dev-libs/libpcre
20 media-libs/freetype:2
21 devil? ( media-libs/devil )
22 directfb? ( dev-libs/DirectFB )
23 expat? ( dev-libs/expat )
24 irrlicht? ( dev-games/irrlicht )
25 lua? (
26 dev-lang/lua
27 dev-lua/toluapp
28 )
29 opengl? (
30 virtual/opengl
31 media-libs/freeglut
32 media-libs/glew
33 )
34 xerces-c? ( dev-libs/xerces-c )
35 xml? ( dev-libs/libxml2 )"
36 DEPEND="${RDEPEND}
37 virtual/pkgconfig"
38
39 S=${WORKDIR}/${MY_P}
40
41 src_prepare() {
42 epatch \
43 "${FILESDIR}"/${P}-gcc43.patch \
44 "${FILESDIR}"/${P}-dups.patch \
45 "${FILESDIR}"/${P}-gcc46.patch
46 sed -i \
47 -e 's/ILvoid/void/g' \
48 ImageCodecModules/DevILImageCodec/CEGUIDevILImageCodec.cpp \
49 || die "sed failed"
50 if use examples ; then
51 cp -r Samples Samples.clean
52 rm -f $(find Samples.clean -name 'Makefile*')
53 rm -rf Samples.clean/bin
54 fi
55 eautoreconf #220040
56 }
57
58 src_configure() {
59 econf \
60 $(use_enable debug) \
61 $(use_enable devil) \
62 $(use_enable directfb directfb-renderer) \
63 $(use_enable examples samples) \
64 $(use_enable expat) \
65 $(use_enable irrlicht irrlicht-renderer) \
66 $(use_enable lua external-toluapp) \
67 $(use_enable lua lua-module) \
68 $(use_enable lua toluacegui) \
69 $(use_enable opengl external-glew) \
70 $(use_enable opengl opengl-renderer) \
71 $(use_enable xerces-c) \
72 $(use_enable xml libxml) \
73 --enable-static \
74 --enable-tga \
75 --enable-tinyxml \
76 --disable-corona \
77 --disable-dependency-tracking \
78 --disable-external-tinyxml \
79 --disable-freeimage \
80 --disable-samples \
81 --disable-silly \
82 --without-gtk2 \
83 --without-ogre-renderer
84 }
85
86 src_install() {
87 emake DESTDIR="${D}" install || die "emake install failed"
88 dodoc AUTHORS ChangeLog README TODO
89 if use doc ; then
90 dohtml -r documentation/api_reference || die "dohtml failed"
91 dodoc documentation/*.pdf || die "dodoc failed"
92 fi
93 if use examples ; then
94 insinto /usr/share/doc/${PF}/Samples
95 doins -r Samples.clean/* || die "doins failed"
96 fi
97 }

  ViewVC Help
Powered by ViewVC 1.1.20