debian/0000755000000000000000000000000012251054536007171 5ustar debian/rules0000755000000000000000000000460212251054043010244 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--version-script=../exports.version export DEB_CFLAGS_MAINT_APPEND = -fvisibility=hidden -fvisibility-inlines-hidden export DEB_CXXFLAGS_MAINT_APPEND = -fvisibility=hidden -fvisibility-inlines-hidden DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) CMAKE_EXTRA_FLAGS += -DCMAKE_BUILD_TYPE:STRING=None \ -Dcharls_BUILD_SHARED_LIBS:BOOL=ON \ -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" %: dh $@ --parallel --buildsystem=cmake override_dh_auto_configure: dh_auto_configure -- $(CMAKE_EXTRA_FLAGS) pkg_run = libcharls1 pkg_dev = libcharls-dev override_dh_install-arch: # Runtime Package dh_install -p$(pkg_run) usr/lib/$(DEB_HOST_MULTIARCH)/lib*.so.* # Development Package dh_install -p$(pkg_dev) usr/include dh_install -p$(pkg_dev) usr/lib/$(DEB_HOST_MULTIARCH)/lib*.so VER_MAJOR = 1 VER_MINOR = 0 VER_FULL = $(VER_MAJOR).$(VER_MINOR) UPSTREAM_SRC = CharLS-source-$(VER_FULL) DEBIAN_SRC_DIR = charls-$(VER_FULL) DEBIAN_SRC_TAR = charls_$(VER_FULL).orig.tar.gz $(UPSTREAM_SRC).zip: #does not work anymore: wget -c -O CharLS-source-1.0.zip "http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=charls&DownloadId=165715&FileTime=129338164013100000&Build=17748" #does not work anymore: wget -c -O CharLS-source-1.0.zip "http://download.codeplex.com/Download?ProjectName=charls&DownloadId=165715&FileTime=129338164013100000&Build=18301" wget -c -O CharLS-source-1.0.zip "http://download.codeplex.com/Download?ProjectName=charls&DownloadId=165715&FileTime=129338164013100000&Build=18353" get-orig-source: $(UPSTREAM_SRC).zip rm -rf $(DEBIAN_SRC_DIR) unzip -q $(UPSTREAM_SRC).zip -d $(DEBIAN_SRC_DIR) # UNIX eol dos2unix $(DEBIAN_SRC_DIR)/*.h dos2unix $(DEBIAN_SRC_DIR)/*.c* dos2unix $(DEBIAN_SRC_DIR)/*.txt # remove dataset to reduce source size rm -rf $(DEBIAN_SRC_DIR)/test/conformance/ rm -rf $(DEBIAN_SRC_DIR)/test/jlsimage/ rm $(DEBIAN_SRC_DIR)/test/*.raw rm $(DEBIAN_SRC_DIR)/test/*.jls rm $(DEBIAN_SRC_DIR)/test/*.dcm rm $(DEBIAN_SRC_DIR)/test/*.ppm rm $(DEBIAN_SRC_DIR)/test/MR2_UNC GZIP="--best --no-name" tar czf $(DEBIAN_SRC_TAR) $(DEBIAN_SRC_DIR) rm -rf $(DEBIAN_SRC_DIR) rm $(UPSTREAM_SRC).zip # # put orig.tar in ../tarballs (-> default location for svn-buildpackage) mkdir -p ../tarballs mv *.orig.tar.gz ../tarballs debian/watch0000644000000000000000000000036712250552101010216 0ustar # The software is hosted on CodePlex which doesn't support automated uscan(1) downloads # see discussion at http://lists.debian.org/debian-mentors/2012/11/msg00072.html # The latest source is at # http://charls.codeplex.com/downloads/get/165715 debian/changelog0000644000000000000000000000275712251054772011060 0ustar charls (1.0-5) unstable; urgency=medium * Rework the symbol file to hide stl exported symbols -- Mathieu Malaterre Sun, 08 Dec 2013 12:26:36 +0100 charls (1.0-4) unstable; urgency=low * Do not set CMAKE_BUILD_TYPE. Closes: #731595 * Fix exported symbols (add symbol file) -- Mathieu Malaterre Sun, 08 Dec 2013 08:56:17 +0100 charls (1.0-3) unstable; urgency=low * Team upload * debian/watch: uscan can not parse codeplex pages * debian/patches/charls_fix_clang_compilation_issue.patch: Apply patch from Mathieu Malaterre to enable compilation with clang Closes: #730612 * cme fix dpkg-control * canonical Vcs-Svn URL * dicstinct short / long descriptions -- Andreas Tille Sat, 07 Dec 2013 08:53:27 +0100 charls (1.0-2) unstable; urgency=low [ Thorsten Alteholz ] * debian/rules: download URL for get-orig-source changed * debian/rules get-orig-source: put orig.tar.gz in ../tarballs to allow automatic build with svn-buildpackage [ Mathieu Malaterre ] * Use my @d.o alias * Remove DMUA flag * use dh(9), get hardening for free * make package multiarch * Bump Std-Vers to 3.9.3, no changes needed * Update d/copyright to latest dep5 * Use dep3 for patches -- Mathieu Malaterre Wed, 11 Apr 2012 16:21:40 +0200 charls (1.0-1) unstable; urgency=low * Initial release (Closes: #624346) -- Mathieu Malaterre Wed, 27 Apr 2011 18:26:56 +0200 debian/control0000644000000000000000000000351512250556025010577 0ustar Source: charls Maintainer: Debian Med Packaging Team Uploaders: Mathieu Malaterre Section: libs Priority: optional Build-Depends: debhelper (>= 9), cmake Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/charls/trunk/ Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/charls/trunk/ Homepage: http://charls.codeplex.com Package: libcharls-dev Architecture: any Section: libdevel Depends: libcharls1 (= ${binary:Version}), ${misc:Depends} Description: Implementation of the JPEG-LS standard (development libraries) CharLS is an optimized implementation of the JPEG-LS standard for lossless and near-lossless image compression . JPEG-LS (ISO-14495-1/ITU-T.87) is a standard derived from the Hewlett Packard LOCO algorithm. JPEG LS has low complexity (meaning fast compression) and high compression ratios, similar to JPEG 2000. JPEG-LS is more similar to the old Lossless JPEG than to JPEG 2000, but interestingly the two different techniques result in vastly different performance characteristics. . This package contains the development files. Package: libcharls1 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Pre-Depends: ${misc:Pre-Depends} Description: Implementation of the JPEG-LS standard CharLS is an optimized implementation of the JPEG-LS standard for lossless and near-lossless image compression . JPEG-LS (ISO-14495-1/ITU-T.87) is a standard derived from the Hewlett Packard LOCO algorithm. JPEG LS has low complexity (meaning fast compression) and high compression ratios, similar to JPEG 2000. JPEG-LS is more similar to the old Lossless JPEG than to JPEG 2000, but interestingly the two different techniques result in vastly different performance characteristics. debian/copyright0000644000000000000000000000350411741313357011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: CharLS Upstream-Contact: Jan de Vaan Source: http://charls.codeplex.com Files: * Copyright: © Jan de Vaan 2007-2010, all rights reserved. License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of my employer, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: © 2011-2012 Mathieu Malaterre License: BSD-3-clause Same as above debian/libcharls1.symbols0000644000000000000000000000024412251054043012620 0ustar libCharLS.so.1 libcharls1 #MINVER# JpegLsDecode@Base 1.0 JpegLsDecodeRect@Base 1.0 JpegLsEncode@Base 1.0 JpegLsReadHeader@Base 1.0 JpegLsVerifyEncode@Base 1.0 debian/source/0000755000000000000000000000000012251054536010471 5ustar debian/source/format0000644000000000000000000000001411556045056011703 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211741313357010371 0ustar 9 debian/patches/0000755000000000000000000000000012251054536010620 5ustar debian/patches/stl_symbols_hack.patch0000644000000000000000000000127212251054772015205 0ustar Description: Rework the symbol file to hide stl exported symbols Author: Mathieu Malaterre --- charls-1.0.orig/CMakeLists.txt +++ charls-1.0/CMakeLists.txt @@ -34,6 +34,7 @@ IF(BUILD_SHARED_LIBS) SOVERSION ${CHARLS_LIB_MAJOR_VERSION} ) set_property(TARGET CharLS PROPERTY LINK_INTERFACE_LIBRARIES "") + set_property(TARGET CharLS PROPERTY LINK_FLAGS "-Wl,--version-script=../exports.version") ENDIF(BUILD_SHARED_LIBS) --- /dev/null +++ charls-1.0/exports.version @@ -0,0 +1,6 @@ +{ +global: + JpegLs*; +local: + *; +}; debian/patches/charls_fix_clang_compilation_issue.patch0000644000000000000000000000106712251023422020727 0ustar Author: Mathieu Malaterre Last-Update: Wed Nov 27 10:33:27 2013 +0100 Bug-Debian: http://bugs.debian.org/730612 Description: Fix a compilation error with clang --- a/processline.h +++ b/processline.h @@ -144,7 +144,7 @@ class ProcessTransformed : public Proces { typedef typename TRANSFORM::SAMPLE SAMPLE; - ProcessTransformed(const ProcessTransformed&) {} + ProcessTransformed(const ProcessTransformed&); public: ProcessTransformed(void* pbyteOutput, const JlsParameters& info, TRANSFORM transform) : _pbyteOutput((BYTE*)pbyteOutput), debian/patches/add_visibility.patch0000644000000000000000000000177012251023422014633 0ustar Index: charls-1.0/interface.h =================================================================== --- charls-1.0.orig/interface.h 2013-12-08 08:37:24.697462239 +0100 +++ charls-1.0/interface.h 2013-12-08 08:37:28.109462193 +0100 @@ -14,8 +14,12 @@ #endif #else #ifndef CHARLS_IMEXPORT +#if __GNUC__ >= 4 +#define CHARLS_IMEXPORT(returntype) __attribute__ ((visibility ("default"))) returntype +#else #define CHARLS_IMEXPORT(returntype) returntype #endif +#endif #endif /* _WIN32 */ Index: charls-1.0/interface.cpp =================================================================== --- charls-1.0.orig/interface.cpp 2013-12-08 08:37:23.629462252 +0100 +++ charls-1.0/interface.cpp 2013-12-08 08:37:28.109462193 +0100 @@ -6,6 +6,8 @@ //implement correct linkage for win32 dlls #if defined(_WIN32) #define CHARLS_IMEXPORT(returntype) __declspec(dllexport) returntype __stdcall +#else +#define CHARLS_IMEXPORT(returntype) __attribute__ ((visibility ("default"))) returntype #endif #include "config.h" debian/patches/series0000644000000000000000000000026412251054772012041 0ustar charls_add_cmake_install_target.patch charls_add_sharedlib_soname.patch charls_fix_tests.patch charls_fix_clang_compilation_issue.patch add_visibility.patch stl_symbols_hack.patch debian/patches/charls_add_cmake_install_target.patch0000644000000000000000000000232311741313357020163 0ustar Description: Fix broken installation rules Forwarded: not-needed Author: Mathieu Malaterre Index: charls-1.0/CMakeLists.txt =================================================================== --- charls-1.0.orig/CMakeLists.txt 2011-04-27 21:06:40.000000000 +0200 +++ charls-1.0/CMakeLists.txt 2011-04-27 21:06:42.000000000 +0200 @@ -12,6 +12,11 @@ ENDIF(CMAKE_COMPILER_IS_GNUCC) ENDIF(NOT CMAKE_BUILD_TYPE) +SET( charls_HEADERS "colortransform.h" "context.h" "decoderstrategy.h" "encoderstrategy.h" "interface.h" + "losslesstraits.h" "scan.h" "streams.h" "config.h" "contextrunmode.h" "defaulttraits.h" + "header.h" "lookuptable.h" "processline.h" "util.h" "publictypes.h" +) + OPTION(charls_BUILD_SHARED_LIBS "Build CharLS with shared libraries." OFF) SET(BUILD_SHARED_LIBS ${charls_BUILD_SHARED_LIBS}) @@ -21,3 +26,7 @@ add_executable(charlstest test/main.cpp test/time.cpp test/util.cpp test/bitstreamdamage.cpp test/compliance.cpp test/performance.cpp test/dicomsamples.cpp) target_link_libraries (charlstest CharLS) +# Installs the header files into the {build_dir}/include/libcharls directory +install(FILES ${charls_HEADERS} DESTINATION include/CharLS) + + debian/patches/charls_add_sharedlib_soname.patch0000644000000000000000000000324612251023422017277 0ustar Description: Fix broken SOVERSION rules Forwarded: not-needed Author: Mathieu Malaterre Index: charls-1.0/CMakeLists.txt =================================================================== --- charls-1.0.orig/CMakeLists.txt 2013-06-09 17:37:59.930503819 +0200 +++ charls-1.0/CMakeLists.txt 2013-06-09 17:39:15.794503768 +0200 @@ -20,8 +20,23 @@ OPTION(charls_BUILD_SHARED_LIBS "Build CharLS with shared libraries." OFF) SET(BUILD_SHARED_LIBS ${charls_BUILD_SHARED_LIBS}) -add_library(CharLS header.cpp interface.cpp jpegls.cpp ) +# Add soname to generated shared lib +SET(CHARLS_LIB_MAJOR_VERSION 1) +SET(CHARLS_LIB_MINOR_VERSION 0) + +IF(BUILD_SHARED_LIBS) + add_library(CharLS SHARED header.cpp interface.cpp jpegls.cpp + stdafx.cpp + ) + set_target_properties( CharLS PROPERTIES + VERSION ${CHARLS_LIB_MAJOR_VERSION}.${CHARLS_LIB_MINOR_VERSION} + SOVERSION ${CHARLS_LIB_MAJOR_VERSION} + ) + set_property(TARGET CharLS PROPERTY LINK_INTERFACE_LIBRARIES "") + + +ENDIF(BUILD_SHARED_LIBS) add_executable(charlstest test/main.cpp test/time.cpp test/util.cpp test/bitstreamdamage.cpp test/compliance.cpp test/performance.cpp test/dicomsamples.cpp) target_link_libraries (charlstest CharLS) @@ -29,4 +44,8 @@ # Installs the header files into the {build_dir}/include/libcharls directory install(FILES ${charls_HEADERS} DESTINATION include/CharLS) +# Installs the target file (libCharLS.so) into the {build_dir}/lib directory +install(TARGETS CharLS LIBRARY DESTINATION lib${LIB_SUFFIX}) + + debian/patches/charls_fix_tests.patch0000644000000000000000000000057212251023422015177 0ustar Description: Fix broken test Forwarded: not-needed Author: Mathieu Malaterre --- charls-1.0.orig/defaulttraits.h +++ charls-1.0/defaulttraits.h @@ -2,7 +2,7 @@ // (C) Jan de Vaan 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use. // - +#include "header.h" #ifndef CHARLS_DEFAULTTRAITS #define CHARLS_DEFAULTTRAITS