summary refs log tree commit diff
path: root/pkgs/development/libraries/mysocketw
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-02-24 21:13:14 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-02-24 21:13:14 +0000
commitd6f6caea6be6526a8cef8e3c738b8504efb98bb1 (patch)
tree111eb1424d0619cde3f8788516b170afc26e67b3 /pkgs/development/libraries/mysocketw
parent0812ff0e57c00fd757d29d2290834cb733fc23e5 (diff)
downloadnixpkgs-d6f6caea6be6526a8cef8e3c738b8504efb98bb1.tar
nixpkgs-d6f6caea6be6526a8cef8e3c738b8504efb98bb1.tar.gz
nixpkgs-d6f6caea6be6526a8cef8e3c738b8504efb98bb1.tar.bz2
nixpkgs-d6f6caea6be6526a8cef8e3c738b8504efb98bb1.tar.lz
nixpkgs-d6f6caea6be6526a8cef8e3c738b8504efb98bb1.tar.xz
nixpkgs-d6f6caea6be6526a8cef8e3c738b8504efb98bb1.tar.zst
nixpkgs-d6f6caea6be6526a8cef8e3c738b8504efb98bb1.zip
Updating angelscript to 2.22.1.
Adding mysocketw.

Adding ogre-paged.

Fixing the caelum licence.


svn path=/nixpkgs/trunk/; revision=32549
Diffstat (limited to 'pkgs/development/libraries/mysocketw')
-rw-r--r--pkgs/development/libraries/mysocketw/default.nix23
-rw-r--r--pkgs/development/libraries/mysocketw/gcc.patch13
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/mysocketw/default.nix b/pkgs/development/libraries/mysocketw/default.nix
new file mode 100644
index 00000000000..c1cada63abe
--- /dev/null
+++ b/pkgs/development/libraries/mysocketw/default.nix
@@ -0,0 +1,23 @@
+{stdenv, fetchurl, openssl}:
+
+stdenv.mkDerivation rec {
+  name = "mysocketw-031026";
+  src = fetchurl {
+    url = http://www.digitalfanatics.org/cal/socketw/files/SocketW031026.tar.gz;
+    sha256 = "0crinikhdl7xihzmc3k3k41pgxy16d5ci8m9sza1lbibns7pdwj4";
+  };
+
+  patches = [ ./gcc.patch ];
+
+  configurePhase = ''
+    sed -i s,/usr/local,$out, Makefile.conf
+  '';
+
+  buildInputs = [ openssl ];
+
+  meta = {
+    description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
+    license = "LGPLv2.1+";
+    platforms = stdenv.lib.platforms.all;
+  };
+}
diff --git a/pkgs/development/libraries/mysocketw/gcc.patch b/pkgs/development/libraries/mysocketw/gcc.patch
new file mode 100644
index 00000000000..7779a18fa52
--- /dev/null
+++ b/pkgs/development/libraries/mysocketw/gcc.patch
@@ -0,0 +1,13 @@
+I picked it up from:
+http://www.rigsofrods.com/wiki/images/c/c0/Socketw.patch
+
+--- a/src/sw_base.cxx.old	2009-12-19 21:19:31.057051328 -0800
++++ b/src/sw_base.cxx	2009-12-19 21:19:44.939551918 -0800
+@@ -19,6 +19,7 @@
+ #include <time.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <stdlib.h>
+ 
+ #ifndef __WIN32__
+   #include <netdb.h>