summary refs log tree commit diff
path: root/pkgs/games/privateer
diff options
context:
space:
mode:
authorFlorian Friesdorf <flo@chaoflow.net>2012-01-04 23:05:51 +0000
committerFlorian Friesdorf <flo@chaoflow.net>2012-01-04 23:05:51 +0000
commit68db88bbf80ca068f856ad4cb09a5977d9a4ff1f (patch)
treec9fe469bd566aa21f5670870cd0575857a0de739 /pkgs/games/privateer
parent2c9461ebddfb19633c1266aed9e2cb6cb47e239e (diff)
downloadnixpkgs-68db88bbf80ca068f856ad4cb09a5977d9a4ff1f.tar
nixpkgs-68db88bbf80ca068f856ad4cb09a5977d9a4ff1f.tar.gz
nixpkgs-68db88bbf80ca068f856ad4cb09a5977d9a4ff1f.tar.bz2
nixpkgs-68db88bbf80ca068f856ad4cb09a5977d9a4ff1f.tar.lz
nixpkgs-68db88bbf80ca068f856ad4cb09a5977d9a4ff1f.tar.xz
nixpkgs-68db88bbf80ca068f856ad4cb09a5977d9a4ff1f.tar.zst
nixpkgs-68db88bbf80ca068f856ad4cb09a5977d9a4ff1f.zip
wip: privateer
svn path=/nixpkgs/trunk/; revision=31305
Diffstat (limited to 'pkgs/games/privateer')
-rw-r--r--pkgs/games/privateer/0001-fix-VSFile-constructor.patch25
-rw-r--r--pkgs/games/privateer/default.nix28
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/games/privateer/0001-fix-VSFile-constructor.patch b/pkgs/games/privateer/0001-fix-VSFile-constructor.patch
new file mode 100644
index 00000000000..05b02fe5d73
--- /dev/null
+++ b/pkgs/games/privateer/0001-fix-VSFile-constructor.patch
@@ -0,0 +1,25 @@
+From e779a2b8d53e7e4721ce5ddb8e8b1caa753b66dd Mon Sep 17 00:00:00 2001
+From: Florian Friesdorf <flo@chaoflow.net>
+Date: Wed, 4 Jan 2012 23:32:19 +0100
+Subject: [PATCH] fix VSFile constructor
+
+---
+ src/vsfilesystem.h |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/vsfilesystem.h b/src/vsfilesystem.h
+index 4bb7a66..71bf9b9 100644
+--- a/src/vsfilesystem.h
++++ b/src/vsfilesystem.h
+@@ -291,7 +291,7 @@ namespace VSFileSystem
+ 			VSFile();
+ 			VSFile( const char * buffer, long size, VSFileType type=ZoneBuffer, VSFileMode=ReadOnly);
+ 			VSFile( const char * filename, VSFileType type=UnknownFile, VSFileMode=ReadOnly);
+-			VSFile( const string &filename, VSFileType type=UnknownFile) { VSFile::VSFile( filename.c_str(), type); }
++			VSFile( const string &filename, VSFileType type=UnknownFile) { VSFile( filename.c_str(), type); }
+   			~VSFile();
+ 
+ 			FILE *	GetFP() { return this->fp; } // This is still needed for special cases (when loading PNG files)
+-- 
+1.7.8
+
diff --git a/pkgs/games/privateer/default.nix b/pkgs/games/privateer/default.nix
new file mode 100644
index 00000000000..bed61567d4b
--- /dev/null
+++ b/pkgs/games/privateer/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchsvn, boost, cmake, ffmpeg, freeglut, glib,
+  gtk, libjpeg, libpng, libpthreadstubs, libvorbis, libXau, libXdmcp,
+  libXmu, mesa, openal, pixman, pkgconfig, python27Full, SDL }:
+
+stdenv.mkDerivation {
+  name = "privateer-1.03";
+
+  src = fetchsvn {
+    #url = "mirror://sourceforge/project/privateer/Wing%20Commander%20Privateer/Privateer%20Gemini%20Gold%201.03/PrivateerGold1.03.bz2.bin";
+    url = "https://privateer.svn.sourceforge.net/svnroot/privateer/privgold/trunk/engine";
+    rev = 294;
+    sha256 = "e1759087d4565d3fc95e5c87d0f6ddf36b2cd5befec5695ec56ed5f3cd144c63";
+  };
+
+  buildInputs =
+    [ boost cmake ffmpeg freeglut glib gtk libjpeg libpng
+      libpthreadstubs libvorbis libXau libXdmcp libXmu mesa openal
+      pixman pkgconfig python27Full SDL ];
+
+  patches = [ ./0001-fix-VSFile-constructor.patch ];
+
+  meta = {
+    homepage = http://privateer.sourceforge.net/;
+    longDescription = "";
+    maintainers = with stdenv.lib.maintainers; [ chaoflow ];
+    platforms = stdenv.lib.platforms.gnu;
+  };
+}