[libcsfml] 02/04: Add patch to fix build against SFML 2.3

James Cowgill jcowgill-guest at moszumanska.debian.org
Tue Jun 30 14:21:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

jcowgill-guest pushed a commit to branch master-2.2
in repository libcsfml.

commit a87d328ed1a6d194480c0776115066cdc342224e
Author: James Cowgill <james410 at cowgill.org.uk>
Date:   Fri Jun 26 19:01:18 2015 +0100

    Add patch to fix build against SFML 2.3
---
 debian/control                   |  2 +-
 debian/patches/04_sfml-2.3.patch | 22 ++++++++++++++++++++++
 debian/patches/series            |  1 +
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index f687155..3853df8 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/libcsfml.git
 Build-Depends: debhelper (>= 9),
  cmake (>= 2.8.9),
  doxygen,
- libsfml-dev (>= 2.2)
+ libsfml-dev (>= 2.3)
 Standards-Version: 3.9.6
 Homepage: http://www.sfml-dev.org
 
diff --git a/debian/patches/04_sfml-2.3.patch b/debian/patches/04_sfml-2.3.patch
new file mode 100644
index 0000000..505f143
--- /dev/null
+++ b/debian/patches/04_sfml-2.3.patch
@@ -0,0 +1,22 @@
+Description: Patch to allow building CSFML 2.2 with SFML 2.3
+Author: James Cowgill <james410 at cowgill.org.uk>
+Forwarded: not-needed
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/SFML/Graphics/ShapeStruct.h
++++ b/src/SFML/Graphics/ShapeStruct.h
+@@ -51,12 +51,12 @@ public :
+     {
+     }
+ 
+-    virtual unsigned int getPointCount() const
++    virtual std::size_t getPointCount() const
+     {
+         return myGetPointCountCallback(myUserData);
+     }
+ 
+-    virtual sf::Vector2f getPoint(unsigned int index) const
++    virtual sf::Vector2f getPoint(std::size_t index) const
+     {
+         sfVector2f point = myGetPointCallback(index, myUserData);
+         return sf::Vector2f(point.x, point.y);
diff --git a/debian/patches/series b/debian/patches/series
index 9c130c9..53eb303 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01_hurd.patch
 02_build-doc-once.patch
 03_remove-googleapi-css.patch
+04_sfml-2.3.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/libcsfml.git



More information about the Pkg-games-commits mailing list