/[gentoo-x86]/media-libs/sge/sge-030809.ebuild
Gentoo

Contents of /media-libs/sge/sge-030809.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Jul 27 08:17:00 2008 UTC (6 years, 5 months ago) by nixnut
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +2 -2 lines
Stable on ppc wrt bug 232702
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/sge/sge-030809.ebuild,v 1.11 2008/07/25 19:08:39 beandog Exp $
4
5 inherit eutils multilib
6
7 MY_P="sge${PV}"
8 DESCRIPTION="Graphics extensions library for SDL"
9 HOMEPAGE="http://www.etek.chalmers.se/~e8cal1/sge/"
10 SRC_URI="http://www.etek.chalmers.se/~e8cal1/sge/files/${MY_P}.tar.gz"
11
12 LICENSE="LGPL-2.1"
13 SLOT="0"
14 KEYWORDS="amd64 ~ia64 ppc x86 ~x86-fbsd"
15 IUSE="doc examples image truetype"
16
17 DEPEND="media-libs/libsdl
18 image? ( media-libs/sdl-image )
19 truetype? ( >=media-libs/freetype-2 )"
20
21 S="${WORKDIR}/${MY_P}"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 epatch \
27 "${FILESDIR}"/${P}-build.patch \
28 "${FILESDIR}"/${P}-freetype.patch \
29 "${FILESDIR}"/${P}-cmap.patch
30 sed -i "s:\$(PREFIX)/lib:\$(PREFIX)/$(get_libdir):" Makefile \
31 || die "sed failed"
32 }
33
34 src_compile() {
35 # make sure the header gets regenerated everytime
36 rm -f sge_config.h
37
38 yesno() { use $1 && echo y || echo n ; }
39 emake \
40 USE_IMG=$(yesno image) \
41 USE_FT=$(yesno truetype) \
42 || die "emake failed"
43 }
44
45 src_install() {
46 emake DESTDIR="${D}" install || die "emake install failed"
47
48 dodoc README Todo WhatsNew
49
50 use doc && dohtml docs/*
51
52 if use examples ; then
53 insinto /usr/share/doc/${PF}
54 doins -r examples || die "doins failed"
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20