--- igstk-3.0.0~cvs20080716.orig/debian/control +++ igstk-3.0.0~cvs20080716/debian/control @@ -0,0 +1,60 @@ +Source: igstk +Priority: optional +Maintainer: Debian-Med Packaging Team +DM-Upload-Allowed: yes +Uploaders: Dominique Belhachemi , Steve M. Robbins +Build-Depends: debhelper (>= 6), dpatch, cmake, libinsighttoolkit3-dev, libvtk5-dev, + zlib1g-dev, libfreetype6-dev, libxext-dev, libpng-dev, libjpeg-dev, libtiff-dev, + libexpat1-dev, libqt4-dev, libvtk5-qt4-dev, libfltk1.1-dev, fluid +Standards-Version: 3.8.0 +Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/igstk/trunk/?rev=0&sc=0 +Vcs-Svn: svn://svn.debian.org/svn/debian-med/trunk/packages/igstk/trunk/ +Section: libs +Homepage: http://www.igstk.org + + +Package: libigstk3-dev +Section: libdevel +Architecture: any +Depends: libigstk3 (= ${binary:Version}), ${shlibs:Depends}, libinsighttoolkit3-dev, libvtk5-dev +Suggests: libqt4-dev, libvtk5-qt4-dev, libfltk1.1-dev +Description: Toolkit for image-guided surgery applications + This package contains the development files needed to build + your own IGSTK applications. + + +Package: libigstk3 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Toolkit for image-guided surgery applications + The Image-Guided Surgery Toolkit (IGstk: pronounced IGStick) is a + high-level component-based framework providing common functionality + for image-guided surgery applications. + . + This software framework consists of a set of high-level components + integrated with other low-level open source software libraries and + application programming interfaces (API) from hardware vendors. + . + The cornerstone of IGstk is robustness. IGstk provides the following + high-level functionality: + Ability to read and display medical images including CT and MRI in + DICOM format. + . + An interface to common tracking hardware (e.g. AURORA from + Northern Digital Inc.). A graphical user interface and visualization + capability including a four-quadrant view (axial, sagittal, coronal, + and 3D) as well as a multi-slice axial view (from 1 by 1 to many by + many such as 10 by 10). + . + Registration: point based registration and a means for selecting + these points. Robust common internal software services for logging, + exception-handling and problem resolution. + + +Package: igstk-examples +Architecture: all +Suggests: libigstk3-dev +Section: graphics +Description: Example programs for IGSTK + This package contains examples from the IGSTK source. --- igstk-3.0.0~cvs20080716.orig/debian/ctest_config.cmake +++ igstk-3.0.0~cvs20080716/debian/ctest_config.cmake @@ -0,0 +1,32 @@ +SET (CTEST_SOURCE_DIRECTORY ".") +SET (CTEST_BINARY_DIRECTORY ".") + +# which ctest command to use for running the dashboard +SET (CTEST_COMMAND + "ctest -D Nightly -A ${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME} -VV" +) + +# what cmake command to use for configuring this dashboard +SET (CTEST_CMAKE_COMMAND + "cmake" +) + +# set any extra envionment varibles here +#SET (CTEST_ENVIRONMENT +# "DISPLAY=:0" +#) + +SET (CTEST_ENVIRONMENT + "DISPLAY=:0" + "CXX=/usr/bin/g++" + "CC=/usr/bin/gcc" +) + +SET (CTEST_INITIAL_CACHE " +//Name of the build +BUILDNAME:STRING=Debian_Sid_g++-4.2.4-3 +//Name of the computer/site where compile is being run +SITE:STRING=LINUX.DEBIAN.SID +") + + --- igstk-3.0.0~cvs20080716.orig/debian/compat +++ igstk-3.0.0~cvs20080716/debian/compat @@ -0,0 +1 @@ +6 --- igstk-3.0.0~cvs20080716.orig/debian/rules +++ igstk-3.0.0~cvs20080716/debian/rules @@ -0,0 +1,159 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +PACKAGE=igstk + +# DPatch +DEB_SOURCE_PACKAGE:=$(PACKAGE) +include /usr/share/dpatch/dpatch.make + +STATIC_BUILD_PATH = DEB_build_static +SHARED_BUILD_PATH = DEB_build_shared + +CMAKE_FLAGS = -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_CXX_FLAGS="-Wno-deprecated" \ + -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \ + -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed" \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ + -DBUILD_DOCUMENTATION:BOOL=ON \ + -DIGSTK_BUILD_EXAMPLES:BOOL=OFF \ + -DIGSTK_USE_Qt:BOOL=ON \ + -DIGSTK_USE_FLTK:BOOL=ON \ + -DQT_MOC_EXECUTABLE:PATH=/usr/bin/moc-qt4 \ + -DQT_UIC_EXECUTABLE:PATH=/usr/bin/uic-qt4 \ + -DQT_QMAKE_EXECUTABLE:PATH=/usr/bin/qmake \ + -DBUILDNAME:STRING=SID \ + -DSITE:STRING=DEBIAN \ + -DCTEST_ENVIRONMENT="DISPLAY=:0" + +# if using precompiled static library provided by Claron Tech.: +# -DIGSTK_USE_MicronTracker:BOOL=ON \ +# -DMTC_INCLUDE_DIRECTORY:PATH=/tmp/MTC/Dist \ +# -DMTC_LIBRARY:PATH=/tmp/MTC/Dist \ +# TODO: /usr/bin/ld: cannot find -lMTC \ + + +get-orig-source: + . debian/get-orig-source + + +configure: configure-stamp +configure-stamp: patch-stamp + dh_testdir + + + if [ ! -d $(STATIC_BUILD_PATH) ]; then mkdir $(STATIC_BUILD_PATH); fi + + # double execution (necessary) + cd $(STATIC_BUILD_PATH) \ + && cmake $(CURDIR) $(CMAKE_FLAGS) -DBUILD_SHARED_LIBS:BOOL=OFF + + cd $(STATIC_BUILD_PATH) \ + && cmake $(CURDIR) $(CMAKE_FLAGS) -DBUILD_SHARED_LIBS:BOOL=OFF + + + + if [ ! -d $(SHARED_BUILD_PATH) ]; then mkdir $(SHARED_BUILD_PATH); fi + + cd $(SHARED_BUILD_PATH) \ + && cmake $(CURDIR) $(CMAKE_FLAGS) -DBUILD_SHARED_LIBS:BOOL=ON + + cd $(SHARED_BUILD_PATH) \ + && cmake $(CURDIR) $(CMAKE_FLAGS) -DBUILD_SHARED_LIBS:BOOL=ON + + + touch configure-stamp + + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + + # build static libs + cd $(STATIC_BUILD_PATH) && $(MAKE) VERBOSE=1 + + # perform tests ('-' ignores return values) +# cd $(STATIC_BUILD_PATH) && ctest -S ../debian/ctest_config.cmake -VV +# - cd $(STATIC_BUILD_PATH) && ctest -D Nightly -VV + - cd $(STATIC_BUILD_PATH) && ctest -VV + + # build shared libs and binaries + cd $(SHARED_BUILD_PATH) && $(MAKE) VERBOSE=1 + + # build documentation + cd $(SHARED_BUILD_PATH) && $(MAKE) Documentation VERBOSE=1 + + + touch $@ + +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + rm -rf $(STATIC_BUILD_PATH) + rm -rf $(SHARED_BUILD_PATH) + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + + # install examples + dh_installexamples -pigstk-examples Examples/* + find debian/igstk-examples/usr/share/doc/igstk-examples/examples \ + -type f -print0 | xargs -0 chmod 644 + + + # install binaries and static libs + cd $(STATIC_BUILD_PATH) && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + + + # install development files + dh_install -plibigstk3-dev debian/tmp/usr/include/IGSTK/* usr/include/IGSTK/ + + + # install libs and *cmake files + dh_install -plibigstk3-dev debian/tmp/usr/lib/IGSTK/*.a usr/lib + dh_install -plibigstk3-dev $(SHARED_BUILD_PATH)/bin/*.so usr/lib + dh_install -plibigstk3-dev debian/tmp/usr/lib/IGSTK/*.cmake usr/lib/IGSTK + + dh_install -plibigstk3 $(SHARED_BUILD_PATH)/bin/*.so.* usr/lib + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_install + dh_installchangelogs + dh_installdocs + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- igstk-3.0.0~cvs20080716.orig/debian/changelog +++ igstk-3.0.0~cvs20080716/debian/changelog @@ -0,0 +1,6 @@ +igstk (3.0.0~cvs20080716-1) unstable; urgency=low + + * Initial release (Closes: #490627) + + -- Dominique Belhachemi Tue, 24 Jun 2008 20:51:56 +0200 + --- igstk-3.0.0~cvs20080716.orig/debian/copyright +++ igstk-3.0.0~cvs20080716/debian/copyright @@ -0,0 +1,72 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Debianized-By: Dominique Belhachemi +Debianized-Date: Tue, 24 Jun 2008 20:51:56 +0200 +Original-Source: http://www.igstk.org/ + + +Files: debian/* +Copyright: 2008, Dominique Belhachemi +License: GPL-2+ + The Debian packaging is licensed under the GPL, + see `/usr/share/common-licenses/GPL' + + +Files: Utilities/MicronTracker/* +Copyright: Claron Technology Inc. +License: BSD-like + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + * The name of the Claron Technology, nor of any contributors, may be used to + endorse or promote products derived from this software without specific + prior written permission. + . + * Modified source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS 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. + + +Files: * +Copyright: 2002-2008 Insight Software Consortium +License: BSD-like + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + * Neither the name of the Insight Software Consortium nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 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. --- igstk-3.0.0~cvs20080716.orig/debian/README.Debian +++ igstk-3.0.0~cvs20080716/debian/README.Debian @@ -0,0 +1,12 @@ +igstk for Debian +---------------- + + Some examples using this library can be found in the repository. + + cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK login + answer by 'igstk' + cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK co IGSTKSandbox + + +-- Dominique Belhachemi Tue, 24 Jun 2008 20:51:56 +0200 + --- igstk-3.0.0~cvs20080716.orig/debian/get-orig-source +++ igstk-3.0.0~cvs20080716/debian/get-orig-source @@ -0,0 +1,34 @@ +PACKAGE=igstk + +#VERSION=3.0.0 +VERSION=3.0.0~cvs20080716 +CVSDATE="16 Jul 2008" + +FOLDER=$PACKAGE-$VERSION +TARFILE=igstk_$VERSION.orig.tar.gz +CVSHOME=:pserver:anonymous@public.kitware.com:/cvsroot/IGSTK + +echo "ENTER PASSWORD : igstk" +cvs -d$CVSHOME login +cvs -d$CVSHOME co -D "$CVSDATE" IGSTK + + +# Remove all CVS directories +echo "Removing all CVS directories" +for REMOVE_CVS in `find IGSTK -name CVS`; do + rm -rf "$REMOVE_CVS" +done + + +mv IGSTK/ igstk-$VERSION + +# Create the tarball +if [ ! -f igstk_$VERSION.orig.tar.gz ]; then + echo "Creating orig tarball." + tar -czf igstk_$VERSION.orig.tar.gz igstk-$VERSION/ + echo "Removing extracted directory." + rm -rf igstk-$VERSION/ +else + echo "Already found orig tarball." + exit 1 +fi --- igstk-3.0.0~cvs20080716.orig/debian/patches/70_vtk_use_qvtk.dpatch +++ igstk-3.0.0~cvs20080716/debian/patches/70_vtk_use_qvtk.dpatch @@ -0,0 +1,25 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 70_vtk_use_qvtk.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Not necessary: Check if VTK was built with Qt on, VTK_USE_QVTK could not be found + +@DPATCH@ +diff -urNad igstk-3.0.0~cvs20080716~/CMakeLists.txt igstk-3.0.0~cvs20080716/CMakeLists.txt +--- igstk-3.0.0~cvs20080716~/CMakeLists.txt 2008-07-15 15:12:38.000000000 +0200 ++++ igstk-3.0.0~cvs20080716/CMakeLists.txt 2008-07-15 18:55:26.000000000 +0200 +@@ -108,10 +108,10 @@ + ENDIF( NOT VTK_USE_GUISUPPORT ) + + # Check if VTK was built with Qt on +- IF( NOT VTK_USE_QVTK ) +- MESSAGE(FATAL_ERROR "To build IGSTK with Qt support, you will need to use a VTK +-build with Qt support i.e VTK_USE_QVTK turned on in VTK configuration") +- ENDIF( NOT VTK_USE_QVTK ) ++# IF( NOT VTK_USE_QVTK ) ++# MESSAGE(FATAL_ERROR "To build IGSTK with Qt support, you will need to use a VTK ++#build with Qt support i.e VTK_USE_QVTK turned on in VTK configuration") ++# ENDIF( NOT VTK_USE_QVTK ) + + # use what QVTK built with + SET(QT_QMAKE_EXECUTABLE ${VTK_QT_QMAKE_EXECUTABLE} CACHE FILEPATH "") --- igstk-3.0.0~cvs20080716.orig/debian/patches/90_cmake_minimum_required.dpatch +++ igstk-3.0.0~cvs20080716/debian/patches/90_cmake_minimum_required.dpatch @@ -0,0 +1,35 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 90_cmake_minimum_required.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Makes the example cmake 2.6 ready, The example can now be built from outside the source directory + +@DPATCH@ +diff -urNad igstk-3.0.0~cvs20080716~/Examples/HelloWorld/CMakeLists.txt igstk-3.0.0~cvs20080716/Examples/HelloWorld/CMakeLists.txt +--- igstk-3.0.0~cvs20080716~/Examples/HelloWorld/CMakeLists.txt 2006-01-28 20:45:13.000000000 +0100 ++++ igstk-3.0.0~cvs20080716/Examples/HelloWorld/CMakeLists.txt 2008-07-15 18:55:44.000000000 +0200 +@@ -1,4 +1,24 @@ ++cmake_minimum_required(VERSION 2.6) ++ + PROJECT(HelloWorld) ++ ++INCLUDE( /usr/lib/IGSTK/IGSTKConfig.cmake ) ++INCLUDE( /usr/lib/IGSTK/UseIGSTK.cmake ) ++ ++FIND_PACKAGE(FLTK) ++ IF (FLTK_FOUND) ++ INCLUDE_DIRECTORIES (${FLTK_INCLUDE_DIR}) ++ IF(WIN32) ++ ADD_DEFINITIONS(-DWIN32) ++ ENDIF(WIN32) ++ LINK_LIBRARIES( ${FLTK_LIBRARIES} ${OPENGL_LIBRARIES} ) ++ IF(CYGWIN) ++ LINK_LIBRARIES( ole32 uuid comctl32 wsock32 supc++ -lm -lgdi32) ++ ENDIF(CYGWIN) ++ ELSE (FLTK_FOUND) ++ MESSAGE( FATAL_ERROR "This application requires FLTK. One of these components is missing. Please verify configuration") ++ ENDIF (FLTK_FOUND) ++ + + SET(HelloWorld_GUI_SRCS + HelloWorldGUI.fl --- igstk-3.0.0~cvs20080716.orig/debian/patches/00list +++ igstk-3.0.0~cvs20080716/debian/patches/00list @@ -0,0 +1,2 @@ +70_vtk_use_qvtk.dpatch +90_cmake_minimum_required.dpatch