1 |
commit: 86c00ec6216fc80f7f23188d49678665e8232ab6 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Jul 29 09:15:23 2011 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Fri Jul 29 09:15:23 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=86c00ec6 |
7 |
|
8 |
[games-action/supertuxkart] 0.7.2 from Egor Y. Egorov (#376855) |
9 |
|
10 |
(Portage version: 2.1.10.3/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
.../supertuxkart/files/supertuxkart-0.7.2.patch | 224 ++++++++++++++++++++ |
14 |
games-action/supertuxkart/metadata.xml | 13 ++ |
15 |
.../supertuxkart/supertuxkart-0.7.2.ebuild | 49 +++++ |
16 |
3 files changed, 286 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/games-action/supertuxkart/files/supertuxkart-0.7.2.patch b/games-action/supertuxkart/files/supertuxkart-0.7.2.patch |
19 |
new file mode 100644 |
20 |
index 0000000..35cb214 |
21 |
--- /dev/null |
22 |
+++ b/games-action/supertuxkart/files/supertuxkart-0.7.2.patch |
23 |
@@ -0,0 +1,224 @@ |
24 |
+diff -uNr supertuxkart-0.7.2_orig//configure.ac supertuxkart-0.7.2/configure.ac |
25 |
+--- supertuxkart-0.7.2_orig//configure.ac 2011-07-15 18:34:29.000000000 +0700 |
26 |
++++ supertuxkart-0.7.2/configure.ac 2011-07-28 19:34:43.192159546 +0700 |
27 |
+@@ -106,7 +106,7 @@ |
28 |
+ LIBS=$save_LIBS |
29 |
+ if test "x$ac_cv_search_glNewList" = "x-lGLcore"; then |
30 |
+ # if GLcore found, then also check for GL |
31 |
+- AC_SEARCH_LIBS(glXCreateContext, GL) |
32 |
++ AC_SEARCH_LIBS(gluLookAt, GLU) |
33 |
+ fi |
34 |
+ ;; |
35 |
+ esac |
36 |
+@@ -244,7 +244,7 @@ |
37 |
+ # ---- Check these flags do work by building a small irrLicht sample |
38 |
+ echo "checking for irrlicht libraries..." |
39 |
+ save_LIBS=$LIBS |
40 |
+-LIBS="$LIBS $irrlicht_LIBS $opengl_LIBS" |
41 |
++LIBS="$LIBS $irrlicht_LIBS $opengl_LIBS -lm -lz -lX11" |
42 |
+ |
43 |
+ irrlicht_sample_built_fine="false" |
44 |
+ |
45 |
+@@ -402,7 +402,6 @@ |
46 |
+ enet_LIBS="-Lenet -lenet" |
47 |
+ ;; |
48 |
+ esac |
49 |
+-ENETTREE="src/enet" |
50 |
+ |
51 |
+ # ========================================== |
52 |
+ # Check for a known compiler bug, details in |
53 |
+@@ -453,7 +452,6 @@ |
54 |
+ src/ide/Makefile \ |
55 |
+ src/bullet/Makefile \ |
56 |
+ src/bullet/src/Makefile \ |
57 |
+- src/enet/Makefile \ |
58 |
+ ]) |
59 |
+ AC_OUTPUT |
60 |
+ echo -e $SUMMARY |
61 |
+diff -uNr supertuxkart-0.7.2_orig//data/challenges/Makefile.am supertuxkart-0.7.2/data/challenges/Makefile.am |
62 |
+--- supertuxkart-0.7.2_orig//data/challenges/Makefile.am 2011-06-14 06:08:42.000000000 +0700 |
63 |
++++ supertuxkart-0.7.2/data/challenges/Makefile.am 2011-07-28 19:35:53.701159576 +0700 |
64 |
+@@ -1,5 +1,5 @@ |
65 |
+ # challenges/ |
66 |
+ |
67 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data/challenges |
68 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data/challenges |
69 |
+ |
70 |
+ nobase_dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.challenge") |
71 |
+diff -uNr supertuxkart-0.7.2_orig//data/fonts/Makefile.am supertuxkart-0.7.2/data/fonts/Makefile.am |
72 |
+--- supertuxkart-0.7.2_orig//data/fonts/Makefile.am 2011-06-14 06:08:26.000000000 +0700 |
73 |
++++ supertuxkart-0.7.2/data/fonts/Makefile.am 2011-07-28 19:34:43.192159546 +0700 |
74 |
+@@ -1,6 +1,6 @@ |
75 |
+ # data/fonts/ |
76 |
+ |
77 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data/fonts |
78 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data/fonts |
79 |
+ |
80 |
+ dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.png") \ |
81 |
+ $(shell find $(srcdir) -name "*.xml") |
82 |
+diff -uNr supertuxkart-0.7.2_orig//data/gfx/Makefile.am supertuxkart-0.7.2/data/gfx/Makefile.am |
83 |
+--- supertuxkart-0.7.2_orig//data/gfx/Makefile.am 2011-06-14 06:08:40.000000000 +0700 |
84 |
++++ supertuxkart-0.7.2/data/gfx/Makefile.am 2011-07-28 19:35:43.488159570 +0700 |
85 |
+@@ -1,5 +1,5 @@ |
86 |
+ #data/gfx |
87 |
+ |
88 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data/gfx |
89 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data/gfx |
90 |
+ dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.xml") |
91 |
+ |
92 |
+diff -uNr supertuxkart-0.7.2_orig//data/grandprix/Makefile.am supertuxkart-0.7.2/data/grandprix/Makefile.am |
93 |
+--- supertuxkart-0.7.2_orig//data/grandprix/Makefile.am 2011-06-14 06:08:17.000000000 +0700 |
94 |
++++ supertuxkart-0.7.2/data/grandprix/Makefile.am 2011-07-28 19:34:43.193159546 +0700 |
95 |
+@@ -1,6 +1,6 @@ |
96 |
+ # data/music |
97 |
+ |
98 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data/grandprix |
99 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data/grandprix |
100 |
+ |
101 |
+ dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.grandprix") \ |
102 |
+ $(shell find $(srcdir) -name "*.challenge") \ |
103 |
+diff -uNr supertuxkart-0.7.2_orig//data/gui/Makefile.am supertuxkart-0.7.2/data/gui/Makefile.am |
104 |
+--- supertuxkart-0.7.2_orig//data/gui/Makefile.am 2011-06-14 06:08:21.000000000 +0700 |
105 |
++++ supertuxkart-0.7.2/data/gui/Makefile.am 2011-07-28 19:34:43.193159546 +0700 |
106 |
+@@ -1,6 +1,6 @@ |
107 |
+ # data/gui/ |
108 |
+ |
109 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data/gui |
110 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data/gui |
111 |
+ |
112 |
+ nobase_dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.png" ) \ |
113 |
+ $(shell find $(srcdir) -name "*.jpg" ) \ |
114 |
+diff -uNr supertuxkart-0.7.2_orig//data/karts/Makefile.am supertuxkart-0.7.2/data/karts/Makefile.am |
115 |
+--- supertuxkart-0.7.2_orig//data/karts/Makefile.am 2011-06-14 06:08:11.000000000 +0700 |
116 |
++++ supertuxkart-0.7.2/data/karts/Makefile.am 2011-07-28 19:34:43.193159546 +0700 |
117 |
+@@ -1,6 +1,6 @@ |
118 |
+ # data/karts |
119 |
+ |
120 |
+-pkgdatadir= $(datadir)/games/$(PACKAGE)/data/karts |
121 |
++pkgdatadir= $(datadir)/$(PACKAGE)/data/karts |
122 |
+ |
123 |
+ nobase_dist_pkgdata_DATA = $(shell find $(srcdir) -name "materials.xml") \ |
124 |
+ $(shell find $(srcdir) -name "*.png") \ |
125 |
+diff -uNr supertuxkart-0.7.2_orig//data/Makefile.am supertuxkart-0.7.2/data/Makefile.am |
126 |
+--- supertuxkart-0.7.2_orig//data/Makefile.am 2011-06-14 06:08:25.000000000 +0700 |
127 |
++++ supertuxkart-0.7.2/data/Makefile.am 2011-07-28 19:34:43.193159546 +0700 |
128 |
+@@ -1,7 +1,7 @@ |
129 |
+ # data/ |
130 |
+ |
131 |
+ SUBDIRS = challenges fonts gfx gui karts models music po sfx textures tracks grandprix |
132 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data |
133 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data |
134 |
+ |
135 |
+ dist_pkgdata_DATA = \ |
136 |
+ $(shell find $(srcdir) -name "*.data") \ |
137 |
+@@ -13,16 +13,3 @@ |
138 |
+ stk_config.xml powerup.xml items.xml \ |
139 |
+ CREDITS |
140 |
+ |
141 |
+-desktopdir = $(prefix)/share/applications |
142 |
+-desktop_DATA = supertuxkart.desktop |
143 |
+- |
144 |
+-icondir = $(prefix)/share/pixmaps |
145 |
+-dist_icon_DATA = supertuxkart_32.xpm supertuxkart_64.xpm |
146 |
+- |
147 |
+- |
148 |
+-# The desktop file needs the absolute path to the binary |
149 |
+-# since e.g. /usr/games might not be in the standard path |
150 |
+-EXTRA_DIST = supertuxkart_desktop.template |
151 |
+-CLEANFILES = supertuxkart.desktop |
152 |
+-supertuxkart.desktop: Makefile supertuxkart_desktop.template |
153 |
+- sed 's#PREFIX#$(prefix)#' $(srcdir)/supertuxkart_desktop.template >supertuxkart.desktop |
154 |
+diff -uNr supertuxkart-0.7.2_orig//data/models/Makefile.am supertuxkart-0.7.2/data/models/Makefile.am |
155 |
+--- supertuxkart-0.7.2_orig//data/models/Makefile.am 2011-06-14 06:08:25.000000000 +0700 |
156 |
++++ supertuxkart-0.7.2/data/models/Makefile.am 2011-07-28 19:34:43.194159546 +0700 |
157 |
+@@ -1,6 +1,6 @@ |
158 |
+ # data/models/ |
159 |
+ |
160 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data/models |
161 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data/models |
162 |
+ |
163 |
+ dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.b3d") \ |
164 |
+ $(shell find $(srcdir) -name "*.png") \ |
165 |
+diff -uNr supertuxkart-0.7.2_orig//data/music/Makefile.am supertuxkart-0.7.2/data/music/Makefile.am |
166 |
+--- supertuxkart-0.7.2_orig//data/music/Makefile.am 2011-06-14 06:08:29.000000000 +0700 |
167 |
++++ supertuxkart-0.7.2/data/music/Makefile.am 2011-07-28 19:34:43.194159546 +0700 |
168 |
+@@ -1,6 +1,6 @@ |
169 |
+ # data/music |
170 |
+ |
171 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data/music |
172 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data/music |
173 |
+ |
174 |
+ dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.ogg") \ |
175 |
+ $(shell find $(srcdir) -name "*.music") \ |
176 |
+diff -uNr supertuxkart-0.7.2_orig//data/po/Makefile.am supertuxkart-0.7.2/data/po/Makefile.am |
177 |
+--- supertuxkart-0.7.2_orig//data/po/Makefile.am 2011-06-14 06:07:23.000000000 +0700 |
178 |
++++ supertuxkart-0.7.2/data/po/Makefile.am 2011-07-28 19:34:43.194159546 +0700 |
179 |
+@@ -1,6 +1,6 @@ |
180 |
+ # data/po/ |
181 |
+ |
182 |
+-pkgdatadir = $(datadir)/games/@PACKAGE@/data/po |
183 |
++pkgdatadir = $(datadir)/@PACKAGE@/data/po |
184 |
+ |
185 |
+ dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.po") \ |
186 |
+ supertuxkart.pot |
187 |
+diff -uNr supertuxkart-0.7.2_orig//data/sfx/Makefile.am supertuxkart-0.7.2/data/sfx/Makefile.am |
188 |
+--- supertuxkart-0.7.2_orig//data/sfx/Makefile.am 2011-06-14 06:08:23.000000000 +0700 |
189 |
++++ supertuxkart-0.7.2/data/sfx/Makefile.am 2011-07-28 19:34:43.194159546 +0700 |
190 |
+@@ -1,6 +1,6 @@ |
191 |
+ # sfx/ |
192 |
+ |
193 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data/sfx |
194 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data/sfx |
195 |
+ |
196 |
+ nobase_dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.ogg") \ |
197 |
+ $(shell find $(srcdir) -name "sfx.xml") \ |
198 |
+diff -uNr supertuxkart-0.7.2_orig//data/textures/Makefile.am supertuxkart-0.7.2/data/textures/Makefile.am |
199 |
+--- supertuxkart-0.7.2_orig//data/textures/Makefile.am 2011-06-14 06:08:39.000000000 +0700 |
200 |
++++ supertuxkart-0.7.2/data/textures/Makefile.am 2011-07-28 19:34:43.195159546 +0700 |
201 |
+@@ -1,6 +1,6 @@ |
202 |
+ # data/textures |
203 |
+ |
204 |
+-pkgdatadir = $(datadir)/games/$(PACKAGE)/data/textures |
205 |
++pkgdatadir = $(datadir)/$(PACKAGE)/data/textures |
206 |
+ dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.png") \ |
207 |
+ $(shell find $(srcdir) -name "*.jpg") \ |
208 |
+ materials.xml License.txt |
209 |
+diff -uNr supertuxkart-0.7.2_orig//data/tracks/Makefile.am supertuxkart-0.7.2/data/tracks/Makefile.am |
210 |
+--- supertuxkart-0.7.2_orig//data/tracks/Makefile.am 2011-06-14 06:07:50.000000000 +0700 |
211 |
++++ supertuxkart-0.7.2/data/tracks/Makefile.am 2011-07-28 19:34:43.195159546 +0700 |
212 |
+@@ -1,6 +1,6 @@ |
213 |
+ # data/tracks |
214 |
+ |
215 |
+-pkgdatadir= $(datadir)/games/$(PACKAGE)/data/tracks |
216 |
++pkgdatadir= $(datadir)/$(PACKAGE)/data/tracks |
217 |
+ nobase_dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.jpg") \ |
218 |
+ $(shell find $(srcdir) -name "*.JPG") \ |
219 |
+ $(shell find $(srcdir) -name "*.png") \ |
220 |
+diff -uNr supertuxkart-0.7.2_orig//Makefile.am supertuxkart-0.7.2/Makefile.am |
221 |
+--- supertuxkart-0.7.2_orig//Makefile.am 2011-06-14 06:07:14.000000000 +0700 |
222 |
++++ supertuxkart-0.7.2/Makefile.am 2011-07-28 19:34:43.195159546 +0700 |
223 |
+@@ -1,8 +1,6 @@ |
224 |
+ ACLOCAL_AMFLAGS = -I m4 |
225 |
+ |
226 |
+-SUBDIRS = $(BULLETTREE) $(ENETTREE) src doc data |
227 |
++SUBDIRS = $(BULLETTREE) $(ENETTREE) src data |
228 |
+ |
229 |
+-pkgdatadir=$(datadir)/doc/$(PACKAGE) |
230 |
+-dist_pkgdata_DATA=AUTHORS ChangeLog COPYING README |
231 |
+ # NEWS only contains "see changelog" |
232 |
+ # CHANGES only contains "see NEW" |
233 |
+diff -uNr supertuxkart-0.7.2_orig//src/Makefile.am supertuxkart-0.7.2/src/Makefile.am |
234 |
+--- supertuxkart-0.7.2_orig//src/Makefile.am 2011-06-14 06:09:33.000000000 +0700 |
235 |
++++ supertuxkart-0.7.2/src/Makefile.am 2011-07-28 19:34:43.196159546 +0700 |
236 |
+@@ -2,10 +2,9 @@ |
237 |
+ |
238 |
+ SUBDIRS = ide |
239 |
+ |
240 |
+-bindir=$(prefix)/games |
241 |
+ bin_PROGRAMS = supertuxkart |
242 |
+ |
243 |
+-AM_CPPFLAGS = -DSUPERTUXKART_DATADIR="\"$(datadir)/games/$(PACKAGE)/\"" \ |
244 |
++AM_CPPFLAGS = -DSUPERTUXKART_DATADIR="\"$(datadir)/$(PACKAGE)/\"" \ |
245 |
+ -I$(srcdir)/bullet/src/ -I$(srcdir)/enet/include/ |
246 |
+ |
247 |
+ supertuxkart_SOURCES = \ |
248 |
|
249 |
diff --git a/games-action/supertuxkart/metadata.xml b/games-action/supertuxkart/metadata.xml |
250 |
new file mode 100644 |
251 |
index 0000000..8e85283 |
252 |
--- /dev/null |
253 |
+++ b/games-action/supertuxkart/metadata.xml |
254 |
@@ -0,0 +1,13 @@ |
255 |
+<?xml version="1.0" encoding="UTF-8"?> |
256 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
257 |
+<pkgmetadata> |
258 |
+<herd>no-herd</herd> |
259 |
+<maintainer> |
260 |
+<email>azamat.hackimov@×××××.com</email> |
261 |
+<name>Azamat H. Hackimov</name> |
262 |
+</maintainer> |
263 |
+<longdescription lang="en"> |
264 |
+A kart racing game starring Tux, the linux penguin (TuxKart fork) |
265 |
+</longdescription> |
266 |
+</pkgmetadata> |
267 |
+ |
268 |
|
269 |
diff --git a/games-action/supertuxkart/supertuxkart-0.7.2.ebuild b/games-action/supertuxkart/supertuxkart-0.7.2.ebuild |
270 |
new file mode 100644 |
271 |
index 0000000..076ce73 |
272 |
--- /dev/null |
273 |
+++ b/games-action/supertuxkart/supertuxkart-0.7.2.ebuild |
274 |
@@ -0,0 +1,49 @@ |
275 |
+# Copyright 1999-2011 Gentoo Foundation |
276 |
+# Distributed under the terms of the GNU General Public License v2 |
277 |
+# $Header: /var/cvsroot/gentoo-x86/games-action/supertuxkart/supertuxkart-0.7.ebuild,v 1.5 2011/06/22 12:59:19 tupone Exp $ |
278 |
+ |
279 |
+EAPI=2 |
280 |
+inherit autotools flag-o-matic eutils games |
281 |
+ |
282 |
+DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)" |
283 |
+HOMEPAGE="http://supertuxkart.sourceforge.net/" |
284 |
+SRC_URI="mirror://sourceforge/supertuxkart/SuperTuxKart/${PV}/${P}-src.tar.bz2" |
285 |
+ |
286 |
+LICENSE="GPL-3 CCPL-Attribution-ShareAlike-3.0 CCPL-Attribution-2.0 CCPL-Sampling-Plus-1.0 public-domain as-is" |
287 |
+SLOT="0" |
288 |
+KEYWORDS="~amd64 ~x86" |
289 |
+IUSE="debug unicode" |
290 |
+ |
291 |
+RDEPEND=">=dev-games/irrlicht-1.8 |
292 |
+ virtual/opengl |
293 |
+ media-libs/freeglut |
294 |
+ virtual/glu |
295 |
+ net-libs/enet:1.3 |
296 |
+ media-libs/libvorbis |
297 |
+ media-libs/openal |
298 |
+ unicode? ( dev-libs/fribidi )" |
299 |
+DEPEND="${RDEPEND}" |
300 |
+ |
301 |
+src_prepare() { |
302 |
+ epatch "${FILESDIR}"/"${P}".patch |
303 |
+ rm -rf src/enet |
304 |
+ mkdir "${S}"/m4 |
305 |
+ eautoreconf |
306 |
+} |
307 |
+ |
308 |
+src_configure() { |
309 |
+ append-libs -lpng -ljpeg -lbz2 |
310 |
+ |
311 |
+ egamesconf \ |
312 |
+ --disable-dependency-tracking \ |
313 |
+ --disable-optimization \ |
314 |
+ $(use_enable debug) |
315 |
+} |
316 |
+ |
317 |
+src_install() { |
318 |
+ emake DESTDIR="${D}" install || die |
319 |
+ doicon data/${PN}_64.xpm |
320 |
+ make_desktop_entry ${PN} SuperTuxKart ${PN}_64 |
321 |
+ dodoc AUTHORS ChangeLog README TODO |
322 |
+ prepgamesdirs |
323 |
+} |