Contents of /trunk/deprecated/space4/space4-svn602-r1.smage2
Parent Directory | Revision Log
Revision 2588 -
(show annotations)
(download)
Thu Jul 9 20:35:49 2009 UTC (15 years, 2 months ago) by niro
Original Path: trunk/todo/space4/space4-svn602-r1.smage2
File size: 2203 byte(s)
Thu Jul 9 20:35:49 2009 UTC (15 years, 2 months ago) by niro
Original Path: trunk/todo/space4/space4-svn602-r1.smage2
File size: 2203 byte(s)
-moved to 'todo'
1 | # $Header: /magellan-cvs/smage/space4/space4-svn602-r1.smage2,v 1.1 2006/02/25 22:50:00 niro Exp $ |
2 | |
3 | PNAME="space4" |
4 | PVER="svn602" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="x11-games" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Space4 is an old style 2D-Freescroller-Spaceshooter with opengl graphics." |
11 | HOMEPAGE="http://magellan-linux.de/ntropi/" |
12 | |
13 | # only for >= xorg-7.0.0 |
14 | sminclude xorg |
15 | |
16 | DEPEND=">= x11-libs/libICE-1.0.0 |
17 | >= x11-libs/libSM-1.0.0 |
18 | >= x11-libs/libX11-1.0.0 |
19 | >= x11-libs/libXau-1.0.0 |
20 | >= x11-libs/libXdmcp-1.0.0 |
21 | >= x11-libs/libXext-1.0.0 |
22 | >= x11-libs/libXt-1.0.0 |
23 | >= media-libs/libsdl-1.2 |
24 | >= media-libs/sdl-image-1.2 |
25 | >= dev-libs/libsigc++-2.0.16" |
26 | |
27 | SDEPEND=">= dev-util/scons-0.96.1" |
28 | |
29 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
30 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
31 | |
32 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) |
33 | |
34 | src_prepare() { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # create missing config.xml |
39 | cat > ${SRCDIR}/config.xml << EOF |
40 | <project> |
41 | <buildConfig name="gcc-release" builder="SCons"> |
42 | <compiler name="Gcc"> |
43 | <option name="debuglevel" value="0"/> |
44 | </compiler> |
45 | </buildConfig> |
46 | |
47 | <buildConfig name="gcc-debug" builder="SCons" default="1"> |
48 | <compiler name="Gcc"> |
49 | <option name="debuglevel" value="1"/> |
50 | </compiler> |
51 | </buildConfig> |
52 | </project> |
53 | EOF |
54 | } |
55 | |
56 | src_compile() { |
57 | cd ${SRCDIR} |
58 | |
59 | # build config and compile |
60 | scons || die |
61 | } |
62 | |
63 | src_install() { |
64 | cd ${SRCDIR} |
65 | |
66 | local dest=/usr/games/${PNAME} |
67 | |
68 | install -d ${BINDIR}/usr/bin || die |
69 | install -d ${BINDIR}/${dest} || die |
70 | cp -R ${SRCDIR}/app/common_ressources ${BINDIR}/${dest} || die |
71 | cp -R ${SRCDIR}/app/space4 ${BINDIR}/${dest} || die |
72 | |
73 | # wrapper |
74 | cat > ${BINDIR}/usr/bin/space4 << EOF |
75 | #!/bin/bash |
76 | |
77 | cd @GAMEPATH@/space4 |
78 | ./space4 |
79 | EOF |
80 | sed -i "s:@GAMEPATH@:${dest}:g" ${BINDIR}/usr/bin/space4 || die |
81 | |
82 | # fix permissions |
83 | chown -R root:games ${BINDIR}/${dest} || die |
84 | chown root:games ${BINDIR}/usr/bin/space4 || die |
85 | chmod 0755 ${BINDIR}/usr/bin/space4 || die |
86 | |
87 | # create a nice config |
88 | cat > ${BINDIR}/${dest}/space4Cfg.poc << EOF |
89 | Space4Config { |
90 | video: VideoSetting { |
91 | resX: 1024 |
92 | resY: 768 |
93 | bpp: 32 |
94 | fullscreen: false |
95 | } |
96 | maxFramerate: 100 |
97 | cameraMode: 'normal' |
98 | specularEffect: true |
99 | } |
100 | EOF |
101 | |
102 | minstalldocs COMPLAINLIST.txt TODO-big.txt TODO.txt || die |
103 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |