r9832 - in packages/trunk/libtuxcap/debian: . patches
Miriam Ruiz
miriam at alioth.debian.org
Tue Jun 9 11:04:33 UTC 2009
Author: miriam
Date: 2009-06-09 11:04:32 +0000 (Tue, 09 Jun 2009)
New Revision: 9832
Added:
packages/trunk/libtuxcap/debian/demos.patch
packages/trunk/libtuxcap/debian/libtuxcap-demos.install
Modified:
packages/trunk/libtuxcap/debian/control
packages/trunk/libtuxcap/debian/patches/cmakelists.patch
packages/trunk/libtuxcap/debian/rules
Log:
Create its own package with the source of the demos
Still pending: checking the licenses of the demo files
Modified: packages/trunk/libtuxcap/debian/control
===================================================================
--- packages/trunk/libtuxcap/debian/control 2009-06-09 10:16:07 UTC (rev 9831)
+++ packages/trunk/libtuxcap/debian/control 2009-06-09 11:04:32 UTC (rev 9832)
@@ -35,6 +35,18 @@
.
This package contains the library headers and documentation for developers.
+Package: libtuxcap-demos
+Section: libdevel
+Architecture: all
+Recommends: libtuxcap-dev (= ${binary:Version})
+Description: framework for developing 2D games - demos source
+ 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 source for some of the framework demos.
+
Package: libtuxcap4.0-dbg
Section: debug
Architecture: any
Added: packages/trunk/libtuxcap/debian/demos.patch
===================================================================
--- packages/trunk/libtuxcap/debian/demos.patch (rev 0)
+++ packages/trunk/libtuxcap/debian/demos.patch 2009-06-09 11:04:32 UTC (rev 9832)
@@ -0,0 +1,988 @@
+# Copyright (C) 2009 Miriam Ruiz <little_miry at yahoo.es>
+# Distributed under the same license as the game. See debian/copyright.
+
+Index: libtuxcap-1.4.0/tuxcap/demo1/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/demo1/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/demo1/CMakeLists.txt 2009-06-09 12:14:50.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/demo2/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/demo2/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/demo2/CMakeLists.txt 2009-06-09 12:18:22.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/demo3/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/demo3/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/demo3/CMakeLists.txt 2009-06-09 12:18:33.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/demo4/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/demo4/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/demo4/CMakeLists.txt 2009-06-09 12:18:46.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/demo5/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/demo5/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/demo5/CMakeLists.txt 2009-06-09 12:18:09.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/hungarr/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/hungarr/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/hungarr/CMakeLists.txt 2009-06-09 12:23:22.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/particledemo/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/particledemo/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/particledemo/CMakeLists.txt 2009-06-09 12:28:38.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/physicsdemo/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/physicsdemo/CMakeLists.txt 2009-06-09 12:32:23.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/physicsdemo2/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo2/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/physicsdemo2/CMakeLists.txt 2009-06-09 12:34:28.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/physicsdemo3/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo3/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/physicsdemo3/CMakeLists.txt 2009-06-09 12:31:00.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/physicsdemo4/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo4/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/physicsdemo4/CMakeLists.txt 2009-06-09 12:30:55.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/physicsdemo5/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo5/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/physicsdemo5/CMakeLists.txt 2009-06-09 12:31:19.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/physicsdemo6/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo6/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/physicsdemo6/CMakeLists.txt 2009-06-09 12:31:44.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/physicsdemo7/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo7/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/physicsdemo7/CMakeLists.txt 2009-06-09 12:32:03.000000000 +0200
+@@ -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)
+Index: libtuxcap-1.4.0/tuxcap/pythondemo1/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/pythondemo1/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/pythondemo1/CMakeLists.txt 2009-06-09 12:37:24.000000000 +0200
+@@ -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.5/)
+
+ 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)
+Index: libtuxcap-1.4.0/tuxcap/pythondemo2/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/pythondemo2/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/pythondemo2/CMakeLists.txt 2009-06-09 12:38:31.000000000 +0200
+@@ -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.5/)
+
+ 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)
+Index: libtuxcap-1.4.0/tuxcap/pythondemo_template/CMakeLists.txt
+===================================================================
+--- libtuxcap-1.4.0.orig/tuxcap/pythondemo_template/CMakeLists.txt 2009-06-09 12:55:02.000000000 +0200
++++ libtuxcap-1.4.0/tuxcap/pythondemo_template/CMakeLists.txt 2009-06-09 12:39:45.000000000 +0200
+@@ -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.5/)
+
+ 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)
Added: packages/trunk/libtuxcap/debian/libtuxcap-demos.install
===================================================================
--- packages/trunk/libtuxcap/debian/libtuxcap-demos.install (rev 0)
+++ packages/trunk/libtuxcap/debian/libtuxcap-demos.install 2009-06-09 11:04:32 UTC (rev 9832)
@@ -0,0 +1,10 @@
+tuxcap/*demo* usr/share/libtuxcap-demos/
+tuxcap/hungarr usr/share/libtuxcap-demos/
+tuxcap-build/fonts usr/share/libtuxcap-demos/
+tuxcap-build/images usr/share/libtuxcap-demos/
+tuxcap-build/music usr/share/libtuxcap-demos/
+tuxcap-build/properties usr/share/libtuxcap-demos/
+tuxcap-build/sounds usr/share/libtuxcap-demos/
+tuxcap-build/pythondemo1/*.py usr/share/libtuxcap-demos/pythondemo1/
+tuxcap-build/pythondemo2/*.py usr/share/libtuxcap-demos/pythondemo2/
+tuxcap-build/pythondemo_template/*.py usr/share/libtuxcap-demos/pythondemo_template/
Modified: packages/trunk/libtuxcap/debian/patches/cmakelists.patch
===================================================================
--- packages/trunk/libtuxcap/debian/patches/cmakelists.patch 2009-06-09 10:16:07 UTC (rev 9831)
+++ packages/trunk/libtuxcap/debian/patches/cmakelists.patch 2009-06-09 11:04:32 UTC (rev 9832)
@@ -1,4 +1,4 @@
-# Copyright (C) 2008 Miriam Ruiz <little_miry at yahoo.es>
+# Copyright (C) 2008-2009 Miriam Ruiz <little_miry at yahoo.es>
# Distributed under the same license as the game. See debian/copyright.
Index: libtuxcap-1.4.0/tuxcap/CMakeLists.txt
Modified: packages/trunk/libtuxcap/debian/rules
===================================================================
--- packages/trunk/libtuxcap/debian/rules 2009-06-09 10:16:07 UTC (rev 9831)
+++ packages/trunk/libtuxcap/debian/rules 2009-06-09 11:04:32 UTC (rev 9832)
@@ -60,30 +60,47 @@
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
+ cd debian/libtuxcap-demos/usr/share/libtuxcap-demos/ && \
+ patch -p2 < $(CURDIR)/debian/demos.patch
+ 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
- dh_testroot
- dh_installchangelogs CHANGELOG
- dh_installdocs
- dh_installexamples
- dh_install
-# dh_installmenu
-# dh_installdebconf
- dh_installman
- dh_link
- dh_strip --dbg-package=libtuxcap4.0-dbg
- dh_compress
- dh_fixperms
-# dh_perl
-# dh_python
- dh_makeshlibs
- test -e /usr/bin/dh_buildinfo && dh_buildinfo
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ dh_testdir -a
+ dh_testroot -a
+ dh_installchangelogs CHANGELOG -a
+ dh_installdocs -a
+ dh_installexamples -a
+ 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
binary: binary-indep binary-arch
.PHONY: patch config build clean binary-indep binary-arch binary install
More information about the Pkg-games-commits
mailing list