Contents of /trunk/todo/supertux/supertux-0.1.3-r4.smage2
Parent Directory | Revision Log
Revision 2597 -
(show annotations)
(download)
Thu Jul 9 20:37:09 2009 UTC (15 years, 2 months ago) by niro
File size: 1930 byte(s)
Thu Jul 9 20:37:09 2009 UTC (15 years, 2 months ago) by niro
File size: 1930 byte(s)
-moved to 'todo'
1 | # $Header: /magellan-cvs/smage/supertux/supertux-0.1.3-r4.smage2,v 1.6 2008/02/07 14:23:54 niro Exp $ |
2 | |
3 | PNAME="supertux" |
4 | PVER="0.1.3" |
5 | PBUILD="r4" |
6 | |
7 | PCATEGORIE="x11-games" |
8 | STATE="testing" |
9 | |
10 | DESCRIPTION="SuperTux is a classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games." |
11 | HOMEPAGE="http://supertux.berlios.de/" |
12 | |
13 | DEPEND=">= x11-libs/libXt-1 |
14 | >= media-libs/libsdl-1.2 |
15 | >= media-libs/sdl-mixer-1.2 |
16 | >= media-libs/sdl-image-1.2" |
17 | |
18 | SDEPEND=">= dev-util/desktop-file-utils-0.10" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mtools xdg |
24 | |
25 | SRC_URI=( |
26 | http://download.berlios.de/${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${PNAME}-${PVER}-gcc41.patch |
29 | ) |
30 | |
31 | UP2DATE="updatecmd_berlios ${PNAME}" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # fixes compilation with gcc-4.1 |
39 | mpatch ${PNAME}-${PVER}-gcc41.patch || die |
40 | } |
41 | |
42 | src_compile() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | mconfigure \ |
47 | --prefix=/usr/games/${PNAME} \ |
48 | --mandir=/usr/share/man \ |
49 | --infodir=/usr/share/info \ |
50 | --datadir=/usr/games/${PNAME}/share \ |
51 | --disable-dependency-tracking \ |
52 | --disable-debug \ |
53 | --enable-opengl \ |
54 | || die |
55 | |
56 | mmake || die |
57 | } |
58 | |
59 | src_install() |
60 | { |
61 | cd ${SRCDIR} |
62 | |
63 | # needed directories |
64 | minstalldir /usr/bin || die |
65 | minstalldir /usr/share/applications || die |
66 | |
67 | make DESTDIR=${BINDIR} install || die |
68 | |
69 | # symlink binary to /usr/bin |
70 | mlink ../games/${PNAME}/bin/${PNAME} /usr/bin/${PNAME} || die |
71 | |
72 | # desktop icon |
73 | minstallpixmap data/images/icon.xpm ${PNAME}.xpm || die |
74 | minstallpixmap ${SRCDIR}/supertux.png || die |
75 | |
76 | minstall_desktop_icon --categories "Game,ArcadeGame" || die |
77 | |
78 | # docs |
79 | minstalldocs AUTHORS COPYING ChangeLog LEVELDESIGN NEWS README TODO || die |
80 | |
81 | # fix permissions |
82 | mchown root:games /usr/bin/${PNAME} || die |
83 | mchown -R root:games /usr/games/${PNAME} || die |
84 | mchmod 0754 /usr/bin/${PNAME} || die |
85 | mchmod 0754 /usr/games/${PNAME}/bin/${PNAME} || die |
86 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |