Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/resources/scripts/gentoo/orxonox-0.3.2_alpha-r7122.ebuild @ 9442

Last change on this file since 9442 was 7124, checked in by patrick, 19 years ago

added a new gentoo ebuild script, donated by stefan fuchs (http://srf.ch/), thx

File size: 2.2 KB
Line 
1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5# original comes from http://www.orxonox.net/ , 2006-02-11
6# modified/tested by S. Fuchs, http://srf.ch/ , 2006-02-11
7#
8# put this ebuild into your portage overlay: games-action/orxonox/
9# see /etc/make.conf to configure the portage overlay.
10# then cd into that games-action/orxonox/ directory and do:
11# $ ebuild orxonox-0.3.2_alpha-r7122.ebuild digest
12# $ emerge -av --oneshot orxonox
13# to install it (ommit the --oneshot to get an entry in your world file).
14#
15# put http://fuchs.dnsalias.net/public/orxonox/orxonox-0.3.2_alpha-r7122.tar.bz2
16# manually into your distfiles directory (usually /usr/portage/distfiles)
17# if it's not available from http://www.orxonox.net/files/snapshots/
18
19inherit eutils games
20
21DATA_VERSION=372
22
23DESCRIPTION="orxonox is an open-source 3D-action game programmed in C++, OpenGL, OpenAL and SDL"
24HOMEPAGE="http://www.orxonox.net"
25SRC_URI="http://www.orxonox.net/files/snapshots/${P}-${PR}.tar.bz2
26         http://www.orxonox.net/files/snapshots/${PN}-data-r${DATA_VERSION}.tar.bz2"
27LICENSE="GPL-2"
28SLOT="0"
29KEYWORDS="x86"
30IUSE="gtk+-2"
31
32DEPEND="virtual/opengl
33        virtual/x11
34        media-libs/openal
35        media-libs/libsdl
36        media-libs/sdl-image
37        media-libs/sdl-ttf
38        media-libs/sdl-net
39        media-libs/glew"
40
41# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
42#RDEPEND=""
43S=${WORKDIR}/${P}
44
45src_unpack() {
46        unpack ${P}-${PR}.tar.bz2
47        cd "${S}"
48        unpack ${PN}-data-r${DATA_VERSION}.tar.bz2
49}
50
51src_compile() {
52        egamesconf || die
53
54        emake || die "emake failed"
55}
56
57src_install() {
58        make DESTDIR=${D} install || die
59
60        dodir ${GAMES_DATADIR}/${PN}
61        cp -r data/* ${D}/${GAMES_DATADIR}/${PN}/ \
62                || die "data copy failed"
63
64        dodoc AUTHORS ChangeLog README
65
66        prepgamesdirs
67
68        #make \
69        #       prefix=${D}/usr \
70        #       mandir=${D}/usr/share/man \
71        #       infodir=${D}/usr/share/info \
72        #       libdir=${D}/usr/$(get_libdir) \
73        #       install || die
74
75        #einstall || die
76}
77
78pkg_postinst() {
79        games_pkg_postinst
80}
Note: See TracBrowser for help on using the repository browser.