/[gentoo-x86]/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild
Gentoo

Contents of /sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (hide annotations) (download)
Wed Sep 14 18:51:32 2011 UTC (8 years, 6 months ago) by ssuominen
Branch: MAIN
Changes since 1.12: +4 -2 lines
Fix building with libpng15 wrt #378397 by Diego Elio Pettenò

(Portage version: 2.2.0_alpha55/cvs/Linux x86_64)

1 jlec 1.11 # Copyright 1999-2011 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.13 # $Header: /var/cvsroot/gentoo-x86/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild,v 1.12 2011/04/07 18:37:15 bicatali Exp $
4 bicatali 1.1
5 bicatali 1.9 EAPI=2
6 jlec 1.10
7     inherit autotools eutils
8 bicatali 1.1
9     DEB_PATCH="${PN}_${PV}-7"
10     DESCRIPTION="OpenGL interactive relativistic simulator"
11     HOMEPAGE="http://lightspeed.sourceforge.net/"
12 jlec 1.10 SRC_URI="
13     mirror://sourceforge/${PN}/${P}.tar.gz
14 bicatali 1.1 mirror://sourceforge/${PN}/objects-1.tar.gz
15     mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_PATCH}.diff.gz"
16    
17     LICENSE="LGPL-2.1"
18     SLOT="0"
19 maekke 1.8 KEYWORDS="amd64 ppc x86"
20 bicatali 1.1
21 bicatali 1.3 IUSE="nls truetype"
22 bicatali 1.1 LANGS="es"
23     for i in ${LANGS}; do
24     IUSE="${IUSE} linguas_${i}"
25     done
26    
27 jlec 1.11 RDEPEND="
28 bicatali 1.1 media-libs/libpng
29     media-libs/tiff
30 jlec 1.11 virtual/opengl
31     x11-libs/gtkglext
32     x11-libs/gtkglarea:2
33     x11-libs/gtk+:2
34 bicatali 1.1 truetype? ( media-libs/ftgl )"
35    
36 bicatali 1.9 DEPEND="${RDEPEND}
37     dev-util/pkgconfig"
38    
39 bicatali 1.1 S2="${WORKDIR}/objects"
40    
41 bicatali 1.9 src_prepare() {
42     epatch "${WORKDIR}/${DEB_PATCH}.diff"
43 ssuominen 1.13 epatch \
44     "${FILESDIR}"/${P}-autoconf.patch \
45     "${FILESDIR}"/${P}-libpng15.patch
46 jlec 1.10 eautoreconf
47 bicatali 1.1 }
48    
49 bicatali 1.9 src_configure() {
50 bicatali 1.1 econf \
51     --with-gtk=2 \
52     $(use_enable nls) \
53 bicatali 1.6 $(use_with truetype ftgl)
54 bicatali 1.9 }
55    
56     src_compile() {
57 bicatali 1.1 emake || die "emake failed"
58     for i in ${LANGS}; do
59     use linguas_${i} && emake ${i}.gmo
60     done
61     }
62    
63     src_install() {
64     emake DESTDIR="${D}" install || die "emake install failed"
65 drac 1.4 newicon src/icon.xpm lightspeed.xpm
66 bicatali 1.6 make_desktop_entry ${PN} "Light Speed! Relativistic Simulator"
67 bicatali 1.1 dodoc AUTHORS ChangeLog MATH NEWS README TODO || die
68     newdoc debian/changelog ChangeLog.Debian || die
69     cd ${S2}
70     newdoc README objects-README || die
71     insinto /usr/share/${PN}
72     doins *.3ds *.lwo || die
73     }
74    
75     pkg_postinst() {
76     elog
77     elog "Some 3d models have been placed in /usr/share/${PN}"
78     elog "You can load them in Light Speed! from the File menu."
79     elog
80     }

  ViewVC Help
Powered by ViewVC 1.1.20