--- libtuxcap-1.4.0.dfsg2.orig/debian/README.source +++ libtuxcap-1.4.0.dfsg2/debian/README.source @@ -0,0 +1 @@ +See /usr/share/doc/quilt/README.source --- libtuxcap-1.4.0.dfsg2.orig/debian/changelog +++ libtuxcap-1.4.0.dfsg2/debian/changelog @@ -0,0 +1,61 @@ +libtuxcap (1.4.0.dfsg2-2.3) unstable; urgency=medium + + * Non-maintainer upload. + * Fix building with GCC 6. (Closes: #811785) + + -- Johannes Brandstätter Sun, 25 Sep 2016 13:36:46 +0200 + +libtuxcap (1.4.0.dfsg2-2.2) unstable; urgency=medium + + * Non-maintainer upload. + * Use pkg-config to get ImageMagick build flags (closes: #747908). + + -- Colin Watson Thu, 06 Nov 2014 10:16:34 +0000 + +libtuxcap (1.4.0.dfsg2-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "FTBFS: Could NOT find ImageMagick": + add patch to deal with cmake's ImageMagick module changes + (Closes: #674369) + + -- gregor herrmann Thu, 07 Jun 2012 16:14:22 +0200 + +libtuxcap (1.4.0.dfsg2-2) unstable; urgency=low + + * Team upload. + + [ Miriam Ruiz ] + * Upgraded Standards-Version from 3.8.3 to 3.9.2 + * Modified libmagick* packages in Build-Depends. + The new ones which are: libmagickwand-dev, libmagick++-dev + (Closes: #625599, #628853, #629764) + * Acknowledged NMUs + + [ Bruno "Fuddl" Kleinert ] + * Put "Closes: ..." magic behind Miriam's second changelog entry. + + -- Bruno "Fuddl" Kleinert Thu, 09 Jun 2011 17:25:47 +0200 + +libtuxcap (1.4.0.dfsg2-1.2) unstable; urgency=low + + * Non-maintainer upload. + * (Build-)Depend on python-dev instead of python2.5-dev. Closes: #596310. + * debian/patches/kfreebsd.patch: + - Fixes FTBFS on kfreebsd ports. Closes: #568166. + + -- Luca Falavigna Sun, 01 May 2011 21:35:03 +0200 + +libtuxcap (1.4.0.dfsg2-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Build-depend on python-dev (>= 2.6), python-dev (<< 2.7) instead of + python2.5-dev. Use python2.6 in debian/demos.patch. Closes: #596310. + + -- Matthias Klose Sun, 12 Sep 2010 12:11:31 +0200 + +libtuxcap (1.4.0.dfsg2-1) unstable; urgency=low + + * Initial release. Closes: #536867 + + -- Miriam Ruiz Thu, 14 Jan 2010 11:53:40 +0000 --- libtuxcap-1.4.0.dfsg2.orig/debian/compat +++ libtuxcap-1.4.0.dfsg2/debian/compat @@ -0,0 +1 @@ +7 --- libtuxcap-1.4.0.dfsg2.orig/debian/control +++ libtuxcap-1.4.0.dfsg2/debian/control @@ -0,0 +1,49 @@ +Source: libtuxcap +Priority: optional +Maintainer: Debian Games Team +Uploaders: Miriam Ruiz +Build-Depends: debhelper (>= 7), dh-buildinfo, quilt, cmake, + libsdl1.2-dev, libsdl-mixer1.2-dev,libgl1-mesa-dev, libglu1-mesa-dev, + libmagickwand-dev, libmagick++-dev, python-dev +Standards-Version: 3.9.2 +Section: libs +Homepage: http://tuxcap.sourceforge.net/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/libtuxcap/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/libtuxcap/?op=log + +Package: libtuxcap-dev +Section: libdevel +Architecture: any +Depends: libtuxcap4.0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, + libc6-dev, libsdl1.2-dev, libsdl-mixer1.2-dev,libgl1-mesa-dev, libglu1-mesa-dev, + libmagickwand-dev, libmagick++-dev, python-dev +Description: framework for developing 2D games - development files + The TuxCap Games Framework is a GNU/Linux port of the PopCap Games Framework, + used for professional 2D game development. It comes with PyCap bindings for + Python, a fast 2D physics engine, a particle engine, widgets and many + documented examples. + . + This package contains the library headers and documentation for developers. + +Package: libtuxcap4.0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: framework for developing 2D games - runtime libraries + The TuxCap Games Framework is a GNU/Linux port of the PopCap Games Framework, + used for professional 2D game development. It comes with PyCap bindings for + Python, a fast 2D physics engine, a particle engine, widgets and many + documented examples. + +Package: libtuxcap4.0-dbg +Section: debug +Priority: extra +Architecture: any +Depends: libtuxcap4.0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: framework for developing 2D games - debugging symbols + The TuxCap Games Framework is a GNU/Linux port of the PopCap Games Framework, + used for professional 2D game development. It comes with PyCap bindings for + Python, a fast 2D physics engine, a particle engine, widgets and many + documented examples. + . + This package contains the debugging symbols for the library. --- libtuxcap-1.4.0.dfsg2.orig/debian/copyright +++ libtuxcap-1.4.0.dfsg2/debian/copyright @@ -0,0 +1,309 @@ +This package was downloaded from: http://sourceforge.net/projects/tuxcap + +Upstream Author: + + W.P. van Paassen + +Copyright: + + PopCap Games Framework: + Copyright (c) 2005-2008 PopCap Games. All rights reserved. + TuxCap Games Framework (port, fixes, interfaces and extensions): + Copyright (c) 2007-2008 W.P. van Paassen + Chipmunk physics engine: + Copyright (c) 2007 Scott Lembcke + Pycap python bindings: + Copyright (c) 2007 Jarrad Woods + Hge particle engine: + Copyright (c) 2003-2006 Relish Games + + +PopCap Games Framework License, version 1.0: + + Copyright (c) 2005 PopCap Games. All rights reserved. + + Redistribution and use in source and binary forms, with or + without modification, are permitted provided that the following + conditions are met: + + 1. Redistributions of source code or derived libraries, whether + source code or binary, must include a copy of this PopCap Games + Framework License in its entirety. + + 2. The end-user documentation included with a work which + contains any portion of the PopCap Games Framework must include + the following acknowledgment: + + "This product includes portions of the PopCap Games Framework + (http://developer.popcap.com/)." + + Alternatively, this acknowledgment may appear in the software + itself, wherever such third-party acknowledgments normally + appear. + + 3. The names "PopCap" and "PopCap Games" must not be used to + endorse or promote products derived from this software without + prior written permission. For written permission, please + contact bizdev@popcap.com. + + 4. Products derived from this software may not be called + "PopCap", nor may "PopCap" appear in their name, without prior + written permission of PopCap Games. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY, NON-INFRINGMENT AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL POPCAP + GAMES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + THE POSSIBILITY OF SUCH DAMAGE. + +TuxCap Games Framework License: + + Copyright (c) 2007-2008 W.P. van Paassen + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +Chipmunk Physics engine : + + Copyright (c) 2007 Scott Lembcke + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +HGE Particle engine: + + Copyright (c) 2003-2006 Relish Games + + 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 following files are licensed under both the PopCap Games +Framework license and the TuxCap Games Framework license: + + Buffer.cpp + ButtonWidget.cpp + Checkbox.cpp + Color.cpp + Common.cpp + CursorWidget.cpp + D3DInterface.cpp + DDImage.cpp + DDInterface.cpp + DescParser.cpp + DialogButton.cpp + Dialog.cpp + EditWidget.cpp + Flags.cpp + Font.cpp + Graphics.cpp + HyperlinkWidget.cpp + Image.cpp + ImageFont.cpp + ImageLib.cpp + Insets.cpp + KeyCodes.cpp + ListWidget.cpp + MemoryImage.cpp + MTRand.cpp + MusicInterface.cpp + NativeDisplay.cpp + NaturalCubicSpline.cpp + PropertiesParser.cpp + Quantize.cpp + Ratio.cpp + ResourceManager.cpp + ScrollbarWidget.cpp + ScrollbuttonWidget.cpp + SexyAppBase.cpp + SexyMatrix.cpp + SharedImage.cpp + Slider.cpp + SWTri.cpp + SWTri_DrawTriangle.cpp + SWTri_DrawTriangleInc1.cpp + SWTri_DrawTriangleInc2.cpp + SWTri_GetTexel.cpp + SWTri_Loop.cpp + SWTri_Pixel555.cpp + SWTri_Pixel565.cpp + SWTri_Pixel8888.cpp + SWTri_Pixel888.cpp + SWTri_TexelARGB.cpp + TextWidget.cpp + WidgetContainer.cpp + Widget.cpp + WidgetManager.cpp + XMLParser.cpp + XMLWriter.cpp + BltRotatedHelper.inc + Buffer.h + ButtonListener.h + ButtonWidget.h + Checkbox.h + CheckboxListener.h + Color.h + Common.h + CursorWidget.h + D3DInterface.h + DDI_Additive.inc + DDI_AlphaBlt.inc + DDI_BltRotated_Additive.inc + DDI_BltRotated.inc + DDI_FastBlt_NoAlpha.inc + DDI_FastStretch_Additive.inc + DDI_FastStretch.inc + DDImage.h + DDI_NormalBlt_Volatile.inc + DDInterface.h + DescParser.h + DialogButton.h + Dialog.h + DialogListener.h + EditListener.h + EditWidget.h + Flags.h + Font.h + GENERIC_DrawLineAA.inc + Graphics.h + HyperlinkWidget.h + ImageFont.h + Image.h + ImageLib.h + Insets.h + KeyCodes.h + ListListener.h + ListWidget.h + MemoryImage.h + MI_AdditiveBlt.inc + MI_BltRotated_Additive.inc + MI_BltRotated.inc + MI_GetNativeAlphaData.inc + MI_GetRLAlphaData.inc + MI_NormalBlt.inc + MTRand.h + MusicInterface.h + NativeDisplay.h + NaturalCubicSpline.h + Point.h + PropertiesParser.h + Quantize.h + Ratio.h + Rect.h + ResourceManager.h + ScrollbarWidget.h + ScrollbuttonWidget.h + ScrollListener.h + SexyAppBase.h + SexyMatrix.h + SexyVector.h + SharedImage.h + Slider.h + SliderListener.h + SoundInstance.h + SoundManager.h + SWTri.h + TextWidget.h + TriVertex.h + WidgetContainer.h + Widget.h + WidgetManager.h + XMLParser.h + XMLWriter.h + PycapApp.cpp + PycapApp.h + PycapBoard.cpp + PycapBoard.h + PycapResources.cpp + PycapResources.h + +The following files are licensed under the TuxCap Games Framework +license: + + AudiereLoader.cpp + AudiereMusicInterface.cpp + AudiereSoundInstance.cpp + AudiereSoundManager.cpp + AudiereLoader.h + AudiereMusicInterface.h + AudiereSoundInstance.h + AudiereSoundManager.h + SDLMixerMusicInterface.cpp + SDLMixerSoundInstance.cpp + SDLMixerSoundManager.cpp + SDLMixerMusicInterface.h + SDLMixerSoundInstance.h + SDLMixerSoundManager.h + ParticlePhysicsSystem.cpp + ParticlePhysicsSystem.h + Physics.h + Physics.cpp + PhysicsListener.h + +The following files are licensed under the Chipmunk Physics engine +license: + + tuxcap/chipmunk/* + +The following files are licensed under the HGE Particle engine +license: + + tuxcap/hgeparticle/* + +The Debian packaging is (C) 2009-2010, Miriam Ruiz and +is licensed under the same license as the program (BSD). --- libtuxcap-1.4.0.dfsg2.orig/debian/demos.patch +++ libtuxcap-1.4.0.dfsg2/debian/demos.patch @@ -0,0 +1,1127 @@ +# Copyright (C) 2009 Miriam Ruiz +# Distributed under the same license as the game. See debian/copyright. + +--- libtuxcap-1.4.0.orig/tuxcap/demo1/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/demo1/CMakeLists.txt +@@ -1,48 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../demo_1") ++SET(CurrentExe "./demo_1") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/demo2/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/demo2/CMakeLists.txt +@@ -1,48 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../demo_2") ++SET(CurrentExe "./demo_2") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/demo3/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/demo3/CMakeLists.txt +@@ -1,48 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-#SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU +-#) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../demo_3") ++SET(CurrentExe "./demo_3") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/demo4/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/demo4/CMakeLists.txt +@@ -1,50 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL Magick++ audiere GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp TitleScreen.cpp Board.cpp GameApp.cpp Res.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../demo_4") ++SET(CurrentExe "./demo_4") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/demo5/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/demo5/CMakeLists.txt +@@ -1,50 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL Magick++ audiere GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp TitleScreen.cpp DemoDialog.cpp Board.cpp GameApp.cpp Res.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../demo_5") ++SET(CurrentExe "./demo_5") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/hungarr/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/hungarr/CMakeLists.txt +@@ -1,33 +1,4 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ audiere GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp TitleScreen.cpp OptionsDialog.cpp GameOverEffect.cpp LevelupEffect.cpp + Board.cpp GameApp.h GameApp.cpp Res.cpp) +@@ -35,17 +6,7 @@ + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../Hungarr") ++SET(CurrentExe "./Hungarr") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/particledemo/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/particledemo/CMakeLists.txt +@@ -1,48 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../particle_demo") ++SET(CurrentExe "./particle_demo") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/physicsdemo/CMakeLists.txt +@@ -1,50 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../Physicsdemo") ++SET(CurrentExe "./Physicsdemo") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo2/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/physicsdemo2/CMakeLists.txt +@@ -1,50 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ audiere GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../Physicsdemo2") ++SET(CurrentExe "./Physicsdemo2") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo3/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/physicsdemo3/CMakeLists.txt +@@ -1,50 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ audiere GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../Physicsdemo3") ++SET(CurrentExe "./Physicsdemo3") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo4/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/physicsdemo4/CMakeLists.txt +@@ -1,50 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ audiere GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../Physicsdemo4") ++SET(CurrentExe "./Physicsdemo4") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo5/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/physicsdemo5/CMakeLists.txt +@@ -1,50 +1,14 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + #Declare any external dependencies that your project may have here. + #examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ audiere GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../Physicsdemo5") ++SET(CurrentExe "./Physicsdemo5") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo6/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/physicsdemo6/CMakeLists.txt +@@ -1,50 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ audiere GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../Physicsdemo6") ++SET(CurrentExe "./Physicsdemo6") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo7/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/physicsdemo7/CMakeLists.txt +@@ -1,50 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ audiere GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL) + + SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../Physicsdemo7") ++SET(CurrentExe "./Physicsdemo7") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/pythondemo1/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/pythondemo1/CMakeLists.txt +@@ -1,52 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${PYTHON_INCLUDE_PATH} ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle +-${libtuxcap_SOURCE_DIR}/tuxcap/pycap +-) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL /usr/include/python2.6/) + + SET(MY_SOURCES main.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../pythondemo1/Pythondemo1") ++SET(CurrentExe "./Pythondemo1") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/pythondemo2/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/pythondemo2/CMakeLists.txt +@@ -1,52 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${PYTHON_INCLUDE_PATH} ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle +-${libtuxcap_SOURCE_DIR}/tuxcap/pycap +-) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL /usr/include/python2.6/) + + SET(MY_SOURCES main.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../pythondemo2/Pythondemo2") ++SET(CurrentExe "./Pythondemo2") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/pythondemo_template/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/pythondemo_template/CMakeLists.txt +@@ -1,52 +1,11 @@ +-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${PYTHON_INCLUDE_PATH} ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle +-${libtuxcap_SOURCE_DIR}/tuxcap/pycap +-) +- +-#Declare any external dependencies that your project may have here. +-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java +-#If you're not sure what name to use, look in the Modules directory of your +-#cmake install and check that a file named Find(Package).cmake exists +-SET(Required_Packages +-#list packages here +-#SDL OpenGL GLU SDL_mixer +-) +- +-#this foreach loads all of the packages that you specified as required. +-#It shouldn't need to be modified. +-FOREACH(Package ${Required_Packages}) +- LOADPACKAGE(${Package}) +-ENDFOREACH(Package) +- +-#Set any libraries that your project depends on. +-#examples: ITKCommon, VTKRendering, etc +-SET(Libraries +-#list libraries here +-#SDL SDL_mixer Magick++ GL GLU +-tuxcap +-) +- +-#the following block of code is an example of how to build an executable in +-#cmake. Unmodified, it will add an executable called "MyExe" to the project. +-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will +-#be linked to all the libraries you specified above. +-#You can build more than one executable per project ++INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL /usr/include/python2.6/) + + SET(MY_SOURCES main.cpp) + IF(APPLE) + SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m) + ENDIF(APPLE) + +-SET(CurrentExe "../../pythondemo_template/Pythondemo_template") ++SET(CurrentExe "./Pythondemo_template") + ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES}) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) +- +-#the following line is an example of how to add a test to your project. +-#Testname is the title for this particular test. ExecutableToRun is the +-#program which will be running this test. It can either be a part of this +-#project or an external executable. After that list any args that are needed +-#for this test. Include as many tests as you like. If your project doesn't have +-#any tests you can comment out or delete the following line. +-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3) +- +-#Once you're done modifying this template, you should rename it to "CMakeLists.txt" ++TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap) +--- libtuxcap-1.4.0.orig/tuxcap/demo1/main.cpp ++++ libtuxcap-1.4.0/tuxcap/demo1/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/demo2/main.cpp ++++ libtuxcap-1.4.0/tuxcap/demo2/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/demo3/main.cpp ++++ libtuxcap-1.4.0/tuxcap/demo3/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/demo4/main.cpp ++++ libtuxcap-1.4.0/tuxcap/demo4/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/demo5/main.cpp ++++ libtuxcap-1.4.0/tuxcap/demo5/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/hungarr/main.cpp ++++ libtuxcap-1.4.0/tuxcap/hungarr/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/particledemo/main.cpp ++++ libtuxcap-1.4.0/tuxcap/particledemo/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo/main.cpp ++++ libtuxcap-1.4.0/tuxcap/physicsdemo/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo2/main.cpp ++++ libtuxcap-1.4.0/tuxcap/physicsdemo2/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo3/main.cpp ++++ libtuxcap-1.4.0/tuxcap/physicsdemo3/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo4/main.cpp ++++ libtuxcap-1.4.0/tuxcap/physicsdemo4/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo5/main.cpp ++++ libtuxcap-1.4.0/tuxcap/physicsdemo5/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo6/main.cpp ++++ libtuxcap-1.4.0/tuxcap/physicsdemo6/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo7/main.cpp ++++ libtuxcap-1.4.0/tuxcap/physicsdemo7/main.cpp +@@ -3,6 +3,7 @@ + using namespace Sexy; + + int main(int argc, char** argv) { ++ SetAppResourceFolder("/usr/share/libtuxcap-demos"); + GameApp app; + + app.Init(); +--- libtuxcap-1.4.0.orig/tuxcap/pythondemo1/main.cpp ++++ libtuxcap-1.4.0/tuxcap/pythondemo1/main.cpp +@@ -5,7 +5,7 @@ + int main(int argc, char** argv) { + PycapApp app; + +- SetAppResourceFolder("../images"); ++ SetAppResourceFolder("/usr/share/libtuxcap-demos/images"); + + app.Init(argc, argv, false); + app.Start(); +--- libtuxcap-1.4.0.orig/tuxcap/pythondemo2/main.cpp ++++ libtuxcap-1.4.0/tuxcap/pythondemo2/main.cpp +@@ -5,7 +5,7 @@ + int main(int argc, char** argv) { + PycapApp app; + +- SetAppResourceFolder("../images"); ++ SetAppResourceFolder("/usr/share/libtuxcap-demos/images"); + + app.Init(argc,argv, false); + app.Start(); +--- libtuxcap-1.4.0.orig/tuxcap/pythondemo_template/main.cpp ++++ libtuxcap-1.4.0/tuxcap/pythondemo_template/main.cpp +@@ -5,7 +5,7 @@ + int main(int argc, char** argv) { + PycapApp app; + +- SetAppResourceFolder("../images"); ++ SetAppResourceFolder("/usr/share/libtuxcap-demos/images"); + + app.Init(argc,argv, false); + app.Start(); --- libtuxcap-1.4.0.dfsg2.orig/debian/docs +++ libtuxcap-1.4.0.dfsg2/debian/docs @@ -0,0 +1 @@ +doc --- libtuxcap-1.4.0.dfsg2.orig/debian/libtuxcap-dev.dirs +++ libtuxcap-1.4.0.dfsg2/debian/libtuxcap-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- libtuxcap-1.4.0.dfsg2.orig/debian/libtuxcap-dev.examples +++ libtuxcap-1.4.0.dfsg2/debian/libtuxcap-dev.examples @@ -0,0 +1,17 @@ +tuxcap/demo1 +tuxcap/demo2 +tuxcap/demo3 +tuxcap/demo4 +tuxcap/demo5 +tuxcap/hungarr +tuxcap/particledemo +tuxcap/physicsdemo +tuxcap/physicsdemo2 +tuxcap/physicsdemo3 +tuxcap/physicsdemo4 +tuxcap/physicsdemo5 +tuxcap/physicsdemo6 +tuxcap/physicsdemo7 +tuxcap/pythondemo1 +tuxcap/pythondemo2 +tuxcap/pythondemo_template --- libtuxcap-1.4.0.dfsg2.orig/debian/libtuxcap-dev.install +++ libtuxcap-1.4.0.dfsg2/debian/libtuxcap-dev.install @@ -0,0 +1,3 @@ +debian/tmp-build/tuxcap/lib/*.a usr/lib/ +debian/tmp-build/tuxcap/lib/*.so usr/lib/ +debian/tmp/usr/include/* usr/include/ --- libtuxcap-1.4.0.dfsg2.orig/debian/libtuxcap4.0.dirs +++ libtuxcap-1.4.0.dfsg2/debian/libtuxcap4.0.dirs @@ -0,0 +1 @@ +usr/lib --- libtuxcap-1.4.0.dfsg2.orig/debian/libtuxcap4.0.install +++ libtuxcap-1.4.0.dfsg2/debian/libtuxcap4.0.install @@ -0,0 +1 @@ +debian/tmp-build/tuxcap/lib/lib*.so.* usr/lib/ --- libtuxcap-1.4.0.dfsg2.orig/debian/patches/abs_dirs.patch +++ libtuxcap-1.4.0.dfsg2/debian/patches/abs_dirs.patch @@ -0,0 +1,113 @@ +# Copyright (C) 2009 Miriam Ruiz +# Distributed under the same license as the software. See debian/copyright. + +--- libtuxcap-1.4.0.orig/tuxcap/lib/ResourceManager.cpp ++++ libtuxcap-1.4.0/tuxcap/lib/ResourceManager.cpp +@@ -191,9 +191,10 @@ + if (aPath==_S("!program")) + theRes->mFromProgram = true; + } ++ else if (aPath[0]==_S('/')) ++ theRes->mPath = SexyStringToStringFast(aPath); + else + theRes->mPath = mDefaultPath + SexyStringToStringFast(aPath); +- + + std::string anId; + XMLParamMap::iterator anItr = theElement.mAttributes.find(_S("id")); +@@ -595,8 +596,9 @@ + bool ResourceManager::ParseResourcesFile(const std::string& theFilename) + { + mXMLParser = new XMLParser(); +- if (!mXMLParser->OpenFile(GetAppResourceFolder() + theFilename)) +- Fail("Resource file not found: " + GetAppResourceFolder() + theFilename); ++ std::string fname = ReplaceBackSlashes(theFilename[0]!='/'? GetAppResourceFolder() + theFilename : theFilename); ++ if (!mXMLParser->OpenFile(fname)) ++ Fail("Resource file not found: " + fname); + + XMLElement aXMLElement; + while (!mXMLParser->HasFailed()) +--- libtuxcap-1.4.0.orig/tuxcap/hgeparticle/hgeparticle.cpp ++++ libtuxcap-1.4.0/tuxcap/hgeparticle/hgeparticle.cpp +@@ -58,7 +58,7 @@ + bInitOK = false; + + // LOAD FROM FILE +- std::string fullfilename = Sexy::ReplaceBackSlashes(Sexy::GetAppResourceFolder() + filename); ++ std::string fullfilename = ReplaceBackSlashes(filename[0]!='/'? GetAppResourceFolder() + filename : std::string(filename)); + FILE *fp = fopen( fullfilename.c_str(), "rb" ); + if( fp == NULL ) + return ; +--- libtuxcap-1.4.0.orig/tuxcap/lib/ImageFont.cpp ++++ libtuxcap-1.4.0/tuxcap/lib/ImageFont.cpp +@@ -1014,7 +1014,7 @@ + + bool hasErrors = false; + +- std::string daFontDescFileName = GetAppResourceFolder() + theFontDescFileName; ++ std::string daFontDescFileName = ReplaceBackSlashes(theFontDescFileName[0]!='/'? GetAppResourceFolder() + theFontDescFileName : theFontDescFileName); + + daFontDescFileName = ReplaceBackSlashes(daFontDescFileName); + +@@ -1046,7 +1046,7 @@ + aFontLayer->mDefaultHeight = aFontLayer->mImage->GetHeight(); + aFontLayer->mAscent = aFontLayer->mImage->GetHeight(); + +- std::string daFontDescFileName = GetAppResourceFolder() + theFontDescFileName; ++ std::string daFontDescFileName = ReplaceBackSlashes(theFontDescFileName[0]!='/'? GetAppResourceFolder() + theFontDescFileName : theFontDescFileName); + + daFontDescFileName = ReplaceBackSlashes(daFontDescFileName); + +--- libtuxcap-1.4.0.orig/tuxcap/lib/SDLMixerMusicInterface.cpp ++++ libtuxcap-1.4.0/tuxcap/lib/SDLMixerMusicInterface.cpp +@@ -70,7 +70,7 @@ + { + SDLMixerMusicInfo aMusicInfo; + +- std::string copy = Sexy::ReplaceBackSlashes(GetAppResourceFolder() + theFileName); ++ std::string copy = ReplaceBackSlashes(theFileName[0]!='/'? GetAppResourceFolder() + theFileName : theFileName); + + int aLastDotPos = copy.rfind('.'); + int aLastSlashPos = (int)copy.rfind('/'); +--- libtuxcap-1.4.0.orig/tuxcap/lib/SDLMixerSoundManager.cpp ++++ libtuxcap-1.4.0/tuxcap/lib/SDLMixerSoundManager.cpp +@@ -125,7 +125,7 @@ + if (!Initialized()) + return true; // sounds just won't play, but this is not treated as a failure condition + +- std::string aFilename = ReplaceBackSlashes(GetAppResourceFolder() + theFilename); ++ std::string aFilename = ReplaceBackSlashes(theFilename[0]!='/'? GetAppResourceFolder() + theFilename : theFilename); + + mSourceSounds[theSfxID] = Mix_LoadWAV(aFilename.c_str()); + +--- libtuxcap-1.4.0.orig/tuxcap/lib/SexyAppBase.cpp ++++ libtuxcap-1.4.0/tuxcap/lib/SexyAppBase.cpp +@@ -5678,7 +5678,7 @@ + + std::string resourcepath = GetAppResourceFolder(); + if (!resourcepath.empty()) { +- if (theFileName.substr(0, resourcepath.size()) == resourcepath) ++ if (theFileName.substr(0, resourcepath.size()) == resourcepath || theFileName[0] == '/') + aLoadedImage = ImageLib::GetImage(theFileName, true); + else + aLoadedImage = ImageLib::GetImage(resourcepath + theFileName, true); +@@ -6167,7 +6167,8 @@ + } + + if (!mWindowIconBMP.empty()) { +- SDL_WM_SetIcon(SDL_LoadBMP((GetAppResourceFolder() + mWindowIconBMP).c_str()), NULL); ++ std::string fname = ReplaceBackSlashes(mWindowIconBMP[0]!='/'? GetAppResourceFolder() + mWindowIconBMP : mWindowIconBMP); ++ SDL_WM_SetIcon(SDL_LoadBMP(fname.c_str()), NULL); + } + + if (mDDInterface->mIs3D) { +@@ -6996,7 +6997,8 @@ + bool SexyAppBase::LoadProperties(const std::string& theFileName, bool required, bool checkSig) + { + Buffer aBuffer; +- if (!ReadBufferFromFile(GetAppResourceFolder() + theFileName, &aBuffer)) ++ std::string fname = ReplaceBackSlashes(theFileName[0]!='/'? GetAppResourceFolder() + theFileName : theFileName); ++ if (!ReadBufferFromFile(fname, &aBuffer)) + { + if (!required) + return true; --- libtuxcap-1.4.0.dfsg2.orig/debian/patches/cmake_imagemagick.patch +++ libtuxcap-1.4.0.dfsg2/debian/patches/cmake_imagemagick.patch @@ -0,0 +1,56 @@ +Description: Use pkg-config to get ImageMagick build flags +Origin: vendor +Bug-Debian: https://bugs.debian.org/747908 +Forwarded: no +Author: Colin Watson +Last-Update: 2014-10-31 + +Index: b/tuxcap/CMakeLists.txt +=================================================================== +--- a/tuxcap/CMakeLists.txt ++++ b/tuxcap/CMakeLists.txt +@@ -16,10 +16,10 @@ + + Find_Package ( SDL REQUIRED ) + Find_Package ( SDL_mixer REQUIRED ) +-Find_Package ( ImageMagick REQUIRED ) + Find_Package ( OpenGL REQUIRED ) + +-FIND_PACKAGE(ImageMagickLib) ++FIND_PACKAGE(PkgConfig REQUIRED) ++PKG_CHECK_MODULES(IMAGEMAGICK REQUIRED Magick++ MagickWand MagickCore) + + FIND_PACKAGE(AudiereLib) + IF(AUDIERELIB_FOUND) +@@ -31,8 +31,7 @@ + ${SDL_LIBRARY} + ${SDLMIXER_LIBRARY} + ${OPENGL_LIBRARIES} +- ${IMAGEMAGICKLIB_LIBRARIES} +- ${IMAGEMAGICKLIB_CXX_LIBRARIES} ++ ${IMAGEMAGICK_LIBRARIES} + ) + + IF (PYTHON_LIBRARIES) +@@ -76,11 +75,7 @@ + MESSAGE(FATAL_ERROR "libSDL requested but not found.") + ENDIF(SDL_FOUND) + +-IF(IMAGEMAGICKLIB_FOUND) +-MESSAGE("lib ImageMagick found. ${IMAGEMAGICKLIB_INCLUDE_DIR} ${IMAGEMAGICKLIB_LIBRARIES} ${IMAGEMAGICKLIB_CXX_LIBRARIES}") +-ELSE(IMAGEMAGICKLIB_FOUND) +-MESSAGE(FATAL_ERROR "lib ImageMagick requested but not found.") +-ENDIF(IMAGEMAGICKLIB_FOUND) ++MESSAGE("lib ImageMagick found. ${IMAGEMAGICK_INCLUDE_DIRS} ${IMAGEMAGICK_LIBRARIES}") + + IF(SDLMIXER_FOUND) + MESSAGE("libSDL_mixer found. ${SDLMIXER_INCLUDE_DIR} ${SDLMIXER_LIBRARY}") +@@ -96,7 +91,7 @@ + + SET ( MY_INCLUDE_DIRS + #/usr/include/swfdec-0.5 /usr/include/glib-2.0 /usr/lib/glib-2.0/include +-{SDL_INCLUDE_DIR} ${IMAGEMAGICKLIB_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${PYTHON_INCLUDE_PATH} ) ++{SDL_INCLUDE_DIR} ${IMAGEMAGICK_INCLUDE_DIRS} ${SDLMIXER_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${PYTHON_INCLUDE_PATH} ) + IF(AUDIERELIB_FOUND) + SET ( MY_INCLUDE_DIRS ${MY_INCLUDE_DIRS} ${AUDIERELIB_INCLUDE_DIR} ) + ENDIF(AUDIERELIB_FOUND) --- libtuxcap-1.4.0.dfsg2.orig/debian/patches/cmakelists.patch +++ libtuxcap-1.4.0.dfsg2/debian/patches/cmakelists.patch @@ -0,0 +1,17 @@ +# Copyright (C) 2008-2009 Miriam Ruiz +# Distributed under the same license as the software. See debian/copyright. + +--- libtuxcap-1.4.0.orig/tuxcap/CMakeLists.txt ++++ libtuxcap-1.4.0/tuxcap/CMakeLists.txt +@@ -3,9 +3,9 @@ + + SET(CMAKE_MODULE_PATH "${libtuxcap_SOURCE_DIR}/tuxcap/CMakeModules" ) + +-SET(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O3") ++SET(CMAKE_C_FLAGS_RELEASE "-DNDEBUG") + SET(CMAKE_C_FLAGS_DEBUG "-Wall -g -O0") +-SET(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3") ++SET(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG") + SET(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -O0") + + INCLUDE(FindImageMagick) --- libtuxcap-1.4.0.dfsg2.orig/debian/patches/gcc6.patch +++ libtuxcap-1.4.0.dfsg2/debian/patches/gcc6.patch @@ -0,0 +1,50 @@ +Description: Fix building with GCC 6. +Author: Johannes Brandstätter +Bug-Debian: https://bugs.debian.org/811785 +Last-Update: <2016-09-25> + +--- a/tuxcap/lib/MemoryImage.cpp ++++ b/tuxcap/lib/MemoryImage.cpp +@@ -17,6 +17,7 @@ + #include + #include + #include ++#include + #include "SDL.h" + + using namespace Sexy; +@@ -1780,10 +1781,10 @@ + + SWHelper::XYZStruct aVerts[4] = + { +- { -w2, -h2, u0, v0, 0xFFFFFFFF }, +- { w2, -h2, u1, v0, 0xFFFFFFFF }, +- { -w2, h2, u0, v1, 0xFFFFFFFF }, +- { w2, h2, u1, v1, 0xFFFFFFFF } ++ { -w2, -h2, u0, v0, -1 }, ++ { w2, -h2, u1, v0, -1 }, ++ { -w2, h2, u0, v1, -1 }, ++ { w2, h2, u1, v1, -1 } + }; + + for (int i=0; i<4; i++) +--- libtuxcap-1.4.0.dfsg2.orig/tuxcap/lib/Physics.cpp ++++ libtuxcap-1.4.0.dfsg2/tuxcap/lib/Physics.cpp +@@ -128,7 +128,7 @@ + cpSpaceStep(space, delta); + listener->AfterPhysicsStep(); + +- std::pair* > p = std::make_pair* >(listener, &objects); ++ std::pair* > p = std::make_pair(listener, &objects); + + cpArrayEach(space->arbiters, &AllCollisions, &p); + } +@@ -453,7 +453,7 @@ + } + ++vit; + } +- v->push_back(std::make_pair(start,end)); ++ v->push_back(std::make_pair(start,end)); + } + + bool Physics::IsJoined(const PhysicsObject* obj1, const PhysicsObject* obj2) const { --- libtuxcap-1.4.0.dfsg2.orig/debian/patches/includes.patch +++ libtuxcap-1.4.0.dfsg2/debian/patches/includes.patch @@ -0,0 +1,24 @@ +Index: libtuxcap-1.4.0/tuxcap/include/MTRand.h +=================================================================== +--- libtuxcap-1.4.0.orig/tuxcap/include/MTRand.h 2010-01-14 13:16:07.000000000 +0100 ++++ libtuxcap-1.4.0/tuxcap/include/MTRand.h 2010-01-14 13:22:34.000000000 +0100 +@@ -2,6 +2,7 @@ + #define __MTRAND_H__ + + #include ++#include + + namespace Sexy + { +Index: libtuxcap-1.4.0/tuxcap/include/ImageLib.h +=================================================================== +--- libtuxcap-1.4.0.orig/tuxcap/include/ImageLib.h 2010-01-14 13:22:40.000000000 +0100 ++++ libtuxcap-1.4.0/tuxcap/include/ImageLib.h 2010-01-14 13:22:54.000000000 +0100 +@@ -2,6 +2,7 @@ + #define __IMAGELIB_H__ + + #include ++#include + + namespace ImageLib + { --- libtuxcap-1.4.0.dfsg2.orig/debian/patches/kfreebsd.patch +++ libtuxcap-1.4.0.dfsg2/debian/patches/kfreebsd.patch @@ -0,0 +1,13 @@ +--- a/tuxcap/include/Physics.h ++++ b/tuxcap/include/Physics.h +@@ -31,8 +31,10 @@ + #include "chipmunk.h" + #include "PhysicsListener.h" + #include "SexyVector.h" ++#if defined(linux) + #include + typedef __u32 uint32_t; ++#endif + + + namespace Sexy --- libtuxcap-1.4.0.dfsg2.orig/debian/patches/no_fsck_32bit_colors.patch +++ libtuxcap-1.4.0.dfsg2/debian/patches/no_fsck_32bit_colors.patch @@ -0,0 +1,43 @@ +# Copyright (C) 2009 Evgeni Golov +# Distributed under the same license as the software. See debian/copyright. + +--- libtuxcap-1.4.0.orig/tuxcap/lib/SexyAppBase.cpp ++++ libtuxcap-1.4.0/tuxcap/lib/SexyAppBase.cpp +@@ -264,7 +264,7 @@ + mExitToTop = false; + mWidth = 640; + mHeight = 480; +- mFullscreenBits = 32; //FIXME ++ mFullscreenBits = 0; //FIXME + mIsWindowed = true; + mIsPhysWindowed = true; + mFullScreenWindow = false; +@@ -6172,22 +6172,22 @@ + + if (mDDInterface->mIs3D) { + //FIXME hardcoded values +- SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 8 ); +- SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 8 ); +- SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 8 ); +- SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 8 ); ++ SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 ); ++ SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 ); ++ SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 ); ++ SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 ); + SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); + + if (surface != NULL) { + SDL_FreeSurface(surface); + } +- surface = SDL_SetVideoMode(mWidth,mHeight,32, SDL_OPENGL); ++ surface = SDL_SetVideoMode(mWidth,mHeight,0, SDL_OPENGL); + } + else { + if (surface != NULL) { + SDL_FreeSurface(surface); + } +- surface = SDL_SetVideoMode(mWidth,mHeight,32, SDL_DOUBLEBUF | SDL_HWSURFACE); ++ surface = SDL_SetVideoMode(mWidth,mHeight,0, SDL_DOUBLEBUF | SDL_HWSURFACE); + } + + if (surface == NULL) --- libtuxcap-1.4.0.dfsg2.orig/debian/patches/particles_res.patch +++ libtuxcap-1.4.0.dfsg2/debian/patches/particles_res.patch @@ -0,0 +1,15 @@ +# Copyright (C) 2009 Miriam Ruiz +# Distributed under the same license as the software. See debian/copyright. + +--- libtuxcap-1.4.0.orig/tuxcap/hgeparticle/hgeparticle.cpp ++++ libtuxcap-1.4.0/tuxcap/hgeparticle/hgeparticle.cpp +@@ -58,7 +58,8 @@ + bInitOK = false; + + // LOAD FROM FILE +- FILE *fp = fopen( filename, "rb" ); ++ std::string fullfilename = Sexy::ReplaceBackSlashes(Sexy::GetAppResourceFolder() + filename); ++ FILE *fp = fopen( fullfilename.c_str(), "rb" ); + if( fp == NULL ) + return ; + --- libtuxcap-1.4.0.dfsg2.orig/debian/patches/series +++ libtuxcap-1.4.0.dfsg2/debian/patches/series @@ -0,0 +1,8 @@ +cmakelists.patch +no_fsck_32bit_colors.patch +particles_res.patch +abs_dirs.patch +includes.patch +kfreebsd.patch +cmake_imagemagick.patch +gcc6.patch --- libtuxcap-1.4.0.dfsg2.orig/debian/rules +++ libtuxcap-1.4.0.dfsg2/debian/rules @@ -0,0 +1,126 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +LDFLAGS=-Wl,--as-needed -Wl,-z,defs -Wl,--no-undefined + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +patch: + $(MAKE) -f /usr/share/quilt/quilt.make patch + +config: config-stamp +config-stamp: + dh_testdir + mkdir -p debian/tmp-build + cp tuxcap-build/* debian/tmp-build -r + cd debian/tmp-build && cmake --debug-output \ + -D CMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ + -D CMAKE_CXX_FLAGS_RELWITHDEBINFO="${CFLAGS} -g" \ + -D CMAKE_C_FLAGS_RELWITHDEBINFO="${CFLAGS} -g" \ + -D CMAKE_CXX_FLAGS_RELEASE="${CFLAGS}" \ + -D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \ + -D CMAKE_CXX_FLAGS_DEBUG="${CFLAGS} -g" \ + -D CMAKE_C_FLAGS_DEBUG="${CFLAGS} -g" \ + -D CMAKE_SKIP_RPATH=true \ + -D CMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \ + -D CMAKE_VERBOSE_MAKEFILE=true \ + -D CMAKE_INSTALL_PREFIX=/usr \ + $(CURDIR) + touch $@ + +build: build-stamp +build-stamp: patch config-stamp + dh_testdir + cd debian/tmp-build && $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp config-stamp + rm -rf debian/tmp-build + $(MAKE) -f /usr/share/quilt/quilt.make unpatch + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + cd debian/tmp-build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installchangelogs CHANGELOG -i + dh_installdocs -i + dh_installexamples -i + dh_install -i + dh_link -i + dh_compress -i + dh_fixperms -i + test -e /usr/bin/dh_buildinfo && dh_buildinfo -i + dh_installdeb -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installchangelogs CHANGELOG -a + dh_installdocs -a + dh_installexamples -a + cd debian/libtuxcap-dev/usr/share/doc/libtuxcap-dev/examples/ && \ + patch -p2 < $(CURDIR)/debian/demos.patch + dh_install -a +# dh_installmenu -a +# dh_installdebconf -a + dh_installman -a + dh_link -a + dh_strip --dbg-package=libtuxcap4.0-dbg -a + dh_compress -a + dh_fixperms -a +# dh_perl -a +# dh_python -a + dh_makeshlibs -a + test -e /usr/bin/dh_buildinfo && dh_buildinfo -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +get-orig-source: + dh_testdir + dh_testroot + rm -f libtuxcap-1.4.0.tar.gz + wget http://downloads.sourceforge.net/project/tuxcap/tuxcap/libtuxcap-1.4.0/libtuxcap-1.4.0.tar.gz?use_mirror=surfnet + rm -rf libtuxcap-1.4.0 + tar xvfz libtuxcap-1.4.0.tar.gz + rm libtuxcap-1.4.0.tar.gz + rm -f `find libtuxcap-1.4.0 -name "*.ogg"` + rm -f `find libtuxcap-1.4.0 -name "*.gif"` + rm -f `find libtuxcap-1.4.0 -name "*.png"` + rm -f libtuxcap-1.4.0/fonts/* + rm -f libtuxcap-1.4.0/images/* + rm -f libtuxcap-1.4.0/music/* + rm -f libtuxcap-1.4.0/sounds/* + rm -f libtuxcap-1.4.0/doc/*.pdf + rm -f ../libtuxcap_1.4.0.dfsg2.orig.tar.gz + tar cvfz ../libtuxcap_1.4.0.dfsg2.orig.tar.gz libtuxcap-1.4.0 + rm -r libtuxcap-1.4.0 + +binary: binary-indep binary-arch +.PHONY: patch config build clean binary-indep binary-arch binary install get-orig-source