Annotation of /trunk/todo/freespace2/freespace2-20071116-r2.smage2
Parent Directory | Revision Log
Revision 2299 -
(hide annotations)
(download)
Thu Jul 9 19:33:39 2009 UTC (15 years, 2 months ago) by niro
File size: 2889 byte(s)
Thu Jul 9 19:33:39 2009 UTC (15 years, 2 months ago) by niro
File size: 2889 byte(s)
-moved to 'todo'
1 | niro | 2 | # $Header: /magellan-cvs/smage/freespace2/freespace2-20071116-r2.smage2,v 1.2 2008/02/07 14:23:37 niro Exp $ |
2 | |||
3 | PNAME="freespace2" | ||
4 | PVER="20071116" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCATEGORIE="x11-games" | ||
8 | STATE="testing" | ||
9 | |||
10 | DESCRIPTION="Open-Source version of the space-shooter Freespace2." | ||
11 | HOMEPAGE="http://scp.indiegames.us/" | ||
12 | |||
13 | DEPEND=">= virtual/opengl | ||
14 | >= virtual/glut | ||
15 | >= media-libs/libsdl-1.2.11 | ||
16 | >= media-libs/libtheora-1.0_beta2 | ||
17 | >= media-libs/openal-2005 | ||
18 | >= app-arch/unshield-0.5 | ||
19 | >= sys-apps/debianutils-2.14 | ||
20 | >= sys-apps/eject-2 | ||
21 | >= x11-games/freespace2-data-20071116" | ||
22 | |||
23 | SDEPEND=">= dev-util/cvs-1.11 | ||
24 | >= dev-util/desktop-file-utils-0.10" | ||
25 | |||
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
27 | |||
28 | sminclude cvs mtools xdg | ||
29 | |||
30 | # setup cvs environment | ||
31 | MY_CVS_MODULE="fs2_open" | ||
32 | MY_CVS_OPTS=" -D ${PVER}" | ||
33 | CVSROOT=:pserver:anonymous:anonymous:@warpcore.org:/home/fs2source/cvsroot | ||
34 | |||
35 | SRC_URI=( | ||
36 | mirror://${PNAME}/fs2-open-wrapper.sh | ||
37 | mirror://${PNAME}/fs2-open-installer.sh | ||
38 | mirror://${PNAME}/fs2-open.png | ||
39 | ) | ||
40 | |||
41 | # note: xorg opengl headers should be used at compilation | ||
42 | # ati or nvidia will fail to build !! | ||
43 | src_prepare() | ||
44 | { | ||
45 | [[ $(opengl-update --get-implementation) != xorg ]] && | ||
46 | die "please change to xorg opengl-headers: opengl-update xorg" | ||
47 | |||
48 | cvs_fetch_source || die | ||
49 | install -d ${SRCDIR}/addon-vp || die | ||
50 | } | ||
51 | |||
52 | src_compile() | ||
53 | { | ||
54 | cd ${SRCDIR} | ||
55 | sh autogen.sh CXXFLAGS="${CXXFLAGS}" || die | ||
56 | mmake || die | ||
57 | } | ||
58 | |||
59 | src_install() | ||
60 | { | ||
61 | cd ${SRCDIR} | ||
62 | |||
63 | # needed directories | ||
64 | minstalldir /usr/bin || die | ||
65 | |||
66 | # needed by the installer-script | ||
67 | mkeepdir /usr/games/freespace2/data/movies || die | ||
68 | mkeepdir /usr/games/freespace2/data/players || die | ||
69 | |||
70 | # install binaries | ||
71 | minstallexec code/fs2_open_r /usr/games/freespace2 || die | ||
72 | |||
73 | # install a wrapper | ||
74 | minstallexec -s fs2-open-wrapper.sh /usr/games/freespace2/freespace2 || die | ||
75 | |||
76 | # the installer | ||
77 | minstallexec -s fs2-open-installer.sh /usr/games/freespace2/freespace2-installer || die | ||
78 | |||
79 | # symlinks to /usr/bin | ||
80 | mlink /usr/games/freespace2/freespace2 /usr/bin || die | ||
81 | mlink /usr/games/freespace2/freespace2-installer /usr/bin || die | ||
82 | |||
83 | # fix permissions | ||
84 | mchown -R root:games /usr/games/freespace2 || die | ||
85 | mchown -R root:games /usr/bin || die | ||
86 | mchmod 0754 /usr/games/freespace2/freespace2 || die | ||
87 | mchmod 0754 /usr/games/freespace2/freespace2-installer || die | ||
88 | mchmod 0754 /usr/games/freespace2/fs2_open_r || die | ||
89 | mchmod 0754 /usr/bin/freespace2 || die | ||
90 | mchmod 0754 /usr/bin/freespace2-installer || die | ||
91 | |||
92 | # menu-entry for kde and gnome | ||
93 | minstallpixmap fs2-open.png || die | ||
94 | minstall_desktop_icon \ | ||
95 | --name Freespace2 \ | ||
96 | --file fs2-open \ | ||
97 | --exec /usr/bin/freespace2 \ | ||
98 | --comment "Space Combat Game" \ | ||
99 | --icon fs2-open.png \ | ||
100 | --categories Game,ActionGame \ | ||
101 | || die | ||
102 | |||
103 | minstalldocs AUTHORS ChangeLog COPYING NEWS README || die | ||
104 | } | ||
105 | |||
106 | postinstall() | ||
107 | { | ||
108 | echo | ||
109 | echo "You must run 'freespace2-installer /your/cdrom-drive' to copy some" | ||
110 | echo "needed files from the retail CDs to be able to play the game." | ||
111 | echo | ||
112 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |