Magellan Linux

Contents of /trunk/extras/tuxracer/tuxracer-0.61-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1913 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/tuxracer/tuxracer-0.61-r5.smage2,v 1.2 2008/02/07 14:23:54 niro Exp $
2
3 PNAME="tuxracer"
4 PVER="0.61"
5 PBUILD="r5"
6
7 PCATEGORIE="x11-games"
8 STATE="testing"
9
10 DESCRIPTION="Tux Racer lets you take on the role of Tux the Linux Penguin as he races down steep, snow-covered mountains."
11 HOMEPAGE="http://tuxracer.sourceforge.net/"
12
13 DEPEND=">= virtual/opengl
14 >= virtual/glut
15 >= dev-lang/tk-8.4
16 >= media-libs/sdl-mixer-1.2"
17
18 SDEPEND=">= sys-dev/automake-1.7.2
19 >= sys-dev/autoconf-2.57"
20
21 SRCFILE="${PNAME}-${PVER}.tar.gz"
22 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23
24 DATA_SRCFILE="${PNAME}-data-${PVER}.tar.gz"
25 DATA_SRCDIR="${BUILDDIR}/${PNAME}-data-${PVER}"
26
27 sminclude gnuconfig mtools
28
29 SRC_URI=(
30 sourceforge://${PNAME}/${SRCFILE}
31 sourceforge://${PNAME}/${DATA_SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 mirror://${PNAME}/${DATA_SRCFILE}
34 mirror://${PNAME}/${PNAME}-${PVER}-configure.patch
35 mirror://${PNAME}/${PNAME}-${PVER}-gcc3.patch
36 )
37
38 src_prepare()
39 {
40 munpack ${SRCFILE} || die
41 munpack ${DATA_SRCFILE} || die
42 cd ${SRCDIR}
43
44 # fix glx.h detection logic
45 mpatch ${PNAME}-${PVER}-configure.patch || die
46 mpatch ${PNAME}-${PVER}-gcc3.patch || die
47
48 # rebuild makefiles
49 WANT_AUTOCONF=2.5 autoreconf || die
50
51 # support more compiler targets
52 gnuconfig-update || die
53 }
54
55 src_compile()
56 {
57 cd ${SRCDIR}
58
59 mconfigure \
60 --prefix=/usr/games/tuxracer \
61 --with-data-dir=/usr/games/tuxracer/share \
62 || die
63
64 mmake || die
65 }
66
67 src_install()
68 {
69 cd ${SRCDIR}
70
71 # needed directories
72 minstalldir /usr/bin || die
73 minstalldir /usr/games/tuxracer/share || die
74
75 make DESTDIR=${BINDIR} install || die
76 mv ${DATA_SRCDIR}/* ${BINDIR}/usr/games/tuxracer/share || die
77
78 mlink /usr/games/tuxracer/bin/tuxracer /usr/bin/ || die
79
80 # fix permissions
81 mchown root:games /usr/games/tuxracer/bin/tuxracer || die
82 mchmod 0755 /usr/games/tuxracer/bin/tuxracer || die
83 find ${BINDIR} -perm 0640 | xargs chmod 0644 || die
84 }

Properties

Name Value
svn:keywords Id