[packages/dcmtk] - up to 3.6.1 snap (patches from FC)

arekm arekm at pld-linux.org
Sun Aug 7 20:30:39 CEST 2016


commit 0311e0942bd22a832969349a9b5e76a7aa63505b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Aug 7 20:30:32 2016 +0200

    - up to 3.6.1 snap (patches from FC)

 ...-Added-soname-information-for-all-targets.patch |  59 --
 ...0002-Install-libs-in-the-correct-arch-dir.patch |  25 -
 ...ved-bundled-libcharl-reference-in-dcmjpls.patch |  22 -
 dcmtk-0004-Use-system-charls.patch                 | 120 ---
 dcmtk-0005-Fixed-includes-for-CharLS-1.0.patch     |  53 --
 ...nal-support-for-building-shared-libraries.patch | 143 ---
 ...generation-for-modules-which-are-not-in-D.patch |  39 -
 dcmtk-0008-Compiler-Fixes.patch                    | 965 ---------------------
 dcmtk-configure.patch                              | 505 -----------
 dcmtk-etc.patch                                    |  40 +-
 dcmtk-libi2d.patch                                 |  11 -
 dcmtk-link.patch                                   | 150 ----
 dcmtk.spec                                         | 118 ++-
 13 files changed, 78 insertions(+), 2172 deletions(-)
---
diff --git a/dcmtk.spec b/dcmtk.spec
index 6192167..40e5826 100644
--- a/dcmtk.spec
+++ b/dcmtk.spec
@@ -3,27 +3,22 @@
 #   are libjpeg 6b with some arithmetic and lossless patches applied;
 #   libjpeg 8 already inclded arithmetic encoding support, but not lossless)
 #
+%define	snap	20160630
 Summary:	DICOM Toolkit - implementation of DICOM/MEDICOM standard
 Summary(pl.UTF-8):	Narzędzia DICOM - implementacja standardu DICOM/MEDICOM
 Name:		dcmtk
-Version:	3.6.0
-Release:	4
+Version:	3.6.1
+Release:	0.%{snap}.1
 License:	BSD
 Group:		Libraries
-Source0:	ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk360/%{name}-%{version}.tar.gz
-# Source0-md5:	19409e039e29a330893caea98715390e
-Patch0:		%{name}-configure.patch
-Patch1:		%{name}-0001-Added-soname-information-for-all-targets.patch
-Patch2:		%{name}-0002-Install-libs-in-the-correct-arch-dir.patch
-Patch3:		%{name}-0003-Removed-bundled-libcharl-reference-in-dcmjpls.patch
-Patch4:		%{name}-0004-Use-system-charls.patch
-Patch5:		%{name}-0005-Fixed-includes-for-CharLS-1.0.patch
-Patch6:		%{name}-0006-Added-optional-support-for-building-shared-libraries.patch
-Patch7:		%{name}-0007-Add-soname-generation-for-modules-which-are-not-in-D.patch
-Patch8:		%{name}-link.patch
-Patch9:		%{name}-libi2d.patch
-Patch10:	%{name}-etc.patch
-Patch11:	%{name}-0008-Compiler-Fixes.patch
+Source0:	http://dicom.offis.de/download/dcmtk/snapshot/%{name}-%{version}_%{snap}.tar.gz
+# Source0-md5:	8a15ed7ce05ba03184af18ce9837db9b
+Patch0:		%{name}-3.6.0-0005-Fixed-includes-for-CharLS-1.0.patch
+Patch1:		%{name}-3.6.1-0001-Removed-reference-to-bundled-libcharls.patch
+Patch2:		%{name}-3.6.1-0002-Find-and-include-CharLS.patch
+Patch3:		%{name}-3.6.1-0003-Create-FindCharLS.cmake.patch
+Patch4:		%{name}-3.6.1-0004-Use-cmake-suggested-location-for-CharLS.patch
+Patch5:		%{name}-etc.patch
 URL:		http://dicom.offis.de/dcmtk
 BuildRequires:	CharLS-devel
 BuildRequires:	cmake >= 2.4
@@ -70,32 +65,31 @@ Header files for DCMTK libraries.
 Pliki nagłówkowe bibliotek DCMTK.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}_%{snap}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
-%patch10 -p1
-%patch11 -p1
 
 # enforce system CharLS
 %{__rm} -r dcmjpls/libcharls
 
 %build
 %cmake . \
-	-DDCMTK_WITH_OPENSSL=ON \
-	-DDCMTK_WITH_PNG=ON \
-	-DDCMTK_WITH_PRIVATE_TAGS=ON \
-	-DDCMTK_WITH_TIFF=ON \
-	-DDCMTK_WITH_XML=ON \
+	-DDCMTK_INSTALL_ETCDIR=%{_sysconfdir}/%{name} \
+	-DDCMTK_INSTALL_LIBDIR=%{_lib} \
+	-DDCMTK_INSTALL_CMKDIR=%{_lib}/cmake/dcmtk \
+	-DBUILD_APPS:BOOL=ON \
+	-DBUILD_SHARED_LIBS:BOOL=ON \
+	-DDCMTK_WITH_OPENSSL:BOOL=ON \
+	-DDCMTK_WITH_PNG:BOOL=ON \
+	-DDCMTK_WITH_PRIVATE_TAGS:BOOL=ON \
+	-DDCMTK_WITH_TIFF:BOOL=ON \
+	-DDCMTK_WITH_XML:BOOL=ON \
 	-DDCMTK_WITH_CHARLS=ON \
-	-DDCMTK_WITH_ZLIB=ON
+	-DDCMTK_WITH_ZLIB:BOOL=ON
 
 %{__make}
 
@@ -115,18 +109,25 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ANNOUNCE.360 CHANGES.360 COPYRIGHT FAQ HISTORY README dcmdata/docs/datadict.txt dcmnet/docs/asconfig.txt dcmqrdb/docs/dcmqr*.txt dcmtls/docs/ciphers.txt dcmwlm/docs/wwwapp.txt
+%doc ANNOUNCE CHANGES COPYRIGHT FAQ HISTORY README
+%doc dcmdata/docs/datadict.txt dcmnet/docs/asconfig.txt
+%doc dcmqrdb/docs/dcmqr*.txt dcmtls/docs/ciphers.txt
 %attr(755,root,root) %{_bindir}/dcm*
 %attr(755,root,root) %{_bindir}/dcod2lum
 %attr(755,root,root) %{_bindir}/dconvlum
+%attr(755,root,root) %{_bindir}/drtdump
+%attr(755,root,root) %{_bindir}/drttest
 %attr(755,root,root) %{_bindir}/dsr2html
 %attr(755,root,root) %{_bindir}/dsr2xml
 %attr(755,root,root) %{_bindir}/dsrdump
 %attr(755,root,root) %{_bindir}/dump2dcm
 %attr(755,root,root) %{_bindir}/echoscu
 %attr(755,root,root) %{_bindir}/findscu
+%attr(755,root,root) %{_bindir}/getscu
 %attr(755,root,root) %{_bindir}/img2dcm
+%attr(755,root,root) %{_bindir}/mkreport
 %attr(755,root,root) %{_bindir}/movescu
+%attr(755,root,root) %{_bindir}/ofstd_tests
 %attr(755,root,root) %{_bindir}/pdf2dcm
 %attr(755,root,root) %{_bindir}/storescp
 %attr(755,root,root) %{_bindir}/storescu
@@ -146,12 +147,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/dcm*.1*
 %{_mandir}/man1/dcod2lum.1*
 %{_mandir}/man1/dconvlum.1*
+%{_mandir}/man1/drtdump.1*
 %{_mandir}/man1/dsr2html.1*
 %{_mandir}/man1/dsr2xml.1*
 %{_mandir}/man1/dsrdump.1*
 %{_mandir}/man1/dump2dcm.1*
 %{_mandir}/man1/echoscu.1*
 %{_mandir}/man1/findscu.1*
+%{_mandir}/man1/getscu.1*
 %{_mandir}/man1/img2dcm.1*
 %{_mandir}/man1/movescu.1*
 %{_mandir}/man1/pdf2dcm.1*
@@ -164,56 +167,74 @@ rm -rf $RPM_BUILD_ROOT
 
 %files libs
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcmr.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcmr.so.9
 %attr(755,root,root) %{_libdir}/libdcmdata.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmdata.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmdata.so.9
 %attr(755,root,root) %{_libdir}/libdcmdsig.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmdsig.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmdsig.so.9
+%attr(755,root,root) %{_libdir}/libdcmfg.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libdcmfg.so.9
 %attr(755,root,root) %{_libdir}/libdcmimage.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmimage.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmimage.so.9
 %attr(755,root,root) %{_libdir}/libdcmimgle.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmimgle.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmimgle.so.9
+%attr(755,root,root) %{_libdir}/libdcmiod.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libdcmiod.so.9
 %attr(755,root,root) %{_libdir}/libdcmjpeg.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmjpeg.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmjpeg.so.9
 %attr(755,root,root) %{_libdir}/libdcmjpls.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmjpls.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmjpls.so.9
 %attr(755,root,root) %{_libdir}/libdcmnet.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmnet.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmnet.so.9
 %attr(755,root,root) %{_libdir}/libdcmpstat.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmpstat.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmpstat.so.9
 %attr(755,root,root) %{_libdir}/libdcmqrdb.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmqrdb.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmqrdb.so.9
+%attr(755,root,root) %{_libdir}/libdcmrt.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libdcmrt.so.9
+%attr(755,root,root) %{_libdir}/libdcmseg.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libdcmseg.so.9
 %attr(755,root,root) %{_libdir}/libdcmsr.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmsr.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmsr.so.9
+%attr(755,root,root) %{_libdir}/libdcmtract.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libdcmtract.so.9
 %attr(755,root,root) %{_libdir}/libdcmtls.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmtls.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmtls.so.9
 %attr(755,root,root) %{_libdir}/libdcmwlm.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdcmwlm.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libdcmwlm.so.9
 %attr(755,root,root) %{_libdir}/libi2d.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libi2d.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libi2d.so.9
 %attr(755,root,root) %{_libdir}/libijg12.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libijg12.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libijg12.so.9
 %attr(755,root,root) %{_libdir}/libijg16.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libijg16.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libijg16.so.9
 %attr(755,root,root) %{_libdir}/libijg8.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libijg8.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libijg8.so.9
 %attr(755,root,root) %{_libdir}/liboflog.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/liboflog.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/liboflog.so.9
 %attr(755,root,root) %{_libdir}/libofstd.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libofstd.so.3.6
+%attr(755,root,root) %ghost %{_libdir}/libofstd.so.9
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcmr.so
 %attr(755,root,root) %{_libdir}/libdcmdata.so
 %attr(755,root,root) %{_libdir}/libdcmdsig.so
+%attr(755,root,root) %{_libdir}/libdcmfg.so
 %attr(755,root,root) %{_libdir}/libdcmimage.so
 %attr(755,root,root) %{_libdir}/libdcmimgle.so
+%attr(755,root,root) %{_libdir}/libdcmiod.so
 %attr(755,root,root) %{_libdir}/libdcmjpeg.so
 %attr(755,root,root) %{_libdir}/libdcmjpls.so
 %attr(755,root,root) %{_libdir}/libdcmnet.so
 %attr(755,root,root) %{_libdir}/libdcmpstat.so
 %attr(755,root,root) %{_libdir}/libdcmqrdb.so
+%attr(755,root,root) %{_libdir}/libdcmrt.so
+%attr(755,root,root) %{_libdir}/libdcmseg.so
 %attr(755,root,root) %{_libdir}/libdcmsr.so
 %attr(755,root,root) %{_libdir}/libdcmtls.so
+%attr(755,root,root) %{_libdir}/libdcmtract.so
 %attr(755,root,root) %{_libdir}/libdcmwlm.so
 %attr(755,root,root) %{_libdir}/libi2d.so
 %attr(755,root,root) %{_libdir}/libijg12.so
@@ -221,4 +242,5 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libijg8.so
 %attr(755,root,root) %{_libdir}/liboflog.so
 %attr(755,root,root) %{_libdir}/libofstd.so
+%{_libdir}/cmake/dcmtk
 %{_includedir}/dcmtk
diff --git a/dcmtk-0001-Added-soname-information-for-all-targets.patch b/dcmtk-0001-Added-soname-information-for-all-targets.patch
deleted file mode 100644
index 6cdd613..0000000
--- a/dcmtk-0001-Added-soname-information-for-all-targets.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From 0465f8ceab739a0f096c97c31d43a934a6617099 Mon Sep 17 00:00:00 2001
-From: Mario Ceresa <mrceresa at gmail.com>
-Date: Sun, 20 Mar 2011 12:52:41 +0100
-Subject: [PATCH 1/6] Added soname information for all targets
-
----
- CMakeLists.txt |   25 +++++++++++++++++++++++--
- 1 files changed, 23 insertions(+), 2 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 446d478..62e7a6f 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -20,12 +20,21 @@ SET(DCMTK_MODULES config ofstd oflog dcmdata dcmimgle dcmjpeg dcmimage dcmtls dc
- SET(DCMTK_PACKAGE_NAME "dcmtk")
- SET(DCMTK_PACKAGE_DATE "2011-01-06")
- #SET(DCMTK_PACKAGE_TARNAME "dcmtk-3.6.0")
--SET(DCMTK_PACKAGE_VERSION "3.6.0")
--SET(DCMTK_PACKAGE_VERSION_NUMBER "360")
-+#SET(DCMTK_PACKAGE_VERSION "3.6.0")
-+#SET(DCMTK_PACKAGE_VERSION_NUMBER "360")
- SET(DCMTK_PACKAGE_VERSION_SUFFIX "")
- #SET(DCMTK_PACKAGE_STRING "dcmtk 3.6.0")
- #SET(DCMTK_PACKAGE_BUGREPORT "dicom-bugs at offis.de")
- 
-+SET(DCMTK_MAJOR_VERSION 3)
-+SET(DCMTK_MINOR_VERSION 6)
-+SET(DCMTK_BUILD_VERSION 0)
-+SET(DCMTK_PACKAGE_VERSION "${DCMTK_MAJOR_VERSION}.${DCMTK_MINOR_VERSION}.${DCMTK_BUILD_VERSION}")
-+SET(DCMTK_API_VERSION "${DCMTK_MAJOR_VERSION}.${DCMTK_MINOR_VERSION}")
-+SET(DCMTK_LIBRARY_PROPERTIES VERSION "${DCMTK_PACKAGE_VERSION}" SOVERSION "${DCMTK_API_VERSION}")
-+SET(DCMTK_PACKAGE_VERSION_NUMBER ${DCMTK_MAJOR_VERSION}${DCMTK_MINOR_VERSION}${DCMTK_BUILD_VERSION})
-+
-+
- # DCMTK build options
- OPTION(DCMTK_WITH_TIFF "Configure DCMTK with support for TIFF" ON)
- OPTION(DCMTK_WITH_PNG "Configure DCMTK with support for PNG" ON)
-@@ -295,6 +304,18 @@ ENDIF(WITH_THREADS)
- # Recurse into subdirectories
- FOREACH(module ${DCMTK_MODULES})
-   ADD_SUBDIRECTORY(${module})
-+  
-+# for each shared lib add proper soname information
-+    IF(BUILD_SHARED_LIBS)
-+	IF(${module} MATCHES config)
-+        # Skip config module
-+	ELSEIF(${module} MATCHES doxygen)
-+        # Skip doxygen module
-+        ELSE(${module} MATCHES config)
-+          SET_TARGET_PROPERTIES(${module} PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
-+        ENDIF(${module} MATCHES config)
-+    ENDIF(BUILD_SHARED_LIBS)
-+    
- ENDFOREACH(module)
- 
- #-----------------------------------------------------------------------------
--- 
-1.7.4
-
diff --git a/dcmtk-0002-Install-libs-in-the-correct-arch-dir.patch b/dcmtk-0002-Install-libs-in-the-correct-arch-dir.patch
deleted file mode 100644
index e0445e2..0000000
--- a/dcmtk-0002-Install-libs-in-the-correct-arch-dir.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 8401d7914ef110d5aca35bf7e1409341c533f1e4 Mon Sep 17 00:00:00 2001
-From: Mario Ceresa <mrceresa at gmail.com>
-Date: Sun, 20 Mar 2011 12:54:16 +0100
-Subject: [PATCH 2/6] Install libs in the correct arch dir
-
----
- CMakeLists.txt |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 62e7a6f..86b7601 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -82,7 +82,7 @@ INCLUDE_DIRECTORIES(${DCMTK_INCLUDE_DIR})
- 
- SET(INSTALL_BINDIR "/bin")
- SET(INSTALL_INCDIR "/include")
--SET(INSTALL_LIBDIR "/lib")
-+SET(INSTALL_LIBDIR "/lib${LIB_SUFFIX}")
- SET(INSTALL_ETCDIR "/etc/dcmtk")
- SET(INSTALL_DATDIR "/share/dcmtk")
- SET(INSTALL_DOCDIR "/share/doc/dcmtk")
--- 
-1.7.4
-
diff --git a/dcmtk-0003-Removed-bundled-libcharl-reference-in-dcmjpls.patch b/dcmtk-0003-Removed-bundled-libcharl-reference-in-dcmjpls.patch
deleted file mode 100644
index 18d2ab9..0000000
--- a/dcmtk-0003-Removed-bundled-libcharl-reference-in-dcmjpls.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 066d61eaecdf0731be99782649340ed141b1d1be Mon Sep 17 00:00:00 2001
-From: Mario Ceresa <mrceresa at gmail.com>
-Date: Sun, 20 Mar 2011 13:11:54 +0100
-Subject: [PATCH 3/6] Removed bundled libcharl reference in dcmjpls
-
----
- dcmjpls/CMakeLists.txt |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/dcmjpls/CMakeLists.txt b/dcmjpls/CMakeLists.txt
-index d89eedf..a6faf10 100644
---- a/dcmjpls/CMakeLists.txt
-+++ b/dcmjpls/CMakeLists.txt
-@@ -2,4 +2,4 @@
- PROJECT(dcmjpls)
- 
- # recurse into subdirectories
--SUBDIRS(libsrc libcharls apps include/dcmtk/dcmjpls)
-+SUBDIRS(libsrc apps include/dcmtk/dcmjpls)
--- 
-1.7.4
-
diff --git a/dcmtk-0004-Use-system-charls.patch b/dcmtk-0004-Use-system-charls.patch
deleted file mode 100644
index e3cf62b..0000000
--- a/dcmtk-0004-Use-system-charls.patch
+++ /dev/null
@@ -1,120 +0,0 @@
-From c20efddd5eee01bb5db0aeaac8fc0b64abf6d6cf Mon Sep 17 00:00:00 2001
-From: Mario Ceresa <mrceresa at gmail.com>
-Date: Sun, 20 Mar 2011 14:27:14 +0100
-Subject: [PATCH 4/6] Use system charls
-
----
- CMake/3rdparty.cmake          |   17 +++++++++++++++++
- CMake/FindCharLS.cmake        |   34 ++++++++++++++++++++++++++++++++++
- CMakeLists.txt                |    1 +
- dcmjpls/apps/CMakeLists.txt   |    2 +-
- dcmjpls/libsrc/CMakeLists.txt |    2 +-
- 5 files changed, 54 insertions(+), 2 deletions(-)
- create mode 100644 CMake/FindCharLS.cmake
-
-diff --git a/CMake/3rdparty.cmake b/CMake/3rdparty.cmake
-index 74ce78f..36956ce 100755
---- a/CMake/3rdparty.cmake
-+++ b/CMake/3rdparty.cmake
-@@ -197,6 +197,23 @@ ELSE(WIN32)
-       SET(WITH_ZLIB 1)
-     ENDIF(NOT ZLIB_LIBS)
-   ENDIF(DCMTK_WITH_ZLIB)
-+  
-+  # Find charls
-+  
-+  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake)
-+  
-+  IF(DCMTK_WITH_CHARLS)
-+    FIND_PACKAGE(CharLS)
-+    INCLUDE_DIRECTORIES(${CHARLS_INCLUDE_DIRS})
-+    SET(CHARLS_LIBS ${CHARLS_LIBRARIES})
-+    IF (NOT CHARLS_LIBS)
-+      MESSAGE(STATUS "Warning: CharLS not found. Cannot build!")
-+    ELSE(NOT CHARLS_LIBS)
-+      MESSAGE(STATUS "Info: DCMTK CHARLS support will be enabled")
-+      SET(WITH_CHARLS 1)
-+    ENDIF(NOT CHARLS_LIBS)
-+  ENDIF(DCMTK_WITH_CHARLS)
-+  
- 
- ENDIF(WIN32)
- 
-diff --git a/CMake/FindCharLS.cmake b/CMake/FindCharLS.cmake
-new file mode 100644
-index 0000000..eaa45b7
---- /dev/null
-+++ b/CMake/FindCharLS.cmake
-@@ -0,0 +1,34 @@
-+FIND_PATH(CHARLS_INCLUDE_DIR CharLS/interface.h
-+/usr/local/include
-+/usr/include
-+)
-+
-+FIND_LIBRARY(CHARLS_LIBRARY
-+  NAMES CharLS
-+  PATHS /usr/lib /usr/local/lib /usr/lib64 /usr/local/lib64
-+  )
-+
-+
-+IF (CHARLS_LIBRARY AND CHARLS_INCLUDE_DIR)
-+    SET(CHARLS_LIBRARIES ${CHARLS_LIBRARY})
-+    SET(CHARLS_INCLUDE_DIRS ${CHARLS_INCLUDE_DIR})
-+    SET(CHARLS_FOUND "YES")
-+ELSE (CHARLS_LIBRARY AND CHARLS_INCLUDE_DIR)
-+  SET(CHARLS_FOUND "NO")
-+ENDIF (CHARLS_LIBRARY AND CHARLS_INCLUDE_DIR)
-+
-+
-+IF (CHARLS_FOUND)
-+   IF (NOT CHARLS_FIND_QUIETLY)
-+      MESSAGE(STATUS "Found CHARLS: ${CHARLS_LIBRARIES}")
-+   ENDIF (NOT CHARLS_FIND_QUIETLY)
-+ELSE (CHARLS_FOUND)
-+   IF (CHARLS_FIND_REQUIRED)
-+      MESSAGE(FATAL_ERROR "Could not find CHARLS library")
-+   ENDIF (CHARLS_FIND_REQUIRED)
-+ENDIF (CHARLS_FOUND)
-+
-+MARK_AS_ADVANCED(
-+  CHARLS_LIBRARIES
-+  CHARLS_INCLUDE_DIR
-+  )
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 86b7601..fa5d9ad 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -36,6 +36,7 @@ SET(DCMTK_PACKAGE_VERSION_NUMBER ${DCMTK_MAJOR_VERSION}${DCMTK_MINOR_VERSION}${D
- 
- 
- # DCMTK build options
-+OPTION(DCMTK_WITH_CHARLS "Configure DCMTK with support for CHARLS" ON)
- OPTION(DCMTK_WITH_TIFF "Configure DCMTK with support for TIFF" ON)
- OPTION(DCMTK_WITH_PNG "Configure DCMTK with support for PNG" ON)
- OPTION(DCMTK_WITH_XML "Configure DCMTK with support for XML" OFF)
-diff --git a/dcmjpls/apps/CMakeLists.txt b/dcmjpls/apps/CMakeLists.txt
-index d993bc2..45abcb9 100644
---- a/dcmjpls/apps/CMakeLists.txt
-+++ b/dcmjpls/apps/CMakeLists.txt
-@@ -16,6 +16,6 @@ ENDFOREACH(PROGRAM)
- 
- # make sure executables are linked to the corresponding libraries
- FOREACH(PROGRAM dcmcjpls dcmdjpls dcml2pnm)
--  TARGET_LINK_LIBRARIES(${PROGRAM} dcmjpls charls dcmimage dcmimgle dcmdata oflog ofstd ofstd ${ZLIB_LIBS} ${THREAD_LIBS} ${WIN32_STD_LIBRARIES})
-+  TARGET_LINK_LIBRARIES(${PROGRAM} dcmjpls ${CHARLS_LIBS} dcmimage dcmimgle dcmdata oflog ofstd ofstd ${ZLIB_LIBS} ${THREAD_LIBS} ${WIN32_STD_LIBRARIES})
- ENDFOREACH(PROGRAM)
- TARGET_LINK_LIBRARIES(dcml2pnm ${LIBTIFF_LIBS} ${LIBPNG_LIBS})
-diff --git a/dcmjpls/libsrc/CMakeLists.txt b/dcmjpls/libsrc/CMakeLists.txt
-index 63a2766..9499dd8 100644
---- a/dcmjpls/libsrc/CMakeLists.txt
-+++ b/dcmjpls/libsrc/CMakeLists.txt
-@@ -1,5 +1,5 @@
- # declare additional include directories
--INCLUDE_DIRECTORIES(${dcmjpls_SOURCE_DIR}/include ${ofstd_SOURCE_DIR}/include ${oflog_SOURCE_DIR}/include ${dcmdata_SOURCE_DIR}/include ${dcmimgle_SOURCE_DIR}/include ${dcmimage_SOURCE_DIR}/include ${dcmjpls_SOURCE_DIR}/libcharls ${ZLIB_INCDIR})
-+INCLUDE_DIRECTORIES(${dcmjpls_SOURCE_DIR}/include ${ofstd_SOURCE_DIR}/include ${oflog_SOURCE_DIR}/include ${dcmdata_SOURCE_DIR}/include ${dcmimgle_SOURCE_DIR}/include ${dcmimage_SOURCE_DIR}/include ${CHARLS_INCLUDE_DIRS} ${ZLIB_INCDIR})
- 
- # create library from source files
- ADD_LIBRARY(dcmjpls djcparam djdecode djencode djrparam djcodecd djutils djcodece)
--- 
-1.7.4
-
diff --git a/dcmtk-0005-Fixed-includes-for-CharLS-1.0.patch b/dcmtk-0005-Fixed-includes-for-CharLS-1.0.patch
deleted file mode 100644
index ef3c3e4..0000000
--- a/dcmtk-0005-Fixed-includes-for-CharLS-1.0.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 6d6a52c1c049c0fe8440d8b03d5cb852a47c0cd5 Mon Sep 17 00:00:00 2001
-From: Mario Ceresa <mrceresa at gmail.com>
-Date: Sun, 20 Mar 2011 14:40:48 +0100
-Subject: [PATCH 5/6] Fixed includes for CharLS 1.0
-
----
- dcmjpls/libsrc/djcodecd.cc |    2 +-
- dcmjpls/libsrc/djcodece.cc |    2 +-
- dcmjpls/libsrc/djerror.h   |    2 +-
- 3 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/dcmjpls/libsrc/djcodecd.cc b/dcmjpls/libsrc/djcodecd.cc
-index 8a11515..8da8d7a 100644
---- a/dcmjpls/libsrc/djcodecd.cc
-+++ b/dcmjpls/libsrc/djcodecd.cc
-@@ -44,7 +44,7 @@
- #include "djerror.h"                 /* for private class DJLSError */
- 
- // JPEG-LS library (CharLS) includes
--#include "intrface.h"
-+#include "CharLS/interface.h"
- 
- E_TransferSyntax DJLSLosslessDecoder::supportedTransferSyntax() const
- {
-diff --git a/dcmjpls/libsrc/djcodece.cc b/dcmjpls/libsrc/djcodece.cc
-index 9d6e1d8..8148b31 100644
---- a/dcmjpls/libsrc/djcodece.cc
-+++ b/dcmjpls/libsrc/djcodece.cc
-@@ -62,7 +62,7 @@
- #include "dcmtk/dcmimgle/dcmimage.h"  /* for class DicomImage */
- 
- // JPEG-LS library (CharLS) includes
--#include "intrface.h"
-+#include "CharLS/interface.h"
- 
- BEGIN_EXTERN_C
- #ifdef HAVE_FCNTL_H
-diff --git a/dcmjpls/libsrc/djerror.h b/dcmjpls/libsrc/djerror.h
-index 68ebae1..d3cd2ad 100644
---- a/dcmjpls/libsrc/djerror.h
-+++ b/dcmjpls/libsrc/djerror.h
-@@ -31,7 +31,7 @@
- 
- #include "dcmtk/config/osconfig.h"
- #include "dcmtk/dcmjpls/djlsutil.h" /* For the OFCondition codes */
--#include "intrface.h" /* CharLS include */
-+#include "CharLS/interface.h" /* CharLS include */
- 
- /** Helper class for converting between dcmjpls and CharLS error codes
-  */
--- 
-1.7.4
-
diff --git a/dcmtk-0006-Added-optional-support-for-building-shared-libraries.patch b/dcmtk-0006-Added-optional-support-for-building-shared-libraries.patch
deleted file mode 100644
index da1d751..0000000
--- a/dcmtk-0006-Added-optional-support-for-building-shared-libraries.patch
+++ /dev/null
@@ -1,143 +0,0 @@
-From d3284cf35b8d92029cba487a285cdd6aeee16d38 Mon Sep 17 00:00:00 2001
-From: Joerg Riesmeier <dicom at offis.de>
-Date: Tue, 1 Feb 2011 09:52:35 +0000
-Subject: [PATCH 6/6] Added optional support for building shared libraries with CMake.
-
----
- CMakeLists.txt               |    2 ++
- dcmimage/apps/CMakeLists.txt |    3 +--
- dcmimgle/apps/CMakeLists.txt |    3 +--
- dcmjpeg/apps/CMakeLists.txt  |    5 ++---
- dcmjpls/apps/CMakeLists.txt  |    3 +--
- dcmpstat/apps/CMakeLists.txt |    8 +-------
- dcmqrdb/apps/CMakeLists.txt  |    4 ++--
- dcmwlm/apps/CMakeLists.txt   |    4 ++--
- 8 files changed, 12 insertions(+), 20 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index fa5d9ad..010c13c 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -34,6 +34,8 @@ SET(DCMTK_API_VERSION "${DCMTK_MAJOR_VERSION}.${DCMTK_MINOR_VERSION}")
- SET(DCMTK_LIBRARY_PROPERTIES VERSION "${DCMTK_PACKAGE_VERSION}" SOVERSION "${DCMTK_API_VERSION}")
- SET(DCMTK_PACKAGE_VERSION_NUMBER ${DCMTK_MAJOR_VERSION}${DCMTK_MINOR_VERSION}${DCMTK_BUILD_VERSION})
- 
-+# General build options
-+OPTION(BUILD_SHARED_LIBS "Build with shared libraries." OFF)
- 
- # DCMTK build options
- OPTION(DCMTK_WITH_CHARLS "Configure DCMTK with support for CHARLS" ON)
-diff --git a/dcmimage/apps/CMakeLists.txt b/dcmimage/apps/CMakeLists.txt
-index aad94cf..d3f241f 100644
---- a/dcmimage/apps/CMakeLists.txt
-+++ b/dcmimage/apps/CMakeLists.txt
-@@ -13,6 +13,5 @@ ENDFOREACH(PROGRAM)
- 
- # make sure executables are linked to the corresponding libraries
- FOREACH(PROGRAM dcm2pnm dcmquant dcmscale)
--  TARGET_LINK_LIBRARIES(${PROGRAM} dcmimage dcmimgle dcmdata oflog ofstd ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
-+  TARGET_LINK_LIBRARIES(${PROGRAM} dcmimage dcmimgle dcmdata oflog ofstd ${LIBTIFF_LIBS} ${LIBPNG_LIBS} ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
- ENDFOREACH(PROGRAM)
--TARGET_LINK_LIBRARIES(dcm2pnm ${LIBTIFF_LIBS} ${LIBPNG_LIBS})
-diff --git a/dcmimgle/apps/CMakeLists.txt b/dcmimgle/apps/CMakeLists.txt
-index 8514a47..440b321 100644
---- a/dcmimgle/apps/CMakeLists.txt
-+++ b/dcmimgle/apps/CMakeLists.txt
-@@ -13,6 +13,5 @@ ENDFOREACH(PROGRAM)
- 
- # make sure executables are linked to the corresponding libraries
- FOREACH(PROGRAM dcmdspfn dcod2lum dconvlum)
--  TARGET_LINK_LIBRARIES(${PROGRAM} dcmimgle oflog ofstd ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
-+  TARGET_LINK_LIBRARIES(${PROGRAM} dcmimgle dcmdata oflog ofstd ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
- ENDFOREACH(PROGRAM)
--TARGET_LINK_LIBRARIES(dcmdspfn dcmdata)
-diff --git a/dcmjpeg/apps/CMakeLists.txt b/dcmjpeg/apps/CMakeLists.txt
-index 9c1f565..b9bc30b 100644
---- a/dcmjpeg/apps/CMakeLists.txt
-+++ b/dcmjpeg/apps/CMakeLists.txt
-@@ -2,7 +2,7 @@
- INCLUDE_DIRECTORIES(${dcmjpeg_SOURCE_DIR}/include ${ofstd_SOURCE_DIR}/include ${oflog_SOURCE_DIR}/include ${dcmdata_SOURCE_DIR}/include ${dcmimgle_SOURCE_DIR}/include ${dcmimage_SOURCE_DIR}/include ${dcmjpeg_SOURCE_DIR}/libijg8 ${dcmjpeg_SOURCE_DIR}/libijg12 ${dcmjpeg_SOURCE_DIR}/libijg16 ${ZLIB_INCDIR} ${LIBTIFF_INCDIR} ${LIBPNG_INCDIR})
- 
- # declare directories containing used libraries
--LINK_DIRECTORIES(${dcmjpeg_BINARY_DIR} ${ofstd_BINARY_DIR} ${oflog_BINARY_DIR} ${dcmdata_BINARY_DIR} ${dcmimgle_BINARY_DIR} ${dcmimage_BINARY_DIR}  ${ZLIB_LIBDIR} ${LIBTIFF_LIBDIR} ${LIBPNG_LIBDIR})
-+LINK_DIRECTORIES(${dcmjpeg_BINARY_DIR} ${ofstd_BINARY_DIR} ${oflog_BINARY_DIR} ${dcmdata_BINARY_DIR} ${dcmimgle_BINARY_DIR} ${dcmimage_BINARY_DIR} ${ZLIB_LIBDIR} ${LIBTIFF_LIBDIR} ${LIBPNG_LIBDIR})
- 
- # declare executables
- FOREACH(PROGRAM dcmcjpeg dcmdjpeg dcmj2pnm dcmmkdir)
-@@ -16,6 +16,5 @@ ENDFOREACH(PROGRAM)
- 
- # make sure executables are linked to the corresponding libraries
- FOREACH(PROGRAM dcmcjpeg dcmdjpeg dcmj2pnm dcmmkdir)
--  TARGET_LINK_LIBRARIES(${PROGRAM} dcmjpeg ijg8 ijg12 ijg16 dcmimage dcmimgle dcmdata oflog ofstd ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
-+  TARGET_LINK_LIBRARIES(${PROGRAM} dcmjpeg ijg8 ijg12 ijg16 dcmimage dcmimgle dcmdata oflog ofstd ${LIBTIFF_LIBS} ${LIBPNG_LIBS} ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
- ENDFOREACH(PROGRAM)
--TARGET_LINK_LIBRARIES(dcmj2pnm ${LIBTIFF_LIBS} ${LIBPNG_LIBS})
-diff --git a/dcmjpls/apps/CMakeLists.txt b/dcmjpls/apps/CMakeLists.txt
-index 45abcb9..41fc329 100644
---- a/dcmjpls/apps/CMakeLists.txt
-+++ b/dcmjpls/apps/CMakeLists.txt
-@@ -16,6 +16,5 @@ ENDFOREACH(PROGRAM)
- 
- # make sure executables are linked to the corresponding libraries
- FOREACH(PROGRAM dcmcjpls dcmdjpls dcml2pnm)
--  TARGET_LINK_LIBRARIES(${PROGRAM} dcmjpls ${CHARLS_LIBS} dcmimage dcmimgle dcmdata oflog ofstd ofstd ${ZLIB_LIBS} ${THREAD_LIBS} ${WIN32_STD_LIBRARIES})
-+  TARGET_LINK_LIBRARIES(${PROGRAM} dcmjpls ${CHARLS_LIBS} dcmimage dcmimgle dcmdata oflog ofstd ofstd ${LIBTIFF_LIBS} ${LIBPNG_LIBS} ${ZLIB_LIBS} ${THREAD_LIBS} ${WIN32_STD_LIBRARIES})
- ENDFOREACH(PROGRAM)
--TARGET_LINK_LIBRARIES(dcml2pnm ${LIBTIFF_LIBS} ${LIBPNG_LIBS})
-diff --git a/dcmpstat/apps/CMakeLists.txt b/dcmpstat/apps/CMakeLists.txt
-index e795197..48398a8 100644
---- a/dcmpstat/apps/CMakeLists.txt
-+++ b/dcmpstat/apps/CMakeLists.txt
-@@ -17,11 +17,5 @@ ENDFOREACH(PROGRAM)
- 
- # make sure executables are linked to the corresponding libraries
- FOREACH(PROGRAM dcmmkcrv dcmmklut dcmp2pgm dcmprscp dcmprscu dcmpsmk dcmpschk dcmpsprt dcmpsrcv dcmpssnd)
--  TARGET_LINK_LIBRARIES(${PROGRAM} dcmpstat dcmimgle dcmqrdb dcmnet dcmdata oflog ofstd ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
--ENDFOREACH(PROGRAM)
--FOREACH(PROGRAM dcmmklut dcmp2pgm dcmprscp dcmprscu dcmpschk dcmpsmk dcmpsprt dcmpsrcv dcmpssnd)
--  TARGET_LINK_LIBRARIES(${PROGRAM} dcmsr)
--ENDFOREACH(PROGRAM)
--FOREACH(PROGRAM dcmp2pgm dcmprscp dcmprscu dcmpsprt dcmpsrcv dcmpssnd)
--  TARGET_LINK_LIBRARIES(${PROGRAM} dcmtls dcmdsig ${LIBXML_LIBS} ${OPENSSL_LIBS})
-+  TARGET_LINK_LIBRARIES(${PROGRAM} dcmpstat dcmdsig dcmsr dcmimgle dcmqrdb dcmnet dcmtls dcmdata oflog ofstd ${LIBXML_LIBS} ${OPENSSL_LIBS} ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
- ENDFOREACH(PROGRAM)
-diff --git a/dcmqrdb/apps/CMakeLists.txt b/dcmqrdb/apps/CMakeLists.txt
-index 249732c..6be0507 100644
---- a/dcmqrdb/apps/CMakeLists.txt
-+++ b/dcmqrdb/apps/CMakeLists.txt
-@@ -1,5 +1,5 @@
- # declare directories containing used libraries
--LINK_DIRECTORIES(${dcmqrdb_BINARY_DIR} ${ofstd_BINARY_DIR} ${oflog_BINARY_DIR} ${dcmdata_BINARY_DIR} ${dcmnet_BINARY_DIR} ${ZLIB_LIBDIR})
-+LINK_DIRECTORIES(${dcmqrdb_BINARY_DIR} ${ofstd_BINARY_DIR} ${oflog_BINARY_DIR} ${dcmdata_BINARY_DIR} ${dcmnet_BINARY_DIR} ${ZLIB_LIBDIR} ${OPENSSL_LIBDIR})
- 
- # declare executables
- FOREACH(PROGRAM dcmqrscp dcmqridx dcmqrti)
-@@ -13,5 +13,5 @@ ENDFOREACH(PROGRAM)
- 
- # make sure executables are linked to the corresponding libraries
- FOREACH(PROGRAM dcmqrscp dcmqridx dcmqrti)
--  TARGET_LINK_LIBRARIES(${PROGRAM} dcmqrdb dcmnet dcmdata oflog ofstd ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
-+  TARGET_LINK_LIBRARIES(${PROGRAM} dcmqrdb dcmnet dcmdata oflog ofstd ${OPENSSL_LIBS} ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
- ENDFOREACH(PROGRAM)
-diff --git a/dcmwlm/apps/CMakeLists.txt b/dcmwlm/apps/CMakeLists.txt
-index 445881f..13865ca 100644
---- a/dcmwlm/apps/CMakeLists.txt
-+++ b/dcmwlm/apps/CMakeLists.txt
-@@ -2,7 +2,7 @@
- INCLUDE_DIRECTORIES(${dcmtls_SOURCE_DIR}/include)
- 
- # declare directories containing used libraries
--LINK_DIRECTORIES(${dcmwlm_BINARY_DIR} ${ofstd_BINARY_DIR} ${oflog_BINARY_DIR} ${dcmdata_BINARY_DIR} ${dcmtls_BINARY_DIR} ${dcmnet_BINARY_DIR} ${ZLIB_LIBDIR})
-+LINK_DIRECTORIES(${dcmwlm_BINARY_DIR} ${ofstd_BINARY_DIR} ${oflog_BINARY_DIR} ${dcmdata_BINARY_DIR} ${dcmtls_BINARY_DIR} ${dcmnet_BINARY_DIR} ${ZLIB_LIBDIR} ${OPENSSL_LIBDIR})
- 
- # declare executables
- ADD_EXECUTABLE(wlmscpfs wlmscpfs wlcefs)
-@@ -11,4 +11,4 @@ ADD_EXECUTABLE(wlmscpfs wlmscpfs wlcefs)
- INSTALL_TARGETS(${INSTALL_BINDIR} wlmscpfs)
- 
- # make sure executables are linked to the corresponding libraries
--TARGET_LINK_LIBRARIES(wlmscpfs dcmwlm dcmnet dcmtls dcmdata oflog ofstd ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
-+TARGET_LINK_LIBRARIES(wlmscpfs dcmwlm dcmnet dcmtls dcmdata oflog ofstd ${OPENSSL_LIBS} ${ZLIB_LIBS} ${WIN32_STD_LIBRARIES} ${THREAD_LIBS})
--- 
-1.7.4
-
diff --git a/dcmtk-0007-Add-soname-generation-for-modules-which-are-not-in-D.patch b/dcmtk-0007-Add-soname-generation-for-modules-which-are-not-in-D.patch
deleted file mode 100644
index 279c2c6..0000000
--- a/dcmtk-0007-Add-soname-generation-for-modules-which-are-not-in-D.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 13f216a9ab2c93041cf18283ca4726c3c2e876d9 Mon Sep 17 00:00:00 2001
-From: Mario Ceresa <mrceresa at gmail.com>
-Date: Tue, 22 Mar 2011 18:06:54 +0100
-Subject: [PATCH] Add soname generation for modules which are not in DCMTK_MODULES variable
-
----
- CMakeLists.txt |    9 +++++++++
- 1 files changed, 9 insertions(+), 0 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 010c13c..01e6287 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -304,6 +304,7 @@ ENDIF(WITH_THREADS)
- # Start actual compilation tasks
- #-----------------------------------------------------------------------------
- 
-+
- # Recurse into subdirectories
- FOREACH(module ${DCMTK_MODULES})
-   ADD_SUBDIRECTORY(${module})
-@@ -321,6 +322,14 @@ FOREACH(module ${DCMTK_MODULES})
-     
- ENDFOREACH(module)
- 
-+# Set target properties for modules which are not in DCMTK_MODULE
-+SET_TARGET_PROPERTIES(dcmdsig PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
-+SET_TARGET_PROPERTIES(ijg12 PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
-+SET_TARGET_PROPERTIES(ijg16 PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
-+SET_TARGET_PROPERTIES(ijg8 PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
-+SET_TARGET_PROPERTIES(libi2d PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
-+
-+
- #-----------------------------------------------------------------------------
- # Installation tasks
- #-----------------------------------------------------------------------------
--- 
-1.7.4
-
diff --git a/dcmtk-0008-Compiler-Fixes.patch b/dcmtk-0008-Compiler-Fixes.patch
deleted file mode 100644
index 7738957..0000000
--- a/dcmtk-0008-Compiler-Fixes.patch
+++ /dev/null
@@ -1,965 +0,0 @@
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/diargpxt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/diargpxt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/diargpxt.h	2010-10-14 09:16:29.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/diargpxt.h	2012-07-25 21:32:05.291213110 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomARGBPixelTemplate (Header) - UNTESTED !!!
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:29 $
-- *  CVS/RCS Revision: $Revision: 1.21 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.22 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -91,7 +91,7 @@
-                  const unsigned long planeSize,
-                  const int bits)
-     {                                             // not very much optimized, but no one really uses ARGB !!
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             register T2 value;
-             const T1 offset = OFstatic_cast(T1, DicomImageClass::maxval(bits - 1));
-@@ -103,9 +103,9 @@
- /*
-                 register const T1 *a = pixel;                                   // points to alpha plane
-                 const T1 *rgb[3];
--                rgb[0] = a + this->InputCount;                                        // points to red plane
--                rgb[1] = rgb[0] + this->InputCount;                                   // points to green plane
--                rgb[2] = rgb[1] + this->InputCount;                                   // points to blue plane
-+                rgb[0] = a + this->InputCount;                                  // points to red plane
-+                rgb[1] = rgb[0] + this->InputCount;                             // points to green plane
-+                rgb[2] = rgb[1] + this->InputCount;                             // points to blue plane
-                 for (i = 0; i < count; ++i)
-                 {
-                     value = OFstatic_cast(T2, *(a++));                          // get alpha value
-@@ -141,10 +141,10 @@
-                     /* convert a single frame */
-                     for (l = planeSize; (l != 0) && (i < count); --l, ++i)
-                     {
--                        value = OFstatic_cast(T2, *(a++));                          // get alpha value
-+                        value = OFstatic_cast(T2, *(a++));                      // get alpha value
-                         if (value > 0)
-                         {
--                            for (int j = 0; j < 3; ++j)                             // set palette color
-+                            for (int j = 0; j < 3; ++j)                         // set palette color
-                             {
-                                 if (value <= palette[j]->getFirstEntry(value))
-                                     this->Data[j][i] = OFstatic_cast(T3, palette[j]->getFirstValue());
-@@ -152,12 +152,12 @@
-                                     this->Data[j][i] = OFstatic_cast(T3, palette[j]->getLastValue());
-                                 else
-                                     this->Data[j][i] = OFstatic_cast(T3, palette[j]->getValue(value));
--                                ++rgb[j];                                           // skip RGB values
-+                                ++rgb[j];                                       // skip RGB values
-                             }
-                         }
-                         else
-                         {
--                            for (int j = 0; j < 3; ++j)                             // copy RGB values
-+                            for (int j = 0; j < 3; ++j)                         // copy RGB values
-                                 this->Data[j][i] = OFstatic_cast(T3, removeSign(*(rgb[j]++), offset));
-                         }
-                     }
-@@ -204,6 +204,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: diargpxt.h,v $
-+ * Revision 1.22  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.21  2010-10-14 13:16:29  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicmypxt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicmypxt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicmypxt.h	2010-10-14 09:16:29.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicmypxt.h	2012-07-25 21:32:05.291213110 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomCMYKPixelTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:29 $
-- *  CVS/RCS Revision: $Revision: 1.20 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.21 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -87,7 +87,7 @@
-                  const unsigned long planeSize,
-                  const int bits)
-     {
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             // use the number of input pixels derived from the length of the 'PixelData'
-             // attribute), but not more than the size of the intermediate buffer
-@@ -157,6 +157,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dicmypxt.h,v $
-+ * Revision 1.21  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.20  2010-10-14 13:16:29  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicocpt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicocpt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicocpt.h	2010-10-14 09:16:29.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicocpt.h	2012-07-25 21:32:05.292213078 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1998-2010, OFFIS e.V.
-+ *  Copyright (C) 1998-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomColorCopyTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:29 $
-- *  CVS/RCS Revision: $Revision: 1.12 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.13 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -86,7 +86,7 @@
-     inline void copy(const T *pixel[3],
-                      const unsigned long offset)
-     {
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             for (int j = 0; j < 3; j++)
-                 OFBitmanipTemplate<T>::copyMem(pixel[j] + offset, this->Data[j], this->getCount());
-@@ -102,6 +102,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dicocpt.h,v $
-+ * Revision 1.13  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.12  2010-10-14 13:16:29  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicoflt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicoflt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicoflt.h	2010-10-14 09:16:29.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicoflt.h	2012-07-25 21:32:05.292213078 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1998-2010, OFFIS e.V.
-+ *  Copyright (C) 1998-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomColorFlipTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:29 $
-- *  CVS/RCS Revision: $Revision: 1.15 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.16 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -98,14 +98,14 @@
-                      const int horz,
-                      const int vert)
-     {
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             if (horz && vert)
--                flipHorzVert(pixel, this->Data);
-+                this->flipHorzVert(pixel, this->Data);
-             else if (horz)
--                flipHorz(pixel, this->Data);
-+                this->flipHorz(pixel, this->Data);
-             else if (vert)
--                flipVert(pixel, this->Data);
-+                this->flipVert(pixel, this->Data);
-         }
-     }
- };
-@@ -118,6 +118,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dicoflt.h,v $
-+ * Revision 1.16  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.15  2010-10-14 13:16:29  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicorot.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicorot.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicorot.h	2010-10-14 09:16:29.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicorot.h	2012-07-25 21:32:05.293213022 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1998-2010, OFFIS e.V.
-+ *  Copyright (C) 1998-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomColorRotateTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:29 $
-- *  CVS/RCS Revision: $Revision: 1.15 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.16 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -98,14 +98,14 @@
-     inline void rotate(const T *pixel[3],
-                        const int degree)
-     {
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             if (degree == 90)
--                rotateRight(pixel, this->Data);
-+                this->rotateRight(pixel, this->Data);
-             else if (degree == 180)
--                rotateTopDown(pixel, this->Data);
-+                this->rotateTopDown(pixel, this->Data);
-             else  if (degree == 270)
--                rotateLeft(pixel, this->Data);
-+                this->rotateLeft(pixel, this->Data);
-         }
-     }
- };
-@@ -118,6 +118,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dicorot.h,v $
-+ * Revision 1.16  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.15  2010-10-14 13:16:29  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicosct.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicosct.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dicosct.h	2010-10-14 09:16:29.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dicosct.h	2012-07-25 21:32:05.293213022 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomColorScaleTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:29 $
-- *  CVS/RCS Revision: $Revision: 1.21 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.22 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -107,8 +107,8 @@
-     inline void scale(const T *pixel[3],
-                       const int interpolate)
-     {
--        if (Init(pixel))
--            scaleData(pixel, this->Data, interpolate);
-+        if (this->Init(pixel))
-+            this->scaleData(pixel, this->Data, interpolate);
-     }
- };
- 
-@@ -120,6 +120,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dicosct.h,v $
-+ * Revision 1.22  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.21  2010-10-14 13:16:29  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dihsvpxt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dihsvpxt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dihsvpxt.h	2010-10-14 09:16:29.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dihsvpxt.h	2012-07-25 21:32:05.294212963 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomHSVPixelTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:29 $
-- *  CVS/RCS Revision: $Revision: 1.25 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.26 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -87,7 +87,7 @@
-                  const unsigned long planeSize,
-                  const int bits)
-     {
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             register T2 *r = this->Data[0];
-             register T2 *g = this->Data[1];
-@@ -221,6 +221,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dihsvpxt.h,v $
-+ * Revision 1.26  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.25  2010-10-14 13:16:29  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dipalpxt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dipalpxt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dipalpxt.h	2010-10-14 09:16:29.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dipalpxt.h	2012-07-25 21:32:05.294212963 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomPalettePixelTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:29 $
-- *  CVS/RCS Revision: $Revision: 1.24 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.25 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -92,7 +92,7 @@
-     void convert(const T1 *pixel,
-                  DiLookupTable *palette[3])
-     {                                                                // can be optimized if necessary !
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             register const T1 *p = pixel;
-             register T2 value = 0;
-@@ -126,6 +126,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dipalpxt.h,v $
-+ * Revision 1.25  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.24  2010-10-14 13:16:29  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dirgbpxt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dirgbpxt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/dirgbpxt.h	2010-10-14 09:16:30.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/dirgbpxt.h	2012-07-25 21:32:05.295212904 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomRGBPixelTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:30 $
-- *  CVS/RCS Revision: $Revision: 1.18 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.19 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -87,7 +87,7 @@
-                  const unsigned long planeSize,
-                  const int bits)
-     {
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             // use the number of input pixels derived from the length of the 'PixelData'
-             // attribute), but not more than the size of the intermediate buffer
-@@ -129,9 +129,9 @@
-             {
-                 register int j;
-                 register unsigned long i;
--                for (i = 0; i < count; ++i)                         /* for all pixel ... */
-+                for (i = 0; i < count; ++i)                             /* for all pixel ... */
-                     for (j = 0; j < 3; ++j)
--                        this->Data[j][i] = removeSign(*(p++), offset);    /* ... copy planes */
-+                        this->Data[j][i] = removeSign(*(p++), offset);  /* ... copy planes */
-             }
-         }
-     }
-@@ -145,6 +145,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dirgbpxt.h,v $
-+ * Revision 1.19  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.18  2010-10-14 13:16:30  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/diybrpxt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/diybrpxt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/diybrpxt.h	2010-10-14 09:16:30.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/diybrpxt.h	2012-07-25 21:32:05.296212847 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1998-2010, OFFIS e.V.
-+ *  Copyright (C) 1998-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomYBRPixelTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:30 $
-- *  CVS/RCS Revision: $Revision: 1.19 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.20 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -91,7 +91,7 @@
-                  const int bits,
-                  const OFBool rgb)
-     {
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             const T1 offset = OFstatic_cast(T1, DicomImageClass::maxval(bits - 1));
-             // use the number of input pixels derived from the length of the 'PixelData'
-@@ -266,9 +266,9 @@
-                 {
-                     register int j;
-                     register unsigned long i;
--                    for (i = 0; i < count; ++i)                         /* for all pixel ... */
-+                    for (i = 0; i < count; ++i)                             /* for all pixel ... */
-                         for (j = 0; j < 3; ++j)
--                            this->Data[j][i] = removeSign(*(p++), offset);    /* ... copy planes */
-+                            this->Data[j][i] = removeSign(*(p++), offset);  /* ... copy planes */
-                 }
-             }
-         }
-@@ -295,6 +295,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: diybrpxt.h,v $
-+ * Revision 1.20  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.19  2010-10-14 13:16:30  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/diyf2pxt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/diyf2pxt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/diyf2pxt.h	2010-10-14 09:16:30.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/diyf2pxt.h	2012-07-25 21:32:05.296212847 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1998-2010, OFFIS e.V.
-+ *  Copyright (C) 1998-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomYBR422PixelTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:30 $
-- *  CVS/RCS Revision: $Revision: 1.25 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.26 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -95,7 +95,7 @@
-                  const int bits,
-                  const OFBool rgb)
-     {
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             const T1 offset = OFstatic_cast(T1, DicomImageClass::maxval(bits - 1));
-             register unsigned long i;
-@@ -167,6 +167,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: diyf2pxt.h,v $
-+ * Revision 1.26  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.25  2010-10-14 13:16:30  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/diyp2pxt.h dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/diyp2pxt.h
---- dcmtk-3.6.0.orig/dcmimage/include/dcmtk/dcmimage/diyp2pxt.h	2010-10-14 09:16:30.000000000 -0400
-+++ dcmtk-3.6.0/dcmimage/include/dcmtk/dcmimage/diyp2pxt.h	2012-07-25 21:32:05.297212792 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1998-2010, OFFIS e.V.
-+ *  Copyright (C) 1998-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomYBRPart422PixelTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:30 $
-- *  CVS/RCS Revision: $Revision: 1.23 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:14 $
-+ *  CVS/RCS Revision: $Revision: 1.24 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -91,7 +91,7 @@
-     void convert(const T1 *pixel,
-                  const int bits)
-     {
--        if (Init(pixel))
-+        if (this->Init(pixel))
-         {
-             register T2 *r = this->Data[0];
-             register T2 *g = this->Data[1];
-@@ -147,6 +147,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: diyp2pxt.h,v $
-+ * Revision 1.24  2011-11-17 16:13:14  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.23  2010-10-14 13:16:30  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/diflipt.h dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/diflipt.h
---- dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/diflipt.h	2010-10-14 09:16:26.000000000 -0400
-+++ dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/diflipt.h	2012-07-25 21:32:05.297212792 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomFlipTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:26 $
-- *  CVS/RCS Revision: $Revision: 1.23 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:16 $
-+ *  CVS/RCS Revision: $Revision: 1.24 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -129,7 +129,7 @@
-             else if (vert)
-                 flipVert(src, dest);
-             else
--                copyPixel(src, dest);
-+                this->copyPixel(src, dest);
-         }
-     }
- 
-@@ -345,6 +345,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: diflipt.h,v $
-+ * Revision 1.24  2011-11-17 16:13:16  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.23  2010-10-14 13:16:26  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dimoflt.h dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dimoflt.h
---- dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dimoflt.h	2010-10-14 09:16:26.000000000 -0400
-+++ dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dimoflt.h	2012-07-25 21:32:05.298212739 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomMonochromeFlipTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:26 $
-- *  CVS/RCS Revision: $Revision: 1.15 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:16 $
-+ *  CVS/RCS Revision: $Revision: 1.16 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -106,11 +106,11 @@
-             if (this->Data != NULL)
-             {
-                 if (horz && vert)
--                    flipHorzVert(&pixel, &this->Data);
-+                    this->flipHorzVert(&pixel, &this->Data);
-                 else if (horz)
--                    flipHorz(&pixel, &this->Data);
-+                    this->flipHorz(&pixel, &this->Data);
-                 else if (vert)
--                    flipVert(&pixel, &this->Data);
-+                    this->flipVert(&pixel, &this->Data);
-             }
-         }
-     }
-@@ -124,6 +124,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dimoflt.h,v $
-+ * Revision 1.16  2011-11-17 16:13:16  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.15  2010-10-14 13:16:26  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dimoipxt.h dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dimoipxt.h
---- dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dimoipxt.h	2010-10-14 09:16:26.000000000 -0400
-+++ dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dimoipxt.h	2012-07-25 21:32:05.298212739 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomMonochromeInputPixelTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:26 $
-- *  CVS/RCS Revision: $Revision: 1.40 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:16 $
-+ *  CVS/RCS Revision: $Revision: 1.41 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -76,10 +76,10 @@
-             else if ((this->Modality != NULL) && this->Modality->hasRescaling())
-             {
-                 rescale(pixel, this->Modality->getRescaleSlope(), this->Modality->getRescaleIntercept());
--                determineMinMax(OFstatic_cast(T3, this->Modality->getMinValue()), OFstatic_cast(T3, this->Modality->getMaxValue()));
-+                this->determineMinMax(OFstatic_cast(T3, this->Modality->getMinValue()), OFstatic_cast(T3, this->Modality->getMaxValue()));
-             } else {
-                 rescale(pixel);                     // "copy" or reference pixel data
--                determineMinMax(OFstatic_cast(T3, this->Modality->getMinValue()), OFstatic_cast(T3, this->Modality->getMaxValue()));
-+                this->determineMinMax(OFstatic_cast(T3, this->Modality->getMinValue()), OFstatic_cast(T3, this->Modality->getMaxValue()));
-             }
-         }
-     }
-@@ -280,6 +280,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dimoipxt.h,v $
-+ * Revision 1.41  2011-11-17 16:13:16  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.40  2010-10-14 13:16:26  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dimorot.h dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dimorot.h
---- dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dimorot.h	2010-10-14 09:16:26.000000000 -0400
-+++ dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dimorot.h	2012-07-25 21:32:05.299212688 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomMonochromeRotateTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:26 $
-- *  CVS/RCS Revision: $Revision: 1.16 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:16 $
-+ *  CVS/RCS Revision: $Revision: 1.17 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -105,11 +105,11 @@
-             if (this->Data != NULL)
-             {
-                 if (degree == 90)
--                    rotateRight(&pixel, &(this->Data));
-+                    this->rotateRight(&pixel, &(this->Data));
-                 else if (degree == 180)
--                    rotateTopDown(&pixel, &(this->Data));
-+                    this->rotateTopDown(&pixel, &(this->Data));
-                 else if (degree == 270)
--                    rotateLeft(&pixel, &(this->Data));
-+                    this->rotateLeft(&pixel, &(this->Data));
-             }
-         }
-     }
-@@ -123,6 +123,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dimorot.h,v $
-+ * Revision 1.17  2011-11-17 16:13:16  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.16  2010-10-14 13:16:26  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dimosct.h dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dimosct.h
---- dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dimosct.h	2010-10-14 09:16:26.000000000 -0400
-+++ dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dimosct.h	2012-07-25 21:32:05.299212688 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomMonochromeScaleTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:26 $
-- *  CVS/RCS Revision: $Revision: 1.20 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:16 $
-+ *  CVS/RCS Revision: $Revision: 1.21 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -124,7 +124,7 @@
-             {
-                 const T value = OFstatic_cast(T, OFstatic_cast(double, DicomImageClass::maxval(bits)) *
-                     OFstatic_cast(double, pvalue) / OFstatic_cast(double, DicomImageClass::maxval(WIDTH_OF_PVALUES)));
--                scaleData(&pixel, &this->Data, interpolate, value);
-+                this->scaleData(&pixel, &this->Data, interpolate, value);
-              }
-         }
-     }
-@@ -138,6 +138,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dimosct.h,v $
-+ * Revision 1.21  2011-11-17 16:13:16  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.20  2010-10-14 13:16:26  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dirotat.h dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dirotat.h
---- dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/dirotat.h	2010-10-14 09:16:27.000000000 -0400
-+++ dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/dirotat.h	2012-07-25 21:32:05.300212639 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomRotateTemplate (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:27 $
-- *  CVS/RCS Revision: $Revision: 1.21 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:16 $
-+ *  CVS/RCS Revision: $Revision: 1.22 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -132,7 +132,7 @@
-         else if (degree == 270)
-             rotateLeft(src, dest);
-         else
--            copyPixel(src, dest);
-+            this->copyPixel(src, dest);
-     }
- 
- 
-@@ -358,6 +358,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: dirotat.h,v $
-+ * Revision 1.22  2011-11-17 16:13:16  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.21  2010-10-14 13:16:27  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/discalet.h dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/discalet.h
---- dcmtk-3.6.0.orig/dcmimgle/include/dcmtk/dcmimgle/discalet.h	2010-10-14 09:16:27.000000000 -0400
-+++ dcmtk-3.6.0/dcmimgle/include/dcmtk/dcmimgle/discalet.h	2012-07-25 21:32:05.300212639 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 1996-2010, OFFIS e.V.
-+ *  Copyright (C) 1996-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -18,8 +18,8 @@
-  *  Purpose: DicomScaleTemplates (Header)
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:16:27 $
-- *  CVS/RCS Revision: $Revision: 1.35 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:16 $
-+ *  CVS/RCS Revision: $Revision: 1.36 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -206,12 +206,12 @@
-                 (Left >= OFstatic_cast(signed long, Columns)) || (Top >= OFstatic_cast(signed long, Rows)))
-             {                                                                         // no image to be displayed
-                 DCMIMGLE_DEBUG("clipping area is fully outside the image boundaries");
--                fillPixel(dest, value);                                               // ... fill bitmap
-+                this->fillPixel(dest, value);                                         // ... fill bitmap
-             }
-             else if ((this->Src_X == this->Dest_X) && (this->Src_Y == this->Dest_Y))  // no scaling
-             {
-                 if ((Left == 0) && (Top == 0) && (Columns == this->Src_X) && (Rows == this->Src_Y))
--                    copyPixel(src, dest);                                             // copying
-+                    this->copyPixel(src, dest);                                       // copying
-                 else if ((Left >= 0) && (OFstatic_cast(Uint16, Left + this->Src_X) <= Columns) &&
-                          (Top >= 0) && (OFstatic_cast(Uint16, Top + this->Src_Y) <= Rows))
-                     clipPixel(src, dest);                                             // clipping
-@@ -567,7 +567,7 @@
-         if ((xtemp == NULL) || (xvalue == NULL))
-         {
-             DCMIMGLE_ERROR("can't allocate temporary buffers for interpolation scaling");
--            clearPixel(dest);
-+            this->clearPixel(dest);
-         } else {
-             for (int j = 0; j < this->Planes; ++j)
-             {
-@@ -905,7 +905,7 @@
-         if (pTemp == NULL)
-         {
-             DCMIMGLE_ERROR("can't allocate temporary buffer for interpolation scaling");
--            clearPixel(dest);
-+            this->clearPixel(dest);
-         } else {
- 
-             /*
-@@ -1029,7 +1029,7 @@
-         if (pTemp == NULL)
-         {
-             DCMIMGLE_ERROR("can't allocate temporary buffer for interpolation scaling");
--            clearPixel(dest);
-+            this->clearPixel(dest);
-         } else {
- 
-             /*
-@@ -1190,6 +1190,9 @@
-  *
-  * CVS/RCS Log:
-  * $Log: discalet.h,v $
-+ * Revision 1.36  2011-11-17 16:13:16  joergr
-+ * Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+ *
-  * Revision 1.35  2010-10-14 13:16:27  joergr
-  * Updated copyright header. Added reference to COPYRIGHT file.
-  *
-diff -Naur dcmtk-3.6.0.orig/ofstd/include/dcmtk/ofstd/ofoset.h dcmtk-3.6.0/ofstd/include/dcmtk/ofstd/ofoset.h
---- dcmtk-3.6.0.orig/ofstd/include/dcmtk/ofstd/ofoset.h	2010-10-14 09:15:50.000000000 -0400
-+++ dcmtk-3.6.0/ofstd/include/dcmtk/ofstd/ofoset.h	2012-07-25 21:32:05.301212592 -0400
-@@ -1,6 +1,6 @@
- /*
-  *
-- *  Copyright (C) 2002-2010, OFFIS e.V.
-+ *  Copyright (C) 2002-2011, OFFIS e.V.
-  *  All rights reserved.  See COPYRIGHT file for details.
-  *
-  *  This software and supporting documentation were developed by
-@@ -19,8 +19,8 @@
-  *           of an arbitrary type.
-  *
-  *  Last Update:      $Author: joergr $
-- *  Update Date:      $Date: 2010-10-14 13:15:50 $
-- *  CVS/RCS Revision: $Revision: 1.11 $
-+ *  Update Date:      $Date: 2011-11-17 16:13:18 $
-+ *  CVS/RCS Revision: $Revision: 1.12 $
-  *  Status:           $State: Exp $
-  *
-  *  CVS/RCS Log at end of file
-@@ -146,7 +146,7 @@
-       {
-         // if size equals num, we need more space
-         if( this->size == this->num )
--          Resize( this->size * 2 );
-+          this->Resize( this->size * 2 );
- 
-         // copy item
-         T *newItem = new T( item );
-@@ -189,7 +189,7 @@
-         {
-           // if size equals num, we need more space
-           if( this->size == this->num )
--            Resize( this->size * 2 );
-+            this->Resize( this->size * 2 );
- 
-           // copy item
-           T *newItem = new T( item );
-@@ -508,6 +508,9 @@
- /*
- ** CVS/RCS Log:
- ** $Log: ofoset.h,v $
-+** Revision 1.12  2011-11-17 16:13:18  joergr
-+** Minor fixes to keep XCode 4.2 on Mac OS X Lion (clang compiler) quiet.
-+**
- ** Revision 1.11  2010-10-14 13:15:50  joergr
- ** Updated copyright header. Added reference to COPYRIGHT file.
- **
diff --git a/dcmtk-configure.patch b/dcmtk-configure.patch
deleted file mode 100644
index cd8168f..0000000
--- a/dcmtk-configure.patch
+++ /dev/null
@@ -1,505 +0,0 @@
---- dcmtk-3.6.0/configure.orig	2009-09-04 11:08:47.000000000 +0200
-+++ dcmtk-3.6.0/configure	2012-02-05 17:03:52.671202414 +0100
-@@ -27,6 +27,6 @@
- else
- 	for module in $modules ; do
- 		echo "Running configure for module $module."
--		(cd $module && ./configure $* )
-+		(set -x && cd $module && ./configure "$@" )
- 	done
- fi
---- dcmtk-3.6.0/dcmdata/configure.orig	2010-06-04 11:52:19.000000000 +0200
-+++ dcmtk-3.6.0/dcmdata/configure	2012-02-05 18:03:20.031321863 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmimage/configure.orig	2010-06-04 11:52:19.000000000 +0200
-+++ dcmtk-3.6.0/dcmimage/configure	2012-02-05 18:04:34.167991012 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmimgle/configure.orig	2010-06-04 11:52:19.000000000 +0200
-+++ dcmtk-3.6.0/dcmimgle/configure	2012-02-05 18:05:11.437992259 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmjpeg/configure.orig	2010-06-04 11:52:19.000000000 +0200
-+++ dcmtk-3.6.0/dcmjpeg/configure	2012-02-05 18:05:44.074660019 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmjpls/configure.orig	2010-06-04 11:52:19.000000000 +0200
-+++ dcmtk-3.6.0/dcmjpls/configure	2012-02-05 19:02:37.461440978 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmnet/configure.orig	2010-06-04 11:52:19.000000000 +0200
-+++ dcmtk-3.6.0/dcmnet/configure	2012-02-05 19:04:15.808110939 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmpstat/configure.orig	2010-06-04 11:52:20.000000000 +0200
-+++ dcmtk-3.6.0/dcmpstat/configure	2012-02-05 19:05:02.091445823 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmqrdb/configure.orig	2010-06-04 11:52:20.000000000 +0200
-+++ dcmtk-3.6.0/dcmqrdb/configure	2012-02-05 19:05:46.411447305 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmsign/configure.orig	2010-06-04 11:52:21.000000000 +0200
-+++ dcmtk-3.6.0/dcmsign/configure	2012-02-05 19:06:23.611448552 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmsr/configure.orig	2010-06-04 11:52:21.000000000 +0200
-+++ dcmtk-3.6.0/dcmsr/configure	2012-02-05 19:06:49.118116075 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmtls/configure.orig	2010-06-04 11:52:21.000000000 +0200
-+++ dcmtk-3.6.0/dcmtls/configure	2012-02-05 19:07:23.594783894 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/dcmwlm/configure.orig	2010-06-04 11:52:21.000000000 +0200
-+++ dcmtk-3.6.0/dcmwlm/configure	2012-02-05 19:15:41.294800559 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/oflog/configure.orig	2010-06-04 11:52:21.000000000 +0200
-+++ dcmtk-3.6.0/oflog/configure	2012-02-05 19:16:14.704801676 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/ofstd/configure.orig	2010-06-04 11:52:21.000000000 +0200
-+++ dcmtk-3.6.0/ofstd/configure	2012-02-05 19:16:36.994802421 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
---- dcmtk-3.6.0/doxygen/configure.orig	2010-06-04 11:52:21.000000000 +0200
-+++ dcmtk-3.6.0/doxygen/configure	2012-02-05 19:36:52.051509774 +0100
-@@ -30,25 +30,25 @@
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		cd $thisdir
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	-c)
- 		shift
- 		cd "$configdir"
- 		echo "running configure in config-directory"
--		./configure $*
-+		./configure "$@"
- 		;;
- 	*)
- 		echo "running configure for this module"
--		sh "$configdir/confmod" --srcdir=. $*
-+		sh "$configdir/confmod" --srcdir=. "$@"
- 		;;
- 	esac
- else
- 	echo "running configure for this module"
--	sh "$configdir/confmod" --srcdir=. $*
-+	sh "$configdir/confmod" --srcdir=. "$@"
- fi	
- 
- 
diff --git a/dcmtk-etc.patch b/dcmtk-etc.patch
index ff9726c..a1059e2 100644
--- a/dcmtk-etc.patch
+++ b/dcmtk-etc.patch
@@ -1,35 +1,11 @@
---- dcmtk-3.6.0/CMake/GenerateDCMTKConfigure.cmake.orig	2010-12-20 13:50:53.000000000 +0100
-+++ dcmtk-3.6.0/CMake/GenerateDCMTKConfigure.cmake	2012-02-24 19:16:43.263102766 +0100
-@@ -60,7 +60,7 @@
-     SET(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH}${ENVIRONMENT_PATH_SEPARATOR}${DCMTK_PREFIX}${INSTALL_DATDIR}${PATH_SEPARATOR}private.dic")
-   ENDIF(WITH_PRIVATE_TAGS)
+--- dcmtk-3.6.1_20160630/CMake/GenerateDCMTKConfigure.cmake~	2016-06-30 11:41:55.000000000 +0200
++++ dcmtk-3.6.1_20160630/CMake/GenerateDCMTKConfigure.cmake	2016-08-07 13:05:38.470285825 +0200
+@@ -113,7 +113,7 @@ ELSE(WIN32 AND NOT CYGWIN AND NOT MINGW)
+     SET(DCM_DICT_DEFAULT_PATH "")
+   ENDIF (DCMTK_ENABLE_EXTERNAL_DICTIONARY)
    # Set default directory for configuration and support data.
--  SET(DCMTK_DEFAULT_CONFIGURATION_DIR "${DCMTK_PREFIX}${INSTALL_ETCDIR}${PATH_SEPARATOR}")
-+  SET(DCMTK_DEFAULT_CONFIGURATION_DIR "${INSTALL_ETCDIR}${PATH_SEPARATOR}")
-   SET(DCMTK_DEFAULT_SUPPORT_DATA_DIR "${DCMTK_PREFIX}${INSTALL_DATDIR}${PATH_SEPARATOR}")
+-  SET(DCMTK_DEFAULT_CONFIGURATION_DIR "${DCMTK_PREFIX}/${DCMTK_INSTALL_ETCDIR}/")
++  SET(DCMTK_DEFAULT_CONFIGURATION_DIR "/${DCMTK_INSTALL_ETCDIR}/")
+   SET(DCMTK_DEFAULT_SUPPORT_DATA_DIR "${DCMTK_PREFIX}/${DCMTK_INSTALL_DATDIR}/")
  ENDIF(WIN32 AND NOT CYGWIN AND NOT MINGW)
  
---- dcmtk-3.6.0/dcmnet/etc/CMakeLists.txt.orig	2005-09-15 10:15:05.000000000 +0200
-+++ dcmtk-3.6.0/dcmnet/etc/CMakeLists.txt	2012-02-24 20:27:25.439911474 +0100
-@@ -1,2 +1,2 @@
- # declare installation files
--INSTALL_FILES(${INSTALL_ETCDIR} .cfg)
-+INSTALL(FILES storescp.cfg storescu.cfg DESTINATION ${INSTALL_ETCDIR})
---- dcmtk-3.6.0/dcmpstat/etc/CMakeLists.txt.orig	2005-09-15 10:17:44.000000000 +0200
-+++ dcmtk-3.6.0/dcmpstat/etc/CMakeLists.txt	2012-02-24 20:28:25.083246806 +0100
-@@ -1,2 +1,2 @@
- # declare installation files
--INSTALL_FILES(${INSTALL_ETCDIR} .cfg)
-+INSTALL(FILES dcmpstat.cfg printers.cfg DESTINATION ${INSTALL_ETCDIR})
---- dcmtk-3.6.0/dcmqrdb/etc/CMakeLists.txt.orig	2005-09-15 10:19:37.000000000 +0200
-+++ dcmtk-3.6.0/dcmqrdb/etc/CMakeLists.txt	2012-02-24 20:29:10.269914985 +0100
-@@ -1,2 +1,2 @@
- # declare installation files
--INSTALL_FILES(${INSTALL_ETCDIR} .cfg)
-+INSTALL(FILES dcmqrscp.cfg DESTINATION ${INSTALL_ETCDIR})
---- dcmtk-3.6.0/oflog/etc/CMakeLists.txt.orig	2009-08-19 13:52:17.000000000 +0200
-+++ dcmtk-3.6.0/oflog/etc/CMakeLists.txt	2012-02-24 20:30:32.356584400 +0100
-@@ -1,2 +1,2 @@
- # declare installation files
--INSTALL_FILES(${INSTALL_ETCDIR} .cfg)
-+INSTALL(FILES filelog.cfg logger.cfg DESTINATION ${INSTALL_ETCDIR})
diff --git a/dcmtk-libi2d.patch b/dcmtk-libi2d.patch
deleted file mode 100644
index aaa19e1..0000000
--- a/dcmtk-libi2d.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- dcmtk-3.6.0/CMakeLists.txt.orig	2012-02-23 20:00:46.253631605 +0100
-+++ dcmtk-3.6.0/CMakeLists.txt	2012-02-23 20:48:54.923728329 +0100
-@@ -327,7 +327,7 @@
- SET_TARGET_PROPERTIES(ijg12 PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
- SET_TARGET_PROPERTIES(ijg16 PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
- SET_TARGET_PROPERTIES(ijg8 PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
--SET_TARGET_PROPERTIES(libi2d PROPERTIES ${DCMTK_LIBRARY_PROPERTIES})
-+SET_TARGET_PROPERTIES(libi2d PROPERTIES ${DCMTK_LIBRARY_PROPERTIES} OUTPUT_NAME "i2d")
- 
- 
- #-----------------------------------------------------------------------------
diff --git a/dcmtk-link.patch b/dcmtk-link.patch
deleted file mode 100644
index 2f8ee4c..0000000
--- a/dcmtk-link.patch
+++ /dev/null
@@ -1,150 +0,0 @@
---- dcmtk-3.6.0/ofstd/libsrc/CMakeLists.txt.orig	2009-12-21 16:06:18.000000000 +0100
-+++ dcmtk-3.6.0/ofstd/libsrc/CMakeLists.txt	2012-02-23 17:17:52.666637685 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(ofstd ofcmdln ofconapp ofcond ofconfig ofconsol ofcrc32 ofdate ofdatime offname oflist ofstd ofstring ofthread oftime)
- 
-+TARGET_LINK_LIBRARIES(ofstd pthread)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} ofstd)
---- dcmtk-3.6.0/oflog/libsrc/CMakeLists.txt.orig	2010-12-08 14:19:02.000000000 +0100
-+++ dcmtk-3.6.0/oflog/libsrc/CMakeLists.txt	2012-02-23 17:17:26.399970139 +0100
-@@ -8,5 +8,7 @@
- 
- ADD_LIBRARY(oflog oflog apndimpl appender config consap factory fileap filter globinit hierarchy hierlock layout logger logimpl logevent loglevel loglog lloguser ndc ntelogap nullap objreg patlay pointer property rootlog sleep socketap sockbuff socket strhelp syncprims syslogap threads timehelp ${OFLOG_PLATFORM_LIBRARIES})
- 
-+TARGET_LINK_LIBRARIES(oflog ofstd pthread)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} oflog)
---- dcmtk-3.6.0/dcmdata/libsrc/CMakeLists.txt.orig	2010-08-27 17:26:01.000000000 +0200
-+++ dcmtk-3.6.0/dcmdata/libsrc/CMakeLists.txt	2012-02-23 21:00:35.580418457 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmdata cmdlnarg dcbytstr dcchrstr dccodec dcdatset dcddirif dcdicdir dcdicent dcdict dcdictzz dcdirrec dcelem dcerror dcfilefo dchashdi dcistrma dcistrmb dcistrmf dcistrmz dcitem dclist dcmetinf dcobject dcostrma dcostrmb dcostrmf dcostrmz dcpcache dcpixel dcpixseq dcpxitem dcrleccd dcrlecce dcrlecp dcrledrg dcrleerg dcrlerp dcsequen dcstack dcswap dctag dctagkey dctypes dcuid dcwcache dcvm dcvr dcvrae dcvras dcvrat dcvrcs dcvrda dcvrds dcvrdt dcvrfd dcvrfl dcvris dcvrlo dcvrlt dcvrobow dcvrof dcvrpn dcvrpobw dcvrsh dcvrsl dcvrss dcvrst dcvrtm dcvrui dcvrul dcvrulup dcvrus dcvrut dcxfer dcpath vrscan vrscanl)
- 
-+TARGET_LINK_LIBRARIES(dcmdata oflog ofstd z)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmdata)
---- dcmtk-3.6.0/dcmdata/libi2d/CMakeLists.txt.orig	2009-07-16 16:25:38.000000000 +0200
-+++ dcmtk-3.6.0/dcmdata/libi2d/CMakeLists.txt	2012-02-24 17:16:09.796193895 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(libi2d i2d i2dplvlp i2djpgs i2dbmps i2dplsc i2dplnsc)
- 
-+TARGET_LINK_LIBRARIES(libi2d dcmdata)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} libi2d)
---- dcmtk-3.6.0/dcmsign/libsrc/CMakeLists.txt.orig	2005-09-15 10:21:03.000000000 +0200
-+++ dcmtk-3.6.0/dcmsign/libsrc/CMakeLists.txt	2012-02-23 19:33:12.730242908 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmdsig dcsignat siautopr sibrsapr sicert sicertvf sicreapr sidsa simaccon simd5 sinullpr siprivat siripemd sirsa sisha1 sisprof sitypes)
- 
-+TARGET_LINK_LIBRARIES(dcmdsig dcmdata ofstd crypto)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmdsig)
---- dcmtk-3.6.0/dcmimgle/libsrc/CMakeLists.txt.orig	2005-09-15 10:10:03.000000000 +0200
-+++ dcmtk-3.6.0/dcmimgle/libsrc/CMakeLists.txt	2012-02-23 21:04:48.253760251 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmimgle dcmimage dibaslut diciefn dicielut didislut didispfn didocu digsdfn digsdlut diimage diinpx diluptab dimo1img dimo2img dimoimg dimoimg3 dimoimg4 dimoimg5 dimomod dimoopx dimopx diovdat diovlay diovlimg diovpln diutils)
- 
-+TARGET_LINK_LIBRARIES(dcmimgle dcmdata oflog ofstd)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmimgle)
---- dcmtk-3.6.0/dcmimage/libsrc/CMakeLists.txt.orig	2009-11-25 15:40:25.000000000 +0100
-+++ dcmtk-3.6.0/dcmimage/libsrc/CMakeLists.txt	2012-02-23 21:05:54.503762469 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmimage diargimg dicmyimg dicoimg dicoopx dicopx dihsvimg dilogger dipalimg dipipng dipitiff diqtctab diqtfs diqthash diqthitl diqtpbox diquant diregist dirgbimg diybrimg diyf2img diyp2img)
- 
-+TARGET_LINK_LIBRARIES(dcmimage dcmimgle oflog ofstd tiff png)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmimage)
---- dcmtk-3.6.0/dcmnet/libsrc/CMakeLists.txt.orig	2009-12-16 18:02:57.000000000 +0100
-+++ dcmtk-3.6.0/dcmnet/libsrc/CMakeLists.txt	2012-02-23 21:08:10.720433697 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmnet assoc cond dcasccff dcasccfg dccfenmp dccfpcmp dccfprmp dccfrsmp dccftsmp dccfuidh dcmlayer dcmtrans dcompat dimcancl dimcmd dimdump dimecho dimfind dimget dimmove dimse dimstore diutil dul dulconst dulextra dulfsm dulparse dulpres extneg lst dfindscu dcuserid scu scp)
- 
-+TARGET_LINK_LIBRARIES(dcmnet dcmdata oflog ofstd)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmnet)
---- dcmtk-3.6.0/dcmjpeg/libsrc/CMakeLists.txt.orig	2009-10-07 14:44:33.000000000 +0200
-+++ dcmtk-3.6.0/dcmjpeg/libsrc/CMakeLists.txt	2012-02-24 15:13:17.155947032 +0100
-@@ -4,5 +4,7 @@
- # create library from source files
- ADD_LIBRARY(dcmjpeg ddpiimpl dipijpeg djcodecd djcodece djcparam djdecbas djdecext djdeclol djdecode djdecpro djdecsps djdecsv1 djdijg12 djdijg8 djdijg16 djeijg12 djeijg8 djeijg16 djencbas djencext djenclol djencode djencpro djencsps djencsv1 djrplol djrploss djutils)
- 
-+TARGET_LINK_LIBRARIES(dcmjpeg dcmimgle ijg8 ijg12 ijg16)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmjpeg)
---- dcmtk-3.6.0/dcmjpls/libsrc/CMakeLists.txt.orig	2012-02-23 21:11:28.480440318 +0100
-+++ dcmtk-3.6.0/dcmjpls/libsrc/CMakeLists.txt	2012-02-24 15:14:53.392616922 +0100
-@@ -4,5 +4,7 @@
- # create library from source files
- ADD_LIBRARY(dcmjpls djcparam djdecode djencode djrparam djcodecd djutils djcodece)
- 
-+TARGET_LINK_LIBRARIES(dcmjpls dcmimgle CharLS)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmjpls)
---- dcmtk-3.6.0/dcmqrdb/libsrc/CMakeLists.txt.orig	2005-12-16 13:44:35.000000000 +0100
-+++ dcmtk-3.6.0/dcmqrdb/libsrc/CMakeLists.txt	2012-02-24 17:48:45.209592704 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmqrdb dcmqrcbf dcmqrcbg dcmqrcbm dcmqrcbs dcmqrcnf dcmqrdbi dcmqrdbs dcmqropt dcmqrptb dcmqrsrv dcmqrtis)
- 
-+TARGET_LINK_LIBRARIES(dcmqrdb dcmnet)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmqrdb)
---- dcmtk-3.6.0/dcmsr/libsrc/CMakeLists.txt.orig	2010-11-05 12:06:57.000000000 +0100
-+++ dcmtk-3.6.0/dcmsr/libsrc/CMakeLists.txt	2012-02-24 17:13:02.179520948 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmsr dsrcitem dsrcodtn dsrcodvl dsrcomtn dsrcomvl dsrcontn dsrcsidl dsrdattn dsrdoc dsrdoctn dsrdoctr dsrdtitn dsrimgfr dsrimgtn dsrimgvl dsrnumtn dsrnumvl dsrpnmtn dsrreftn dsrscogr dsrsc3gr dsrscotn dsrsc3tn dsrscovl dsrsc3vl dsrsoprf dsrstrvl dsrtcodt dsrtcosp dsrtcotn dsrtcoto dsrtcovl dsrtextn dsrtimtn dsrtncsr dsrtree dsrtypes dsruidtn dsrwavch dsrwavtn dsrwavvl dsrxmlc dsrxmld dsriodcc dsrbascc dsrenhcc dsrcomcc dsrkeycc dsrmamcc dsrchecc dsrcolcc dsrprocc dsrxrdcc dsrspecc dsrmaccc dsrimpcc)
- 
-+TARGET_LINK_LIBRARIES(dcmsr dcmdata xml2)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmsr)
---- dcmtk-3.6.0/dcmtls/libsrc/CMakeLists.txt.orig	2010-04-29 18:18:39.000000000 +0200
-+++ dcmtk-3.6.0/dcmtls/libsrc/CMakeLists.txt	2012-02-24 15:17:42.772622593 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmtls tlslayer tlstrans tlsscu)
- 
-+TARGET_LINK_LIBRARIES(dcmtls dcmnet oflog ofstd ssl crypto)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmtls)
---- dcmtk-3.6.0/dcmwlm/libsrc/CMakeLists.txt.orig	2005-09-15 10:25:33.000000000 +0200
-+++ dcmtk-3.6.0/dcmwlm/libsrc/CMakeLists.txt	2012-02-24 17:44:46.996251395 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmwlm wlds wldsfs wlfsim wlmactmg)
- 
-+TARGET_LINK_LIBRARIES(dcmwlm dcmnet)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmwlm)
---- dcmtk-3.6.0/dcmpstat/libsrc/CMakeLists.txt.orig	2005-09-15 10:17:54.000000000 +0200
-+++ dcmtk-3.6.0/dcmpstat/libsrc/CMakeLists.txt	2012-02-24 18:50:07.069715986 +0100
-@@ -1,5 +1,7 @@
- # create library from source files
- ADD_LIBRARY(dcmpstat dcmpstat dviface dvpsab dvpsabl dvpsal dvpsall dvpscf dvpscu dvpscul dvpsda dvpsdal dvpsfs dvpsga dvpsgal dvpsgl dvpsgll dvpsgr dvpsgrl dvpshlp dvpsib dvpsibl dvpsmsg dvpsov dvpsovl dvpspl dvpspl2 dvpspll dvpspr dvpsprt dvpsri dvpsril dvpsrs dvpsrsl dvpssp dvpsspl dvpssv dvpssvl dvpstat dvpstx dvpstxl dvpsvl dvpsvll dvpsvw dvpsvwl dvsighdl)
- 
-+TARGET_LINK_LIBRARIES(dcmpstat dcmdsig dcmimgle dcmqrdb dcmsr dcmtls)
-+
- # declare installation files
- INSTALL_TARGETS(${INSTALL_LIBDIR} dcmpstat)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dcmtk.git/commitdiff/0311e0942bd22a832969349a9b5e76a7aa63505b




More information about the pld-cvs-commit mailing list