- openttd 1.2.2, rili 2.0.1, widelands-build17, uqm-0.7.0

+523 -10
+15 -6
pkgs/games/openttd/default.nix
··· 1 - {stdenv, fetchurl, SDL, libpng, zlib}: 1 + {stdenv, fetchurl, pkgconfig, SDL, libpng, zlib, xz, freetype, fontconfig}: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "openttd-${version}"; 5 - version = "0.6.0"; 5 + version = "1.2.2"; 6 6 7 7 src = fetchurl { 8 - url = "mirror://sf/openttd/${name}-source.tar.bz2"; 9 - md5 = "dcf63687c73ff56887049fedaf6c6019"; 8 + url = "http://binaries.openttd.org/releases/${version}/${name}-source.tar.xz"; 9 + sha256 = "158znfx389bhs9gd2hadnbc2a32z4ma1vz8704cmw9yh0fmhbcap"; 10 10 }; 11 11 12 - buildInputs = [SDL libpng]; 12 + buildInputs = [SDL libpng pkgconfig xz zlib freetype fontconfig]; 13 13 prefixKey = "--prefix-dir="; 14 - configureFlags = "--with-zlib=${zlib}/lib/libz.a"; 14 + 15 + configureFlags = '' 16 + --with-zlib=${zlib}/lib/libz.a 17 + --without-liblzo2 18 + ''; 19 + 15 20 makeFlags = "INSTALL_PERSONAL_DIR="; 21 + 22 + postInstall = '' 23 + mv $out/games/ $out/bin 24 + ''; 16 25 17 26 meta = { 18 27 description = ''OpenTTD is an open source clone of the Microprose game "Transport Tycoon Deluxe".'';
+24
pkgs/games/rili/default.nix
··· 1 + {stdenv, fetchurl, SDL_mixer, SDL, autoconf, automake}: 2 + 3 + stdenv.mkDerivation { 4 + name = "ri_li-2.0.1"; 5 + 6 + src = fetchurl { 7 + url = mirror://sourceforge/ri-li/Ri-li-2.0.1.tar.bz2; 8 + sha256 = "f71ccc20c37c601358d963e087ac0d524de8c68e96df09c3aac1ae65edd38dbd"; 9 + }; 10 + 11 + patches = [ ./moderinze_cpp.patch ]; 12 + 13 + preConfigure = '' 14 + export CPPFLAGS="-I${SDL}/include -I${SDL}/include/SDL -I${SDL_mixer}/include" 15 + ''; 16 + 17 + buildInputs = [SDL SDL_mixer autoconf automake]; 18 + 19 + meta = { 20 + homepage = http://ri-li.sourceforge.net; 21 + license = "GPL2+"; 22 + description = "Ri-li is an arcade game licensed under the GPL (General Public License). You drive a toy wood engine in many levels and you must collect all the coaches to win."; 23 + }; 24 + }
+391
pkgs/games/rili/moderinze_cpp.patch
··· 1 + diff -r -u Ri-li-2.0.1.orig/src/audio.cc Ri-li-2.0.1/src/audio.cc 2 + --- Ri-li-2.0.1.orig/src/audio.cc 2012-01-22 00:40:56.928609371 -0800 3 + +++ Ri-li-2.0.1/src/audio.cc 2012-01-22 00:28:33.360636539 -0800 4 + @@ -22,8 +22,8 @@ 5 + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 6 + 7 + #include <stdlib.h> 8 + -#include <iostream.h> 9 + -#include <string.h> 10 + +#include <iostream> 11 + +#include <string> 12 + 13 + #include "audio.h" 14 + #include "utils.h" 15 + @@ -57,7 +57,7 @@ 16 + char PathFile[512]; 17 + 18 + if(Mix_OpenAudio(22050,AUDIO_S16,1,1024)) { 19 + - cerr <<"Enable to init Sound card ! "<<SDL_GetError()<<endl; 20 + + std::cerr <<"Enable to init Sound card ! "<<SDL_GetError()<<std::endl; 21 + return false; 22 + } 23 + 24 + diff -r -u Ri-li-2.0.1.orig/src/ecran.cc Ri-li-2.0.1/src/ecran.cc 25 + --- Ri-li-2.0.1.orig/src/ecran.cc 2007-11-02 04:48:16.000000000 -0700 26 + +++ Ri-li-2.0.1/src/ecran.cc 2012-01-22 00:13:54.422798653 -0800 27 + @@ -21,7 +21,7 @@ 28 + // with this program; if not, write to the Free Software Foundation, Inc., 29 + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 30 + 31 + -#include <iostream.h> 32 + +#include <iostream> 33 + #include <stdio.h> 34 + #include <stdlib.h> 35 + #include <math.h> 36 + diff -r -u Ri-li-2.0.1.orig/src/editeur.cc Ri-li-2.0.1/src/editeur.cc 37 + --- Ri-li-2.0.1.orig/src/editeur.cc 2007-11-02 04:48:17.000000000 -0700 38 + +++ Ri-li-2.0.1/src/editeur.cc 2012-01-22 00:28:59.632635579 -0800 39 + @@ -25,10 +25,10 @@ 40 + #include <windows.h> 41 + #endif 42 + 43 + -#include <iostream.h> 44 + +#include <iostream> 45 + #include <stdio.h> 46 + #include <stdlib.h> 47 + -#include <string.h> 48 + +#include <string> 49 + #include <math.h> 50 + #include <SDL/SDL.h> 51 + 52 + @@ -374,7 +374,7 @@ 53 + 54 + // Sauve le niveau 55 + if(Niveau.Save()==false) { 56 + - cerr <<"ERREUR Saving levels!"<<endl; 57 + + std::cerr <<"ERREUR Saving levels!"<<std::endl; 58 + exit(-1); 59 + } 60 + 61 + diff -r -u Ri-li-2.0.1.orig/src/jeux.cc Ri-li-2.0.1/src/jeux.cc 62 + --- Ri-li-2.0.1.orig/src/jeux.cc 2007-11-02 04:48:17.000000000 -0700 63 + +++ Ri-li-2.0.1/src/jeux.cc 2012-01-22 00:14:08.422798143 -0800 64 + @@ -25,10 +25,10 @@ 65 + #include <windows.h> 66 + #endif 67 + 68 + -#include <iostream.h> 69 + +#include <iostream> 70 + #include <stdio.h> 71 + #include <stdlib.h> 72 + -#include <string.h> 73 + +#include <string> 74 + #include <math.h> 75 + #include <SDL/SDL.h> 76 + 77 + diff -r -u Ri-li-2.0.1.orig/src/loco.cc Ri-li-2.0.1/src/loco.cc 78 + --- Ri-li-2.0.1.orig/src/loco.cc 2007-11-02 04:48:18.000000000 -0700 79 + +++ Ri-li-2.0.1/src/loco.cc 2012-01-22 00:14:17.878797797 -0800 80 + @@ -21,10 +21,10 @@ 81 + // with this program; if not, write to the Free Software Foundation, Inc., 82 + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 83 + 84 + -#include <iostream.h> 85 + +#include <iostream> 86 + #include <stdio.h> 87 + #include <stdlib.h> 88 + -#include <string.h> 89 + +#include <string> 90 + #include <math.h> 91 + #include "preference.h" 92 + #include "loco.h" 93 + diff -r -u Ri-li-2.0.1.orig/src/main.cc Ri-li-2.0.1/src/main.cc 94 + --- Ri-li-2.0.1.orig/src/main.cc 2007-11-02 04:48:19.000000000 -0700 95 + +++ Ri-li-2.0.1/src/main.cc 2012-01-22 00:29:40.080634136 -0800 96 + @@ -23,8 +23,8 @@ 97 + 98 + #include <stdio.h> 99 + #include <stdlib.h> 100 + -#include <iostream.h> 101 + -#include <string.h> 102 + +#include <iostream> 103 + +#include <string> 104 + #include <SDL/SDL.h> 105 + #include <SDL/SDL_mixer.h> 106 + 107 + @@ -115,7 +115,7 @@ 108 + 109 + // Initilise SDL 110 + if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_AUDIO|SDL_INIT_NOPARACHUTE) < 0 ) { 111 + - cerr <<"Impossible d'initialiser SDL:"<<SDL_GetError()<<endl; 112 + + std::cerr <<"Impossible d'initialiser SDL:"<<SDL_GetError()<<std::endl; 113 + exit(-1); 114 + } 115 + // Ferme le programme correctement quant quit 116 + @@ -125,7 +125,7 @@ 117 + sdlVideoInfo=(SDL_VideoInfo*)SDL_GetVideoInfo(); 118 + 119 + if(sdlVideoInfo->vfmt->BitsPerPixel==8) { 120 + - cerr <<"Impossible d'utiliser 8bits pour la vid�o !"<<endl; 121 + + std::cerr <<"Impossible d'utiliser 8bits pour la vid�o !"<<std::endl; 122 + exit(-1); 123 + } 124 + 125 + @@ -145,7 +145,7 @@ 126 + sdlVideo=SDL_SetVideoMode(800,600,sdlVideoInfo->vfmt->BitsPerPixel,vOption); 127 + 128 + if(sdlVideo==NULL) { 129 + - cerr <<"Impossible de passer dans le mode vid�o 800x600 !"<<endl; 130 + + std::cerr <<"Impossible de passer dans le mode vid�o 800x600 !"<<std::endl; 131 + exit(-1); 132 + } 133 + // Change le nom de la fenetre 134 + diff -r -u Ri-li-2.0.1.orig/src/menu.cc Ri-li-2.0.1/src/menu.cc 135 + --- Ri-li-2.0.1.orig/src/menu.cc 2007-11-02 04:48:19.000000000 -0700 136 + +++ Ri-li-2.0.1/src/menu.cc 2012-01-22 00:30:04.752633198 -0800 137 + @@ -21,10 +21,10 @@ 138 + // with this program; if not, write to the Free Software Foundation, Inc., 139 + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 140 + 141 + -#include <iostream.h> 142 + +#include <iostream> 143 + #include <stdio.h> 144 + #include <stdlib.h> 145 + -#include <string.h> 146 + +#include <string> 147 + #include "preference.h" 148 + #include "menu.h" 149 + #include "sprite.h" 150 + @@ -92,7 +92,7 @@ 151 + // Teste la resolution video 152 + sdlVideoInfo=(SDL_VideoInfo*)SDL_GetVideoInfo(); 153 + if(sdlVideoInfo->vfmt->BitsPerPixel==8) { 154 + - cerr <<"Impossible d'utiliser 8bits pour la vid�o !"<<endl; 155 + + std::cerr <<"Impossible d'utiliser 8bits pour la vid�o !"<<std::endl; 156 + exit(-1); 157 + } 158 + 159 + @@ -112,7 +112,7 @@ 160 + if(Pref.FullScreen) vOption|=SDL_FULLSCREEN; 161 + sdlVideo=SDL_SetVideoMode(800,600,sdlVideoInfo->vfmt->BitsPerPixel,vOption); 162 + if(sdlVideo==NULL) { 163 + - cerr <<"Impossible de passer dans le mode vid�o 800x600 !"<<endl; 164 + + std::cerr <<"Impossible de passer dans le mode vid�o 800x600 !"<<std::endl; 165 + exit(-1); 166 + } 167 + 168 + diff -r -u Ri-li-2.0.1.orig/src/mouse.cc Ri-li-2.0.1/src/mouse.cc 169 + --- Ri-li-2.0.1.orig/src/mouse.cc 2007-11-02 04:48:20.000000000 -0700 170 + +++ Ri-li-2.0.1/src/mouse.cc 2012-01-22 00:14:36.438797120 -0800 171 + @@ -21,7 +21,7 @@ 172 + // with this program; if not, write to the Free Software Foundation, Inc., 173 + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 174 + 175 + -#include <iostream.h> 176 + +#include <iostream> 177 + #include <stdio.h> 178 + #include "mouse.h" 179 + #include "preference.h" 180 + diff -r -u Ri-li-2.0.1.orig/src/sprite.cc Ri-li-2.0.1/src/sprite.cc 181 + --- Ri-li-2.0.1.orig/src/sprite.cc 2007-11-02 04:48:20.000000000 -0700 182 + +++ Ri-li-2.0.1/src/sprite.cc 2012-01-22 00:30:43.640631779 -0800 183 + @@ -21,10 +21,10 @@ 184 + // with this program; if not, write to the Free Software Foundation, Inc., 185 + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 186 + 187 + -#include <iostream.h> 188 + +#include <iostream> 189 + #include <stdio.h> 190 + #include <stdlib.h> 191 + -#include <string.h> 192 + +#include <string> 193 + #include <math.h> 194 + #include "sprite.h" 195 + #include "preference.h" 196 + @@ -84,7 +84,7 @@ 197 + strcpy(PathFile,Langue[Pref.Langue]); 198 + GetPath(PathFile); 199 + if(FileExiste(PathFile)==false) { 200 + - cerr <<"Impossible de trouver "<<Langue[Pref.Langue]<<endl; 201 + + std::cerr <<"Impossible de trouver "<<Langue[Pref.Langue]<<std::endl; 202 + return false; 203 + } 204 + L=ChargeFichier(PathFile,Buf); 205 + @@ -128,7 +128,7 @@ 206 + // *** Charge le fichier des langues *** 207 + // ************************************* 208 + if(FileExiste(PathFile)==false) { 209 + - cerr <<"Impossible de trouver 'language.dat'"<<endl; 210 + + std::cerr <<"Impossible de trouver 'language.dat'"<<std::endl; 211 + return false; 212 + } 213 + L=ChargeFichier(PathFile,Buf); 214 + @@ -163,7 +163,7 @@ 215 + strcpy(PathFile,"sprites.dat"); 216 + GetPath(PathFile); 217 + if(FileExiste(PathFile)==false) { 218 + - cerr <<"Impossible de trouver 'sprites.dat'"<<endl; 219 + + std::cerr <<"Impossible de trouver 'sprites.dat'"<<std::endl; 220 + return false; 221 + } 222 + L=ChargeFichier(PathFile,Buf); 223 + @@ -352,7 +352,7 @@ 224 + Image[i]=SDL_CreateRGBSurface((Dim[i].bpp-3)*SDL_SRCALPHA,Dim[i].L,Dim[i].H,Dim[i].bpp*8, 225 + 0xff,0xff00,0xff0000,0xff000000*(Dim[i].bpp-3)); 226 + if(Image[i]<=NULL) { 227 + - cerr <<"Impossible de cr�er une Surface SDL!"<<endl; 228 + + std::cerr <<"Impossible de cr�er une Surface SDL!"<<std::endl; 229 + return false; 230 + } 231 + 232 + @@ -486,7 +486,7 @@ 233 + Image[0]=SDL_CreateRGBSurface((Dim[0].bpp-3)*SDL_SRCALPHA,Dim[0].L,Dim[0].H,Dim[0].bpp*8, 234 + 0xff,0xff00,0xff0000,0xff000000*(Dim[0].bpp-3)); 235 + if(Image[0]<=NULL) { 236 + - cerr <<"Impossible de cr�er une Surface SDL!"<<endl; 237 + + std::cerr <<"Impossible de cr�er une Surface SDL!"<<std::endl; 238 + return false; 239 + } 240 + return true; 241 + diff -r -u Ri-li-2.0.1.orig/src/tableau.cc Ri-li-2.0.1/src/tableau.cc 242 + --- Ri-li-2.0.1.orig/src/tableau.cc 2007-11-02 04:48:21.000000000 -0700 243 + +++ Ri-li-2.0.1/src/tableau.cc 2012-01-22 00:14:50.710796598 -0800 244 + @@ -21,7 +21,7 @@ 245 + // with this program; if not, write to the Free Software Foundation, Inc., 246 + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 247 + 248 + -#include <iostream.h> 249 + +#include <iostream> 250 + #include <stdio.h> 251 + #include <stdlib.h> 252 + #include "preference.h" 253 + diff -r -u Ri-li-2.0.1.orig/src/utils.cc Ri-li-2.0.1/src/utils.cc 254 + --- Ri-li-2.0.1.orig/src/utils.cc 2007-11-02 04:48:22.000000000 -0700 255 + +++ Ri-li-2.0.1/src/utils.cc 2012-01-22 00:31:30.944630051 -0800 256 + @@ -21,10 +21,10 @@ 257 + // with this program; if not, write to the Free Software Foundation, Inc., 258 + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 259 + 260 + -#include <iostream.h> 261 + +#include <iostream> 262 + #include <stdio.h> 263 + #include <stdlib.h> 264 + -#include <string.h> 265 + +#include <string> 266 + 267 + #ifdef WINDOWS 268 + #include <windows.h> 269 + @@ -77,7 +77,7 @@ 270 + 271 + file=fopen(Path,"r"); 272 + if(!file) { 273 + - cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<endl; 274 + + std::cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<std::endl; 275 + perror("fopen"); 276 + return -1; 277 + } 278 + @@ -93,7 +93,7 @@ 279 + 280 + Buf=new unsigned char [L+1]; 281 + if(Buf==NULL) { 282 + - cerr <<"ERREUR: Memoire insuffisante!"<<endl; 283 + + std::cerr <<"ERREUR: Memoire insuffisante!"<<std::endl; 284 + fclose(file); 285 + return -1; 286 + } 287 + @@ -104,7 +104,7 @@ 288 + while(Compt>1024) { 289 + AfficheChargeur(); 290 + if( fread(Po,1,1024,file) != 1024 ) { 291 + - cerr <<"ERREUR de lecture du fichier '"<<Path<<"'"<<endl; 292 + + std::cerr <<"ERREUR de lecture du fichier '"<<Path<<"'"<<std::endl; 293 + perror("fread"); 294 + fclose(file); 295 + delete [] Buf; 296 + @@ -131,13 +131,13 @@ 297 + 298 + file=_lopen(Path,OF_READ); 299 + if(file==-1) { 300 + - cerr <<"Impossible d'ouvrir "<<Path<<endl; 301 + + std::cerr <<"Impossible d'ouvrir "<<Path<<std::endl; 302 + exit(-1); 303 + } 304 + 305 + long L=(long)_llseek(file,0,SEEK_END); 306 + if(L==-1) { 307 + - cerr <<"Impossible de trouver la longueur du fichier"<<endl; 308 + + std::cerr <<"Impossible de trouver la longueur du fichier"<<std::endl; 309 + perror("lseek"); 310 + _lclose(file); 311 + return -1; 312 + @@ -146,7 +146,7 @@ 313 + 314 + Buf=new unsigned char [L+1]; 315 + if(Buf==NULL) { 316 + - cerr <<"ERREUR: Memoire insuffisante!"<<endl; 317 + + std::cerr <<"ERREUR: Memoire insuffisante!"<<std::endl; 318 + _lclose(file); 319 + return -1; 320 + } 321 + @@ -169,14 +169,14 @@ 322 + 323 + file=fopen(Path,"w"); 324 + if(!file) { 325 + - cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<endl; 326 + + std::cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<std::endl; 327 + perror("fopen"); 328 + return false; 329 + } 330 + 331 + while(L>512) { 332 + if( fwrite(Buf,1,512,file) != 512 ) { 333 + - cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<endl; 334 + + std::cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<std::endl; 335 + perror("fwrite"); 336 + fclose(file); 337 + return false; 338 + @@ -187,7 +187,7 @@ 339 + 340 + if(L>0) { 341 + if( fwrite(Buf,1,(size_t)L,file) != (size_t)L ) { 342 + - cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<endl; 343 + + std::cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<std::endl; 344 + perror("fwrite"); 345 + fclose(file); 346 + return false; 347 + @@ -208,7 +208,7 @@ 348 + 349 + file=_lcreat(Path,0); 350 + if(!file) { 351 + - cerr <<"ERREUR: Impossible de cr�er le fichier '"<<Path<<"'"<<endl; 352 + + std::cerr <<"ERREUR: Impossible de cr�er le fichier '"<<Path<<"'"<<std::endl; 353 + return false; 354 + } 355 + 356 + @@ -216,7 +216,7 @@ 357 + _lclose(file); 358 + 359 + if(Lec!=L) { 360 + - cerr <<"Probl�me d'ecriture du fichier '"<<Path<<"' ecris="<<Lec<<" au lieux de ="<<L<<endl; 361 + + std::cerr <<"Probl�me d'ecriture du fichier '"<<Path<<"' ecris="<<Lec<<" au lieux de ="<<L<<std::endl; 362 + return false; 363 + } 364 + 365 + @@ -250,7 +250,7 @@ 366 + sprintf(Path,"/usr/share/games/Ri-li/%s",Provi); 367 + if(FileExiste(Path)) return; 368 + 369 + - cerr <<"Impossible de trouver le fichier '"<<Provi<<endl; 370 + + std::cerr <<"Impossible de trouver le fichier '"<<Provi<<std::endl; 371 + exit(-1); 372 + } 373 + #endif 374 + @@ -266,7 +266,7 @@ 375 + sprintf(Path,"PROGDIR:%s",Provi); 376 + if(FileExiste(Path)) return; 377 + 378 + - cerr <<"Impossible de trouver le fichier '"<<Path<<endl; 379 + + std::cerr <<"Impossible de trouver le fichier '"<<Path<<std::endl; 380 + exit(-1); 381 + } 382 + #endif 383 + @@ -282,7 +282,7 @@ 384 + sprintf(Path,"Ri-li.app/Contents/Resources/%s",Provi); 385 + if(FileExiste(Path)) return; 386 + 387 + - cerr <<"Impossible de trouver le fichier '"<<Path<<endl; 388 + + std::cerr <<"Impossible de trouver le fichier '"<<Path<<std::endl; 389 + exit(-1); 390 + } 391 + #endif
+71
pkgs/games/uqm/default.nix
··· 1 + {stdenv, fetchurl 2 + , pkgconfig, mesa 3 + , SDL, SDL_image, libpng, zlib, libvorbis, libogg, libmikmod, unzip 4 + }: 5 + 6 + stdenv.mkDerivation rec { 7 + name = "uqm-${version}"; 8 + version = "0.7.0"; 9 + 10 + src = fetchurl { 11 + url = "mirror://sf/sc2/uqm-${version}-source.tgz"; 12 + sha256 = "a3695c5f7f0be7ec9c0f80ec569907b382023a1fee6e635532bd53b7b53bb221"; 13 + }; 14 + 15 + content = fetchurl { 16 + url = "mirror://sf/sc2/uqm-${version}-content.uqm"; 17 + sha256 = "b8f6db8ba29f0628fb1d5c233830896b19f441aee3744bda671ea264b44da3bf"; 18 + }; 19 + 20 + voice = fetchurl { 21 + url = "mirror://sf/sc2/uqm-${version}-voice.uqm"; 22 + sha256 = "bcccf801b4ba37594ff6217b292744ea586ee2d447e927804842ccae8b73c979"; 23 + }; 24 + 25 + music = fetchurl { 26 + url = "mirror://sf/sc2/uqm-${version}-3domusic.uqm"; 27 + sha256 = "c57085e64dad4bddf8a679a9aa2adf63f2156d5f6cbabe63af80519033dbcb82"; 28 + }; 29 + 30 + 31 + /* uses pthread_cancel(), which requires libgcc_s.so.1 to be 32 + loadable at run-time. Adding the flag below ensures that the 33 + library can be found. Obviously, though, this is a hack. */ 34 + NIX_LDFLAGS="-lgcc_s"; 35 + 36 + buildInputs = [SDL SDL_image libpng libvorbis libogg libmikmod unzip pkgconfig mesa]; 37 + 38 + postUnpack = '' 39 + mkdir -p uqm-${version}/content/packages 40 + mkdir -p uqm-${version}/content/addons 41 + cp $content uqm-${version}/content/packages/uqm-0.7.0-content.uqm 42 + cp $music uqm-${version}/content/addons/uqm-0.7.0-3domusic.uqm 43 + cp $voice uqm-${version}/content/addons/uqm-0.7.0-voice.uqm 44 + ''; 45 + 46 + /* uqm has a 'unique' build system with a root script incidentally called 47 + * 'build.sh'. */ 48 + 49 + configurePhase = '' 50 + echo "INPUT_install_prefix_VALUE='$out'" >> config.state 51 + echo "INPUT_install_bindir_VALUE='$out/bin'" >> config.state 52 + echo "INPUT_install_libdir_VALUE='$out/lib'" >> config.state 53 + echo "INPUT_install_sharedir_VALUE='$out/share'" >> config.state 54 + PREFIX=$out ./build.sh uqm config 55 + ''; 56 + 57 + buildPhase = '' 58 + ./build.sh uqm 59 + ''; 60 + 61 + installPhase = '' 62 + ./build.sh uqm install 63 + sed -i $out/bin/uqm -e "s%/usr/local/games/%$out%g" 64 + ''; 65 + 66 + meta = { 67 + description = ''Urquan Masters is an open source clone of the Classic top-down space battle Star Cotnrol ''; 68 + homepage = http://sc2.sourceforge.net/; 69 + license = "GPLv2"; 70 + }; 71 + }
+11
pkgs/games/widelands/boost_and_cmake_die_die_die.patch
··· 1 + --- widelands-build17-src.old/CMakeLists.txt 2012-04-23 02:46:49.000000000 -0700 2 + +++ widelands-build17-src/CMakeLists.txt 2012-07-14 19:49:14.000000000 -0700 3 + @@ -140,8 +140,6 @@ 4 + else (WL_UNIT_TESTS) 5 + message(STATUS "Disabled Unit Tests") 6 + set (Boost_FIND_COMPONENTS signals) 7 + - set (Boost_USE_STATIC_LIBS ON) 8 + - set (Boost_USE_MULTITHREADED ON) 9 + set (Boost_DETAILED_FAILURE_MSG ON) 10 + find_package(Boost 1.35.0 COMPONENTS signals REQUIRED) 11 + endif (WL_UNIT_TESTS)
+7 -4
pkgs/games/widelands/default.nix
··· 13 13 (builtins.attrNames (builtins.removeAttrs x helperArgNames)); 14 14 sourceInfo = rec { 15 15 baseName="widelands"; 16 - version="build16"; 16 + version="build17"; 17 17 name="${baseName}-${version}"; 18 18 project="${baseName}"; 19 - url="http://launchpad.net/${project}/${version}/${version}/+download/${name}-src.tar.bz2"; 20 - hash="0pb2d73c6hynhp1x54rcfbibrrri7lyxjybd1hicn503qcakrnyq"; 19 + url="https://launchpadlibrarian.net/102893896/widelands-build17-src.tar.bz2"; 20 + hash="be48b3b8f342a537b39a3aec2f7702250a6a47e427188ba3bece67d7d90f3cc5"; 21 21 }; 22 22 in 23 23 rec { ··· 30 30 inherit buildInputs; 31 31 32 32 /* doConfigure should be removed if not needed */ 33 - phaseNames = ["killBuildDir" "doCmake" "doMakeInstall" "createScript"]; 33 + phaseNames = ["killBuildDir" "doPatch" "doCmake" "doMakeInstall" "createScript"]; 34 + 35 + patches = [ ./boost_and_cmake_die_die_die.patch ]; 34 36 35 37 killBuildDir = a.fullDepEntry '' 36 38 rm -r build ··· 38 40 39 41 cmakeFlags = [ 40 42 "-DLUA_LIBRARIES=-llua" 43 + "-DWL_PORTABLE=true" 41 44 ]; 42 45 43 46 createScript = a.fullDepEntry ''
+4
pkgs/top-level/all-packages.nix
··· 8177 8177 mygui = myguiSvn; 8178 8178 }; 8179 8179 8180 + rili = callPackage ../games/rili { }; 8181 + 8180 8182 rogue = callPackage ../games/rogue { }; 8181 8183 8182 8184 sauerbraten = callPackage ../games/sauerbraten {}; ··· 8256 8258 ultrastardx = callPackage ../games/ultrastardx { 8257 8259 lua = lua5; 8258 8260 }; 8261 + 8262 + uqm = callPackage ../games/uqm { }; 8259 8263 8260 8264 urbanterror = callPackage ../games/urbanterror { }; 8261 8265