--- box2d-2.0.1+dfsg1.orig/debian/libbox2d0.install
+++ box2d-2.0.1+dfsg1/debian/libbox2d0.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/lib*.so.* usr/lib/
--- box2d-2.0.1+dfsg1.orig/debian/copyright
+++ box2d-2.0.1+dfsg1/debian/copyright
@@ -0,0 +1,34 @@
+This package was debianized by Miriam Ruiz <little_miry@yahoo.es> on
+Mon, 05 Jan 2009 19:51:00 +0100.
+
+It was downloaded from http://sourceforge.net/projects/box2d
+
+Upstream Author:
+
+    Erin Catto
+
+Copyright:
+
+    Copyright (c) 2006-2007 Erin Catto - http://www.gphysics.com
+
+License:
+
+    This software is provided 'as-is', without any express or implied
+    warranty.  In no event will the authors be held liable for any damages
+    arising from the use of this software.
+    
+    Permission is granted to anyone to use this software for any purpose,
+    including commercial applications, and to alter it and redistribute it
+    freely, subject to the following restrictions:
+    
+    1. The origin of this software must not be misrepresented; you must not
+       claim that you wrote the original software. If you use this software
+       in a product, an acknowledgment in the product documentation would be
+       appreciated but is not required.
+    2. Altered source versions must be plainly marked as such, and must not be
+       misrepresented as being the original software.
+    3. This notice may not be removed or altered from any source distribution.
+
+
+The Debian packaging is copyright 2009, Miriam Ruiz <little_miry@yahoo.es> and
+is licensed under the same license as the program, see above.
--- box2d-2.0.1+dfsg1.orig/debian/changelog
+++ box2d-2.0.1+dfsg1/debian/changelog
@@ -0,0 +1,15 @@
+box2d (2.0.1+dfsg1-1.4.201403151038) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Sat, 15 Mar 2014 10:38:26 +0100
+
+box2d (2.0.1+dfsg1-1) unstable; urgency=low
+
+  [ Miriam Ruiz ]
+  * Initial release (Closes: #496991)
+
+  [ Barry deFreese ]
+  * Add myself to uploaders.
+
+ -- Barry deFreese <bdefreese@debian.org>  Sun, 12 Apr 2009 14:33:33 -0400
--- box2d-2.0.1+dfsg1.orig/debian/compat
+++ box2d-2.0.1+dfsg1/debian/compat
@@ -0,0 +1 @@
+7
--- box2d-2.0.1+dfsg1.orig/debian/libbox2d-dev.install
+++ box2d-2.0.1+dfsg1/debian/libbox2d-dev.install
@@ -0,0 +1,5 @@
+debian/tmp/usr/include/* usr/include/
+debian/tmp/usr/lib/lib*.a usr/lib/
+debian/tmp/usr/lib/lib*.so usr/lib/
+#debian/tmp/usr/lib/lib*.la usr/lib/
+debian/box2d.pc usr/lib/pkgconfig/
\ No newline at end of file
--- box2d-2.0.1+dfsg1.orig/debian/rules
+++ box2d-2.0.1+dfsg1/debian/rules
@@ -0,0 +1,83 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+config: config-stamp
+config-stamp:
+	dh_testdir
+	$(MAKE) -f /usr/share/quilt/quilt.make patch
+	touch $@
+
+build: build-stamp
+build-stamp: config-stamp  
+	dh_testdir
+	$(MAKE) -f debian/Makefile
+	#docbook-to-man debian/box2d.sgml > box2d.1
+	touch $@
+
+clean: 
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp config-stamp
+	$(MAKE) -f debian/Makefile clean
+	$(MAKE) -f /usr/share/quilt/quilt.make unpatch
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep 
+	dh_installdirs
+	$(MAKE) -f debian/Makefile DESTDIR=$(CURDIR)/debian/tmp install
+
+# Build architecture-independent files here.
+binary-indep: install
+
+# Build architecture-dependent files here.
+binary-arch: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_install
+#	dh_installmenu
+#	dh_installdebconf
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip --dbg-package=libbox2d0-dbg
+	dh_compress
+	dh_fixperms
+#	dh_perl
+	dh_makeshlibs
+	test -e /usr/bin/dh_buildinfo && dh_buildinfo
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+V=2.0.1
+get-orig-source:
+	rm -fr ../box2d_$(V).dfsg1.orig.tar.gz box2d-$(V) Box2D_v$(V) Box2D_v$(V).zip
+	wget http://surfnet.dl.sourceforge.net/sourceforge/box2d/Box2D_v$(V).zip
+	unzip Box2D_v$(V).zip
+	rm Box2D_v$(V).zip
+	mv Box2D_v$(V)/Box2D box2d-$(V)
+	rm -r Box2D_v$(V)
+	rm -r box2d-$(V)/Contrib/freeglut/
+	rm -r box2d-$(V)/Contrib/glui/
+	GZIP=-9 tar cvfz ../box2d_$(V).dfsg1.orig.tar.gz box2d-$(V)
+	rm -rf box2d-$(V)
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install config get-orig-source
--- box2d-2.0.1+dfsg1.orig/debian/Makefile
+++ box2d-2.0.1+dfsg1/debian/Makefile
@@ -0,0 +1,128 @@
+all: libbox2d.so libbox2d.a
+
+fixed: libbox2d-fixed.so libbox2d-fixed.a
+
+MAJOR=0
+MINOR=0d1
+
+SOURCES = \
+	Source/Collision/b2Distance.cpp \
+	Source/Collision/b2TimeOfImpact.cpp \
+	Source/Collision/b2CollideCircle.cpp \
+	Source/Collision/b2CollidePoly.cpp \
+	Source/Collision/Shapes/b2PolygonShape.cpp \
+	Source/Collision/Shapes/b2CircleShape.cpp \
+	Source/Collision/Shapes/b2Shape.cpp \
+	Source/Collision/b2PairManager.cpp \
+	Source/Collision/b2Collision.cpp \
+	Source/Collision/b2BroadPhase.cpp \
+	Source/Dynamics/b2WorldCallbacks.cpp \
+	Source/Dynamics/Joints/b2PrismaticJoint.cpp \
+	Source/Dynamics/Joints/b2MouseJoint.cpp \
+	Source/Dynamics/Joints/b2GearJoint.cpp \
+	Source/Dynamics/Joints/b2Joint.cpp \
+	Source/Dynamics/Joints/b2PulleyJoint.cpp \
+	Source/Dynamics/Joints/b2DistanceJoint.cpp \
+	Source/Dynamics/Joints/b2RevoluteJoint.cpp \
+	Source/Dynamics/Contacts/b2CircleContact.cpp \
+	Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp \
+	Source/Dynamics/Contacts/b2Contact.cpp \
+	Source/Dynamics/Contacts/b2PolyContact.cpp \
+	Source/Dynamics/Contacts/b2ContactSolver.cpp \
+	Source/Dynamics/b2Island.cpp \
+	Source/Dynamics/b2Body.cpp \
+	Source/Dynamics/b2ContactManager.cpp \
+	Source/Dynamics/b2World.cpp \
+	Source/Common/b2BlockAllocator.cpp \
+	Source/Common/b2StackAllocator.cpp \
+	Source/Common/b2Settings.cpp \
+	Source/Common/b2Math.cpp
+
+OBJS = $(SOURCES:.cpp=.o)
+STATIC_OBJS = $(SOURCES:.cpp=.static.o)
+FIXED_OBJS = $(SOURCES:.cpp=.fixed.o)
+STATIC_FIXED_OBJS = $(SOURCES:.cpp=.static_fixed.o)
+
+STATIC_CFLAGS= -O2 -g -Wall
+CFLAGS= $(STATIC_CFLAGS) -fPIC
+LDFLAGS= -Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined
+
+libbox2d.so.$(MAJOR).$(MINOR): $(OBJS)
+	g++ $(LDFLAGS) -shared \
+		-Wl,-soname,libbox2d.so.$(MAJOR) \
+		-o libbox2d.so.$(MAJOR).$(MINOR) \
+		$+ -o $@ $(LIBS)
+
+libbox2d.so: libbox2d.so.$(MAJOR).$(MINOR)
+	rm -f $@.$(MAJOR)
+	ln -s $@.$(MAJOR).$(MINOR) $@.$(MAJOR)
+	rm -f $@
+	ln -s $@.$(MAJOR) $@
+
+libbox2d.a: $(STATIC_OBJS)
+	ar cru $@ $+
+
+libbox2d-fixed.so.$(MAJOR).$(MINOR): $(FIXED_OBJS)
+	g++ $(LDFLAGS) -shared \
+		-Wl,-soname,libbox2d-fixed.so.$(MAJOR) \
+		-o libbox2d-fixed.so.$(MAJOR).$(MINOR) \
+		$+ -o $@ $(LIBS)
+
+libbox2d-fixed.so: libbox2d-fixed.so.$(MAJOR).$(MINOR)
+	rm -f $@.$(MAJOR)
+	ln -s $@.$(MAJOR).$(MINOR) $@.$(MAJOR)
+	rm -f $@
+	ln -s $@.$(MAJOR) $@
+
+libbox2d-fixed.a: $(STATIC_FIXED_OBJS)
+	ar cru $@ $+
+
+%.o: %.cpp
+	g++ -o $@ -c $+ $(CFLAGS) $(PKGCONFIG_CFLAGS)
+
+%.o: %.c
+	gcc -o $@ -c $+ $(CFLAGS) $(PKGCONFIG_CFLAGS)
+
+%.so : %.o
+	g++ $(LDFLAGS) -shared $^ -o $@
+
+%.static.o: %.cpp
+	g++ -o $@ -c $+ $(STATIC_CFLAGS) $(PKGCONFIG_CFLAGS)
+
+%.static.o: %.c
+	gcc -o $@ -c $+ $(STATIC_CFLAGS) $(PKGCONFIG_CFLAGS)
+
+%.fixed.o: %.cpp
+	g++ -o $@ -c $+ $(CFLAGS) -DTARGET_FLOAT32_IS_FIXED $(PKGCONFIG_CFLAGS)
+
+%.fixed.o: %.c
+	gcc -o $@ -c $+ $(CFLAGS) -DTARGET_FLOAT32_IS_FIXED $(PKGCONFIG_CFLAGS)
+
+%.static_fixed.o: %.cpp
+	g++ -o $@ -c $+ $(STATIC_CFLAGS) -DTARGET_FLOAT32_IS_FIXED $(PKGCONFIG_CFLAGS)
+
+%.static_fixed.o: %.c
+	gcc -o $@ -c $+ $(STATIC_CFLAGS) -DTARGET_FLOAT32_IS_FIXED $(PKGCONFIG_CFLAGS)
+
+clean:
+	rm -f $(OBJS)
+	rm -f $(STATIC_OBJS)
+	rm -f $(FIXED_OBJS)
+	rm -f $(STATIC_FIXED_OBJS)
+	rm -f *.so *.so* *.a
+
+DESTDIR=
+
+install:
+	mkdir -p "$(DESTDIR)/usr/lib/"
+	cp -a *.a "$(DESTDIR)/usr/lib/"
+	cp -a *.so* "$(DESTDIR)/usr/lib/"
+	mkdir -p "$(DESTDIR)/usr/include/"
+	cat Include/Box2D.h | sed -e 's|^#include "../Source/\(.*\)"|#include <Box2D/\1>|g' > "$(DESTDIR)/usr/include/Box2D.h"
+	find Source/ -name "*.h" | \
+		while read f; do \
+			t=`echo "$$f" | sed -e 's|^Source/|/usr/include/Box2D/|'` ; \
+			d=`dirname "$$t"`; \
+			mkdir -p "$(DESTDIR)/$$d" ; \
+			cp "$$f" "$(DESTDIR)/$$t"; \
+		done
--- box2d-2.0.1+dfsg1.orig/debian/control
+++ box2d-2.0.1+dfsg1/debian/control
@@ -0,0 +1,50 @@
+Source: box2d
+Section: libs
+Priority: optional
+Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
+Uploaders: Miriam Ruiz <little_miry@yahoo.es>, Barry deFreese <bdefreese@debian.org>
+Build-Depends: debhelper (>= 7), quilt, dh-buildinfo
+Standards-Version: 3.8.1
+Vcs-Browser: http://svn.debian.org/wsvn/debian-med/pkg-games/packages/trunk/box2d/box2d-2.0.1/?rev=0&sc=0
+Vcs-Svn: svn://svn.debian.org/svn/debian-med/pkg-games/packages/trunk/box2d/box2d-2.0.1
+Homepage: http://www.box2d.org/
+
+Package: libbox2d-dev
+Section: libdevel
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libbox2d0 (= ${binary:Version})
+Description: 2D physics engine - development files
+ 2D rigid body simulation library for games. Programmers can use it in
+ their games to make objects move in believable ways and make the world
+ seem more interactive. From the game's point of view a physics engine is
+ just a system for procedural animation. Rather than paying (or begging)
+ an animator to move your actors around, you can let Sir Isaac Newton do
+ the directing.
+ .
+ This package contains the development libraries and headers.
+
+Package: libbox2d0
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 2D physics engine
+ 2D rigid body simulation library for games. Programmers can use it in
+ their games to make objects move in believable ways and make the world
+ seem more interactive. From the game's point of view a physics engine is
+ just a system for procedural animation. Rather than paying (or begging)
+ an animator to move your actors around, you can let Sir Isaac Newton do
+ the directing.
+
+Package: libbox2d0-dbg
+Section: debug
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libbox2d0 (= ${binary:Version})
+Priority: extra
+Description: 2D physics engine - debugging symbols
+ 2D rigid body simulation library for games. Programmers can use it in
+ their games to make objects move in believable ways and make the world
+ seem more interactive. From the game's point of view a physics engine is
+ just a system for procedural animation. Rather than paying (or begging)
+ an animator to move your actors around, you can let Sir Isaac Newton do
+ the directing.
+ .
+ This package contains the debugging symbols.
--- box2d-2.0.1+dfsg1.orig/debian/docs
+++ box2d-2.0.1+dfsg1/debian/docs
@@ -0,0 +1,2 @@
+Readme.txt
+TODO.txt
--- box2d-2.0.1+dfsg1.orig/debian/box2d.pc
+++ box2d-2.0.1+dfsg1/debian/box2d.pc
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: box2d
+Description: 2D physics engine
+Version: 2.0.1
+Requires: 
+Conflicts: 
+Libs: -L${libdir} -lbox2d
+Cflags: -I${includedir}
--- box2d-2.0.1+dfsg1.orig/debian/watch
+++ box2d-2.0.1+dfsg1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+opts="dversionmangle=s/\.dfsg\d*$//" http://sf.net/box2d/Box2D_v([\d\.]+)\.zip
--- box2d-2.0.1+dfsg1.orig/debian/patches/cstring.patch
+++ box2d-2.0.1+dfsg1/debian/patches/cstring.patch
@@ -0,0 +1,60 @@
+Index: box2d-2.0.1/Source/Collision/b2BroadPhase.cpp
+===================================================================
+--- box2d-2.0.1.orig/Source/Collision/b2BroadPhase.cpp	2008-03-10 21:42:36.000000000 +0100
++++ box2d-2.0.1/Source/Collision/b2BroadPhase.cpp	2009-01-05 20:30:40.000000000 +0100
+@@ -16,6 +16,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ */
+ 
++#include <cstring>
+ #include "b2BroadPhase.h"
+ #include <algorithm>
+ 
+Index: box2d-2.0.1/Source/Common/b2BlockAllocator.cpp
+===================================================================
+--- box2d-2.0.1.orig/Source/Common/b2BlockAllocator.cpp	2007-11-24 11:25:02.000000000 +0100
++++ box2d-2.0.1/Source/Common/b2BlockAllocator.cpp	2009-01-05 20:30:40.000000000 +0100
+@@ -16,6 +16,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ */
+ 
++#include <cstring>
+ #include "b2BlockAllocator.h"
+ #include <cstdlib>
+ #include <memory>
+Index: box2d-2.0.1/Source/Dynamics/Contacts/b2CircleContact.cpp
+===================================================================
+--- box2d-2.0.1.orig/Source/Dynamics/Contacts/b2CircleContact.cpp	2008-04-10 23:37:08.000000000 +0200
++++ box2d-2.0.1/Source/Dynamics/Contacts/b2CircleContact.cpp	2009-01-05 20:30:40.000000000 +0100
+@@ -16,6 +16,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ */
+ 
++#include <cstring>
+ #include "b2CircleContact.h"
+ #include "../b2Body.h"
+ #include "../b2WorldCallbacks.h"
+Index: box2d-2.0.1/Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp
+===================================================================
+--- box2d-2.0.1.orig/Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp	2008-04-12 14:29:14.000000000 +0200
++++ box2d-2.0.1/Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp	2009-01-05 20:30:40.000000000 +0100
+@@ -16,6 +16,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ */
+ 
++#include <cstring>
+ #include "b2PolyAndCircleContact.h"
+ #include "../b2Body.h"
+ #include "../b2WorldCallbacks.h"
+Index: box2d-2.0.1/Source/Dynamics/Contacts/b2PolyContact.cpp
+===================================================================
+--- box2d-2.0.1.orig/Source/Dynamics/Contacts/b2PolyContact.cpp	2008-04-10 23:38:38.000000000 +0200
++++ box2d-2.0.1/Source/Dynamics/Contacts/b2PolyContact.cpp	2009-01-05 20:30:40.000000000 +0100
+@@ -16,6 +16,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ */
+ 
++#include <cstring>
+ #include "b2PolyContact.h"
+ #include "../b2Body.h"
+ #include "../b2WorldCallbacks.h"
--- box2d-2.0.1+dfsg1.orig/debian/patches/series
+++ box2d-2.0.1+dfsg1/debian/patches/series
@@ -0,0 +1,2 @@
+cstring.patch
+maxproxies.patch
--- box2d-2.0.1+dfsg1.orig/debian/patches/maxproxies.patch
+++ box2d-2.0.1+dfsg1/debian/patches/maxproxies.patch
@@ -0,0 +1,13 @@
+Index: box2d-2.0.1/Source/Common/b2Settings.h
+===================================================================
+--- box2d-2.0.1.orig/Source/Common/b2Settings.h	2008-04-10 23:44:06.000000000 +0200
++++ box2d-2.0.1/Source/Common/b2Settings.h	2009-01-05 20:30:42.000000000 +0100
+@@ -73,7 +73,7 @@
+ // Collision
+ const int32 b2_maxManifoldPoints = 2;
+ const int32 b2_maxPolygonVertices = 8;
+-const int32 b2_maxProxies = 512;				// this must be a power of two
++const int32 b2_maxProxies = 512*4;				// this must be a power of two
+ const int32 b2_maxPairs = 8 * b2_maxProxies;	// this must be a power of two
+ 
+ // Dynamics
