wip: privateer

svn path=/nixpkgs/trunk/; revision=31305

+55
+25
pkgs/games/privateer/0001-fix-VSFile-constructor.patch
··· 1 + From e779a2b8d53e7e4721ce5ddb8e8b1caa753b66dd Mon Sep 17 00:00:00 2001 2 + From: Florian Friesdorf <flo@chaoflow.net> 3 + Date: Wed, 4 Jan 2012 23:32:19 +0100 4 + Subject: [PATCH] fix VSFile constructor 5 + 6 + --- 7 + src/vsfilesystem.h | 2 +- 8 + 1 files changed, 1 insertions(+), 1 deletions(-) 9 + 10 + diff --git a/src/vsfilesystem.h b/src/vsfilesystem.h 11 + index 4bb7a66..71bf9b9 100644 12 + --- a/src/vsfilesystem.h 13 + +++ b/src/vsfilesystem.h 14 + @@ -291,7 +291,7 @@ namespace VSFileSystem 15 + VSFile(); 16 + VSFile( const char * buffer, long size, VSFileType type=ZoneBuffer, VSFileMode=ReadOnly); 17 + VSFile( const char * filename, VSFileType type=UnknownFile, VSFileMode=ReadOnly); 18 + - VSFile( const string &filename, VSFileType type=UnknownFile) { VSFile::VSFile( filename.c_str(), type); } 19 + + VSFile( const string &filename, VSFileType type=UnknownFile) { VSFile( filename.c_str(), type); } 20 + ~VSFile(); 21 + 22 + FILE * GetFP() { return this->fp; } // This is still needed for special cases (when loading PNG files) 23 + -- 24 + 1.7.8 25 +
+28
pkgs/games/privateer/default.nix
··· 1 + { stdenv, fetchsvn, boost, cmake, ffmpeg, freeglut, glib, 2 + gtk, libjpeg, libpng, libpthreadstubs, libvorbis, libXau, libXdmcp, 3 + libXmu, mesa, openal, pixman, pkgconfig, python27Full, SDL }: 4 + 5 + stdenv.mkDerivation { 6 + name = "privateer-1.03"; 7 + 8 + src = fetchsvn { 9 + #url = "mirror://sourceforge/project/privateer/Wing%20Commander%20Privateer/Privateer%20Gemini%20Gold%201.03/PrivateerGold1.03.bz2.bin"; 10 + url = "https://privateer.svn.sourceforge.net/svnroot/privateer/privgold/trunk/engine"; 11 + rev = 294; 12 + sha256 = "e1759087d4565d3fc95e5c87d0f6ddf36b2cd5befec5695ec56ed5f3cd144c63"; 13 + }; 14 + 15 + buildInputs = 16 + [ boost cmake ffmpeg freeglut glib gtk libjpeg libpng 17 + libpthreadstubs libvorbis libXau libXdmcp libXmu mesa openal 18 + pixman pkgconfig python27Full SDL ]; 19 + 20 + patches = [ ./0001-fix-VSFile-constructor.patch ]; 21 + 22 + meta = { 23 + homepage = http://privateer.sourceforge.net/; 24 + longDescription = ""; 25 + maintainers = with stdenv.lib.maintainers; [ chaoflow ]; 26 + platforms = stdenv.lib.platforms.gnu; 27 + }; 28 + }
+2
pkgs/top-level/all-packages.nix
··· 1262 1262 1263 1263 radvd = callPackage ../tools/networking/radvd { }; 1264 1264 1265 + privateer = callPackage ../games/privateer { }; 1266 + 1265 1267 rtmpdump = callPackage ../tools/video/rtmpdump { }; 1266 1268 1267 1269 recutils = callPackage ../tools/misc/recutils { };