From 08a2f81fa29b2993fe02232d8742c4d4c117f3b7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 20:42:37 +0000 Subject: [PATCH 01/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- vxl.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vxl.spec b/vxl.spec index 6c9aadc..9ea75d4 100644 --- a/vxl.spec +++ b/vxl.spec @@ -1,6 +1,6 @@ Name: vxl Version: 1.17.0 -Release: 24%{?dist} +Release: 25%{?dist} Summary: C++ Libraries for Computer Vision Research and Implementation Group: Development/Libraries License: BSD @@ -256,6 +256,9 @@ ctest . %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 1.17.0-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Thu Aug 03 2017 Fedora Release Engineering - 1.17.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From 9b2b5100f055f44183a2b545233f5b8179fd7075 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 08:58:15 +0100 Subject: [PATCH 02/61] Remove %clean section None of currently supported distributions need that. Last one was EL5 which is EOL for a while. Signed-off-by: Igor Gnatenko --- vxl.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/vxl.spec b/vxl.spec index 9ea75d4..3b49666 100644 --- a/vxl.spec +++ b/vxl.spec @@ -228,9 +228,6 @@ make %{?_smp_mflags} rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -%clean -rm -rf $RPM_BUILD_ROOT - %check ctest . From 4dc19d06529b99f10327fce7e0301ed61ce87000 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 7 Mar 2018 20:57:45 -0800 Subject: [PATCH 03/61] Rebuild to fix GCC 8 mis-compilation See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64") --- vxl.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vxl.spec b/vxl.spec index 3b49666..197fa4b 100644 --- a/vxl.spec +++ b/vxl.spec @@ -1,6 +1,6 @@ Name: vxl Version: 1.17.0 -Release: 25%{?dist} +Release: 26%{?dist} Summary: C++ Libraries for Computer Vision Research and Implementation Group: Development/Libraries License: BSD @@ -253,6 +253,10 @@ ctest . %changelog +* Wed Mar 07 2018 Adam Williamson - 1.17.0-26 +- Rebuild to fix GCC 8 mis-compilation + See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64") + * Fri Feb 09 2018 Fedora Release Engineering - 1.17.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 2c09aa039f7458af62dac32750abf2d182f15687 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 9 Jul 2018 19:06:53 +0200 Subject: [PATCH 04/61] add BuildRequires: gcc-c++,gcc Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot --- vxl.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vxl.spec b/vxl.spec index 197fa4b..050d5a8 100644 --- a/vxl.spec +++ b/vxl.spec @@ -51,6 +51,8 @@ Patch100: %{name}-1.17.0-secondary.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: gcc +BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: doxygen BuildRequires: expat-devel From 98e8128cfb507b23f65d5f8968c61f074bd08715 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 08:41:32 +0000 Subject: [PATCH 05/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- vxl.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vxl.spec b/vxl.spec index 050d5a8..86e6ff4 100644 --- a/vxl.spec +++ b/vxl.spec @@ -1,6 +1,6 @@ Name: vxl Version: 1.17.0 -Release: 26%{?dist} +Release: 27%{?dist} Summary: C++ Libraries for Computer Vision Research and Implementation Group: Development/Libraries License: BSD @@ -255,6 +255,9 @@ ctest . %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 1.17.0-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Mar 07 2018 Adam Williamson - 1.17.0-26 - Rebuild to fix GCC 8 mis-compilation See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64") From b9a8543028f8fb59bb916c1239991ff886328987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Tue, 28 Aug 2018 11:39:35 +0200 Subject: [PATCH 06/61] Update dependency to minizip-compat(-devel) Related: rhbz#1609830, rhbz#1615381 --- vxl.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vxl.spec b/vxl.spec index 86e6ff4..417500d 100644 --- a/vxl.spec +++ b/vxl.spec @@ -1,6 +1,6 @@ Name: vxl Version: 1.17.0 -Release: 27%{?dist} +Release: 28%{?dist} Summary: C++ Libraries for Computer Vision Research and Implementation Group: Development/Libraries License: BSD @@ -73,7 +73,7 @@ BuildRequires: libdc1394-devel %endif BuildRequires: libgeotiff-devel BuildRequires: libjpeg-turbo-devel -BuildRequires: minizip-devel +BuildRequires: minizip-compat-devel BuildRequires: rply-devel BuildRequires: SIMVoleon-devel BuildRequires: shapelib-devel @@ -255,6 +255,9 @@ ctest . %changelog +* Tue Aug 28 2018 Patrik Novotný - 1.17.0-28 +- change requires to minizip-compat(-devel), rhbz#1609830, rhbz#1615381 + * Sat Jul 14 2018 Fedora Release Engineering - 1.17.0-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 1a1692469ccb27ff31a9e2ac127521becb82c75a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 22 Jan 2019 18:41:18 +0100 Subject: [PATCH 07/61] Remove obsolete ldconfig scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- vxl.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vxl.spec b/vxl.spec index 417500d..f475d17 100644 --- a/vxl.spec +++ b/vxl.spec @@ -233,9 +233,7 @@ make install DESTDIR=$RPM_BUILD_ROOT %check ctest . -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files %doc core/vxl_copyright.h From b75090409c5aa31c723ab46102419619be645eff Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:18:30 +0100 Subject: [PATCH 08/61] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- vxl.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/vxl.spec b/vxl.spec index f475d17..32c1126 100644 --- a/vxl.spec +++ b/vxl.spec @@ -2,7 +2,6 @@ Name: vxl Version: 1.17.0 Release: 28%{?dist} Summary: C++ Libraries for Computer Vision Research and Implementation -Group: Development/Libraries License: BSD URL: http://vxl.sourceforge.net/ # Need to remove the non-free lena image from the sources @@ -93,7 +92,6 @@ platforms. %package doc Summary: Documentation for VXL library -Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch @@ -104,7 +102,6 @@ have all the documentation %package devel Summary: Headers and development libraries for VXL -Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel From d7d547aca1a0a5b4638dd794dabad152366adc24 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 29 Jan 2019 05:36:39 +0100 Subject: [PATCH 09/61] Remove obsolete BuildRoot tag Signed-off-by: Igor Gnatenko --- vxl.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/vxl.spec b/vxl.spec index 32c1126..41e3714 100644 --- a/vxl.spec +++ b/vxl.spec @@ -48,7 +48,6 @@ Patch100: %{name}-1.17.0-secondary.patch #KL is used in an "UNMAINTAINED_LIBRARY", vgel is only built on request -Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc BuildRequires: gcc-c++ From 3aa2a912aa235ae18aeb54f1e151bf6b90bff31f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 3 Feb 2019 11:29:50 +0000 Subject: [PATCH 10/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- vxl.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vxl.spec b/vxl.spec index 41e3714..a1ed549 100644 --- a/vxl.spec +++ b/vxl.spec @@ -1,6 +1,6 @@ Name: vxl Version: 1.17.0 -Release: 28%{?dist} +Release: 29%{?dist} Summary: C++ Libraries for Computer Vision Research and Implementation License: BSD URL: http://vxl.sourceforge.net/ @@ -249,6 +249,9 @@ ctest . %changelog +* Sun Feb 03 2019 Fedora Release Engineering - 1.17.0-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Tue Aug 28 2018 Patrik Novotný - 1.17.0-28 - change requires to minizip-compat(-devel), rhbz#1609830, rhbz#1615381 From 7efbca912d3a07f8d5eb22569932913fcdef4655 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Sun, 17 Feb 2019 12:26:39 +0000 Subject: [PATCH 11/61] Rebuild --- vxl.spec | 265 ++++++++++++++++++++++++------------------------------- 1 file changed, 117 insertions(+), 148 deletions(-) diff --git a/vxl.spec b/vxl.spec index a1ed549..634ea6c 100644 --- a/vxl.spec +++ b/vxl.spec @@ -1,107 +1,107 @@ -Name: vxl -Version: 1.17.0 -Release: 29%{?dist} -Summary: C++ Libraries for Computer Vision Research and Implementation -License: BSD -URL: http://vxl.sourceforge.net/ +Name: vxl +Version: 1.17.0 +Release: 30%{?dist} +Summary: C++ Libraries for Computer Vision Research and Implementation +License: BSD +URL: http://vxl.sourceforge.net/ # Need to remove the non-free lena image from the sources # tar xf vxl-1.17.0.tar.gz -# rm -rf vxl-git4e07960/contrib/prip/vdtop/tests/lena.org.pgm +# rm -rf vxl-git4e07960/contrib/prip/vdtop/tests/lena.org.pgm # tar cfz vxl-1.17.0-clean.tar.gz vxl-git4e07960/ -# Source0: http://downloads.sourceforge.net/project/vxl/vxl/1.17/vxl-1.17.0.tar.gz -Source0: %{name}-%{version}-clean.tar.gz -Source2: https://vxl.svn.sourceforge.net/svnroot/vxl/trunk/core/vxl_copyright.h +# Source0: http://downloads.sourceforge.net/project/vxl/vxl/1.17/vxl-1.17.0.tar.gz +Source0: %{name}-%{version}-clean.tar.gz +Source2: https://vxl.svn.sourceforge.net/svnroot/vxl/trunk/core/vxl_copyright.h # Fedora has a distribution-specific include dir -Patch1: 0001-Added-include-path-for-geotiff.patch -Patch2: 0002-Added-soname-info-for-core-libraries.patch +Patch1: 0001-Added-include-path-for-geotiff.patch +Patch2: 0002-Added-soname-info-for-core-libraries.patch # Use system rply and don't use mpeg2 -Patch3: 0003-Use-system-rply.patch -Patch4: 0004-Added-more-soname.patch -Patch5: 0005-Do-not-build-OUL.patch -Patch6: 0006-BUG-rplyConfig.cmake-has-wrong-include-path.patch -Patch7: 0007-Arguments-of-ply_open-and-create-changed.-Thanks-to-.patch -Patch8: 0008-More-sonames.patch -Patch9: 0009-Bumped-up-version-to-1.14.patch +Patch3: 0003-Use-system-rply.patch +Patch4: 0004-Added-more-soname.patch +Patch5: 0005-Do-not-build-OUL.patch +Patch6: 0006-BUG-rplyConfig.cmake-has-wrong-include-path.patch +Patch7: 0007-Arguments-of-ply_open-and-create-changed.-Thanks-to-.patch +Patch8: 0008-More-sonames.patch +Patch9: 0009-Bumped-up-version-to-1.14.patch #TODO: Refers to contrib and is therefore not correct -Patch10: 0010-Use-system-FindEXPAT.patch -Patch11: 0011-Do-not-use-bundled-minizip.patch -Patch12: 0012-Added-Coin3D-Submitted-by-Volker-Frohlich.patch -Patch13: 0013-Added-SIMVoleon-Submitted-by-Volker-Frohlich.patch -Patch14: 0014-Added-additional-search-path-for-xerces-Submitted-by.patch -Patch15: 0015-Manage-KL-library-Submitted-by-Volker-Frohlich.patch -Patch16: 0016-Manage-KL-library-2-2-Submitted-by-Volker-Frohlich.patch -Patch17: 0017-Add-sonames-to-vpgl-lib.patch -Patch18: 0018-Added-sonames-to-vgui-vidl-vpdl-Qv-libs.patch -Patch19: 0019-Removed-box2m-which-requires-OpenCL-libraries.patch -Patch20: 0020-Included-missing-vcl_cstdio.h-header.patch -Patch21: 0021-Use-expatpp.h-which-is-provided-by-fedora-repos.patch -Patch22: 0022-Include-missing-vcl_cstdio.h-header.patch -Patch23: 0023-Remove-volm-because-of-error-in-function-prototype.patch -Patch24: 0024-Added-missing-sonames-for-mvl2-and-vepl1.patch -Patch25: 0025-Legacy-def1-r35963.patch -Patch26: 0026-Legacy-def2-r36001.patch +Patch10: 0010-Use-system-FindEXPAT.patch +Patch11: 0011-Do-not-use-bundled-minizip.patch +Patch12: 0012-Added-Coin3D-Submitted-by-Volker-Frohlich.patch +Patch13: 0013-Added-SIMVoleon-Submitted-by-Volker-Frohlich.patch +Patch14: 0014-Added-additional-search-path-for-xerces-Submitted-by.patch +Patch15: 0015-Manage-KL-library-Submitted-by-Volker-Frohlich.patch +Patch16: 0016-Manage-KL-library-2-2-Submitted-by-Volker-Frohlich.patch +Patch17: 0017-Add-sonames-to-vpgl-lib.patch +Patch18: 0018-Added-sonames-to-vgui-vidl-vpdl-Qv-libs.patch +Patch19: 0019-Removed-box2m-which-requires-OpenCL-libraries.patch +Patch20: 0020-Included-missing-vcl_cstdio.h-header.patch +Patch21: 0021-Use-expatpp.h-which-is-provided-by-fedora-repos.patch +Patch22: 0022-Include-missing-vcl_cstdio.h-header.patch +Patch23: 0023-Remove-volm-because-of-error-in-function-prototype.patch +Patch24: 0024-Added-missing-sonames-for-mvl2-and-vepl1.patch +Patch25: 0025-Legacy-def1-r35963.patch +Patch26: 0026-Legacy-def2-r36001.patch -Patch50: vxl-0.17.0-gcc5.diff -Patch51: vxl-1.17.0-gcc6.patch +Patch50: vxl-0.17.0-gcc5.diff +Patch51: vxl-1.17.0-gcc6.patch -Patch100: %{name}-1.17.0-secondary.patch +Patch100: %{name}-1.17.0-secondary.patch #KL is used in an "UNMAINTAINED_LIBRARY", vgel is only built on request BuildRequires: gcc BuildRequires: gcc-c++ -BuildRequires: cmake -BuildRequires: doxygen -BuildRequires: expat-devel -BuildRequires: Coin2-devel -BuildRequires: dcmtk-devel -BuildRequires: doxygen -BuildRequires: expat-devel -BuildRequires: expatpp-devel -BuildRequires: freeglut-devel -BuildRequires: klt-devel -BuildRequires: libpng-devel -BuildRequires: libtiff-devel -BuildRequires: libXmu-devel -BuildRequires: libXi-devel -BuildRequires: libjpeg-devel +BuildRequires: cmake +BuildRequires: doxygen +BuildRequires: expat-devel +BuildRequires: Coin2-devel +BuildRequires: dcmtk-devel +BuildRequires: doxygen +BuildRequires: expat-devel +BuildRequires: expatpp-devel +BuildRequires: freeglut-devel +BuildRequires: klt-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: libXmu-devel +BuildRequires: libXi-devel +BuildRequires: libjpeg-devel %ifnarch s390 s390x -BuildRequires: libdc1394-devel +BuildRequires: libdc1394-devel %endif -BuildRequires: libgeotiff-devel -BuildRequires: libjpeg-turbo-devel -BuildRequires: minizip-compat-devel -BuildRequires: rply-devel -BuildRequires: SIMVoleon-devel -BuildRequires: shapelib-devel -BuildRequires: texi2html -BuildRequires: xerces-c-devel -BuildRequires: zlib-devel +BuildRequires: libgeotiff-devel +BuildRequires: libjpeg-turbo-devel +BuildRequires: minizip-compat-devel +BuildRequires: rply-devel +BuildRequires: SIMVoleon-devel +BuildRequires: shapelib-devel +BuildRequires: texi2html +BuildRequires: xerces-c-devel +BuildRequires: zlib-devel #GUI needs wx, a desktop file and an icon %description VXL (the Vision-something-Libraries) is a collection of C++ libraries designed for computer vision research and implementation. It was created from TargetJr -and the IUE with the aim of making a light, fast and consistent system. +and the IUE with the aim of making a light, fast and consistent system. VXL is written in ANSI/ISO C++ and is designed to be portable over many platforms. -%package doc -Summary: Documentation for VXL library -Requires: %{name} = %{version}-%{release} -BuildArch: noarch +%package doc +Summary: Documentation for VXL library +Requires: %{name} = %{version}-%{release} +BuildArch: noarch %description doc You should install this package if you would like to have all the documentation -%package devel -Summary: Headers and development libraries for VXL -Requires: %{name}%{?_isa} = %{version}-%{release} +%package devel +Summary: Headers and development libraries for VXL +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -109,7 +109,7 @@ You should install this package if you would like to develop code based on VXL. %prep -%setup -q -n vxl-git4e07960 +%autosetup -n vxl-git4e07960 -S patch -p1 cp %{SOURCE2} . @@ -118,7 +118,7 @@ cp %{SOURCE2} . # QV is a Silicon Graphics' VRML parser from the 90s. Now unmantained. for l in jpeg png zlib tiff geotiff rply dcmtk bzlib do - find v3p/$l -type f ! -name 'CMakeLists.txt' -execdir rm {} + + find v3p/$l -type f ! -name 'CMakeLists.txt' -execdir rm {} + done find contrib/brl/b3p/shapelib -type f ! -name 'CMakeLists.txt' -execdir rm {} + @@ -132,37 +132,6 @@ find contrib/brl/b3p/expatpp -type f ! -name 'CMakeLists.txt' -execdir rm {} + #TODO: Various #vxl-devel.x86_64: E: invalid-soname /usr/lib64/libvvid.so libvvid.so -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 -%patch11 -p1 -%patch12 -p1 -%patch13 -p1 -%patch14 -p1 -%patch15 -p1 -%patch16 -p1 -%patch17 -p1 -%patch18 -p1 -%patch19 -p1 -%patch20 -p1 -%patch21 -p1 -%patch22 -p1 -%patch23 -p1 -%patch24 -p1 -%patch25 -p1 -%patch26 -p1 -%patch50 -p1 -%patch51 -p1 -b .gcc6 -%patch100 -p1 -b .secondary - - #Fix lib / lib64 problem during install: find . -name CMakeLists.txt -exec sed -i "s/INSTALL_TARGETS([ ]*\/lib/INSTALL_TARGETS(\/lib\$\{LIB_SUFFIX\}/;" {} + @@ -173,43 +142,43 @@ find . -name "*.txx" | xargs chmod ugo-x %build %cmake -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DBUILD_SHARED_LIBS:BOOL=ON \ - -DVXL_FORCE_B3P_EXPAT:BOOL=OFF \ - -DVXL_FORCE_V3P_DCMTK:BOOL=OFF \ - -DVXL_FORCE_V3P_GEOTIFF:BOOL=OFF \ - -DVXL_USING_NATIVE_KL=ON \ - -DVXL_FORCE_V3P_JPEG:BOOL=OFF \ - -DVXL_FORCE_V3P_MPEG2:BOOL=OFF \ - -DVXL_FORCE_V3P_PNG:BOOL=OFF \ - -DVXL_FORCE_V3P_TIFF:BOOL=OFF \ - -DVXL_FORCE_V3P_ZLIB:BOOL=OFF \ - -DVXL_FORCE_V3P_RPLY:BOOL=OFF \ - -DVXL_USING_NATIVE_ZLIB=ON \ - -DVXL_USING_NATIVE_JPEG=ON \ - -DVXL_USING_NATIVE_PNG=ON \ - -DVXL_USING_NATIVE_TIFF=ON \ - -DVXL_USING_NATIVE_GEOTIFF=ON \ - -DVXL_USING_NATIVE_EXPAT=ON \ - -DVXL_USING_NATIVE_SHAPELIB=ON \ - -DVXL_USING_NATIVE_BZLIB2=ON \ - -DBUILD_VGUI=OFF \ - -DBUILD_BGUI3D=OFF \ - -DBUILD_OXL:BOOL=ON \ - -DBUILD_BRL=OFF \ - -DBUILD_CORE_GEOMETRY:BOOL=ON \ - -DBUILD_CORE_IMAGING:BOOL=ON \ - -DBUILD_CORE_NUMERICS:BOOL=ON \ - -DBUILD_CORE_PROBABILITY:BOOL=ON \ - -DBUILD_CORE_SERIALISATION:BOOL=ON \ - -DBUILD_CORE_UTILITIES:BOOL=ON \ - -DBUILD_CORE_VIDEO:BOOL=ON \ - -DBUILD_EXAMPLES:BOOL=OFF \ - -DBUILD_TESTING:BOOL=OFF \ - -DBUILD_DOCUMENTATION:BOOL=ON \ - -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \ - -DCMAKE_CXX_FLAGS:STRING="$RPM_OPT_FLAGS -fpermissive" \ - -DPYTHON_LIBRARY=/usr/lib64/libpython2.7.so \ - -DVNL_CONFIG_LEGACY_METHODS=ON . + -DBUILD_SHARED_LIBS:BOOL=ON \ + -DVXL_FORCE_B3P_EXPAT:BOOL=OFF \ + -DVXL_FORCE_V3P_DCMTK:BOOL=OFF \ + -DVXL_FORCE_V3P_GEOTIFF:BOOL=OFF \ + -DVXL_USING_NATIVE_KL=ON \ + -DVXL_FORCE_V3P_JPEG:BOOL=OFF \ + -DVXL_FORCE_V3P_MPEG2:BOOL=OFF \ + -DVXL_FORCE_V3P_PNG:BOOL=OFF \ + -DVXL_FORCE_V3P_TIFF:BOOL=OFF \ + -DVXL_FORCE_V3P_ZLIB:BOOL=OFF \ + -DVXL_FORCE_V3P_RPLY:BOOL=OFF \ + -DVXL_USING_NATIVE_ZLIB=ON \ + -DVXL_USING_NATIVE_JPEG=ON \ + -DVXL_USING_NATIVE_PNG=ON \ + -DVXL_USING_NATIVE_TIFF=ON \ + -DVXL_USING_NATIVE_GEOTIFF=ON \ + -DVXL_USING_NATIVE_EXPAT=ON \ + -DVXL_USING_NATIVE_SHAPELIB=ON \ + -DVXL_USING_NATIVE_BZLIB2=ON \ + -DBUILD_VGUI=OFF \ + -DBUILD_BGUI3D=OFF \ + -DBUILD_OXL:BOOL=ON \ + -DBUILD_BRL=OFF \ + -DBUILD_CORE_GEOMETRY:BOOL=ON \ + -DBUILD_CORE_IMAGING:BOOL=ON \ + -DBUILD_CORE_NUMERICS:BOOL=ON \ + -DBUILD_CORE_PROBABILITY:BOOL=ON \ + -DBUILD_CORE_SERIALISATION:BOOL=ON \ + -DBUILD_CORE_UTILITIES:BOOL=ON \ + -DBUILD_CORE_VIDEO:BOOL=ON \ + -DBUILD_EXAMPLES:BOOL=OFF \ + -DBUILD_TESTING:BOOL=OFF \ + -DBUILD_DOCUMENTATION:BOOL=ON \ + -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \ + -DCMAKE_CXX_FLAGS:STRING="$RPM_OPT_FLAGS -fpermissive" \ + -DPYTHON_LIBRARY=/usr/lib64/libpython2.7.so \ + -DVNL_CONFIG_LEGACY_METHODS=ON . # Why is expat stated, but not shapelib? # DCMDK Cmake -- Included in bundle, but why? @@ -235,7 +204,7 @@ ctest . %doc core/vxl_copyright.h %{_libdir}/*.so.* %{_bindir}/* -#%{_datadir}/%{name}/ +#%%{_datadir}/%%{name}/ %files devel %{_datadir}/%{name} @@ -245,10 +214,11 @@ ctest . %files doc %doc %{_docdir}/* - - - %changelog +* Sun Feb 17 2019 Ankur Sinha - 1.17.0-30 +- Use autosetup macro +- Remove whitespaces, use space instead of tabs for cleanliness + * Sun Feb 03 2019 Fedora Release Engineering - 1.17.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild @@ -295,7 +265,7 @@ ctest . - Fix bogus %%changelog date. * Mon Aug 25 2014 Devrim Gündüz - 1.17.0-15 -- Rebuilt for libgeotiff +- Rebuilt for libgeotiff * Mon Aug 18 2014 Fedora Release Engineering - 1.17.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild @@ -337,7 +307,6 @@ ctest . * Sun Oct 14 2012 Mario Ceresa mrceresa fedoraproject org vxl 1.17.0-3%{?dist} - More fixes from Volker's post https://bugzilla.redhat.com/show_bug.cgi?id=567086#c42 -- * Wed Oct 10 2012 Mario Ceresa mrceresa fedoraproject org vxl 1.17.0-2%{?dist} - Added patches 12-16 from https://bugzilla.redhat.com/show_bug.cgi?id=567086#c42 From 2566942a3bd746deb6afe2fb3a3842c211dcd5e1 Mon Sep 17 00:00:00 2001 From: sagitter Date: Sat, 9 Mar 2019 16:36:00 +0100 Subject: [PATCH 12/61] Rebuild for dcmtk-3.6.4 --- vxl.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vxl.spec b/vxl.spec index 634ea6c..b1504c1 100644 --- a/vxl.spec +++ b/vxl.spec @@ -1,6 +1,6 @@ Name: vxl Version: 1.17.0 -Release: 30%{?dist} +Release: 31%{?dist} Summary: C++ Libraries for Computer Vision Research and Implementation License: BSD URL: http://vxl.sourceforge.net/ @@ -215,6 +215,9 @@ ctest . %doc %{_docdir}/* %changelog +* Sat Mar 09 2019 Antonio Trande - 1.17.0-31 +- Rebuild for dcmtk-3.6.4 + * Sun Feb 17 2019 Ankur Sinha - 1.17.0-30 - Use autosetup macro - Remove whitespaces, use space instead of tabs for cleanliness From ea6f50391eea57fdd86ef2f4ded2f08338daac99 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Thu, 18 Apr 2019 18:34:01 +0100 Subject: [PATCH 13/61] Spec bump, bundle dcmtk --- .gitignore | 1 + sources | 2 +- vxl.spec | 36 +++++++++++++++++++++++------------- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index f97538c..5d40acb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vxl-1.17.0.tar.gz /vxl-1.17.0-clean.tar.gz +/vxl-2.0.2-clean.tar.gz diff --git a/sources b/sources index 90f5730..09701af 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -99b44265df5a638b7757135cb4f10166 vxl-1.17.0-clean.tar.gz +SHA512 (vxl-2.0.2-clean.tar.gz) = d8cad8ca6851641bb4c3398b8bf5e3df45a7414fd736acf8e75b79bdd5d18ec3aae4edac5b4c66d98fc499f411a25a443f046859a3544e45228f468052ec79ee diff --git a/vxl.spec b/vxl.spec index b1504c1..c8c5f82 100644 --- a/vxl.spec +++ b/vxl.spec @@ -1,16 +1,15 @@ Name: vxl -Version: 1.17.0 -Release: 31%{?dist} +Version: 2.0.2 +Release: 1%{?dist} Summary: C++ Libraries for Computer Vision Research and Implementation License: BSD -URL: http://vxl.sourceforge.net/ +URL: https://vxl.github.io/ # Need to remove the non-free lena image from the sources -# tar xf vxl-1.17.0.tar.gz -# rm -rf vxl-git4e07960/contrib/prip/vdtop/tests/lena.org.pgm -# tar cfz vxl-1.17.0-clean.tar.gz vxl-git4e07960/ -# Source0: http://downloads.sourceforge.net/project/vxl/vxl/1.17/vxl-1.17.0.tar.gz +# tar xf vxl-%{version}.tar.gz +# rm -rf vxl-%{version}/contrib/prip/vdtop/tests/lena.org.pgm +# tar cfz vxl-%{version}-clean.tar.gz vxl-%{version}/ +# Source0: https://github.com/vxl/vxl/archive/v%{version}/%{name}-%{version}.tar.gz Source0: %{name}-%{version}-clean.tar.gz -Source2: https://vxl.svn.sourceforge.net/svnroot/vxl/trunk/core/vxl_copyright.h # Fedora has a distribution-specific include dir Patch1: 0001-Added-include-path-for-geotiff.patch Patch2: 0002-Added-soname-info-for-core-libraries.patch @@ -55,7 +54,9 @@ BuildRequires: cmake BuildRequires: doxygen BuildRequires: expat-devel BuildRequires: Coin2-devel -BuildRequires: dcmtk-devel +# Use bundled dcmtk until upstream updates their code to use newer dcmtk +# https://github.com/vxl/vxl/issues/550 +# BuildRequires: dcmtk-devel BuildRequires: doxygen BuildRequires: expat-devel BuildRequires: expatpp-devel @@ -109,14 +110,18 @@ You should install this package if you would like to develop code based on VXL. %prep -%autosetup -n vxl-git4e07960 -S patch -p1 - -cp %{SOURCE2} . +%autosetup -S patch -p1 #Remove bundled library (let's use FEDORA's ones) # v3p/netlib (made by f2c) dependency not removed because of heavily modifications # QV is a Silicon Graphics' VRML parser from the 90s. Now unmantained. -for l in jpeg png zlib tiff geotiff rply dcmtk bzlib + +# For the time being, use bundled dcmtk. It does not build with newer dcmtk. +# Issue filed here: +# https://github.com/vxl/vxl/issues/550 +# for l in jpeg png zlib tiff geotiff rply dcmtk bzlib + +for l in jpeg png zlib tiff geotiff rply bzlib do find v3p/$l -type f ! -name 'CMakeLists.txt' -execdir rm {} + done @@ -215,6 +220,11 @@ ctest . %doc %{_docdir}/* %changelog +* Sun Feb 17 2019 Ankur Sinha - 2.0.2-1 +- Update to latest upstream release +- Temporarily use bundled dcmtk (https://github.com/vxl/vxl/issues/550) +- Use new github upstream + * Sat Mar 09 2019 Antonio Trande - 1.17.0-31 - Rebuild for dcmtk-3.6.4 From 2efb9d728de3876dd56dbd02222ea59b27fab69c Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Fri, 19 Apr 2019 00:07:30 +0100 Subject: [PATCH 14/61] WIP: not yet ready for build --- 0001-Added-include-path-for-geotiff.patch | 26 - 0001-v2.0.2-unbundle-rply.patch | 3626 +++++++++++++++++ ...Added-soname-info-for-core-libraries.patch | 117 - 0002-v2.0.2-Use-Fedora-FindEXPAT.patch | 469 +++ 0003-Use-system-rply.patch | 71 - 0003-v2.0.2-Use-Fedora-minizip.patch | 28 + 0004-Added-more-soname.patch | 53 - 0004-Version-shared-objects.patch | 258 ++ 0004-v2.0.2-Correct-dcmtk-includes.patch | 65 + 0008-More-sonames.patch | 819 ---- 0009-Bumped-up-version-to-1.14.patch | 26 - 0011-Do-not-use-bundled-minizip.patch | 30 - 0017-Add-sonames-to-vpgl-lib.patch | 77 - ...ed-sonames-to-vgui-vidl-vpdl-Qv-libs.patch | 64 - ...d-missing-sonames-for-mvl2-and-vepl1.patch | 37 - vxl-0.17.0-gcc5.diff | 13 - vxl-1.17.0-gcc6.patch | 70 - vxl.spec | 219 +- vxl_copyright.h | 37 - 19 files changed, 4601 insertions(+), 1504 deletions(-) delete mode 100644 0001-Added-include-path-for-geotiff.patch create mode 100644 0001-v2.0.2-unbundle-rply.patch delete mode 100644 0002-Added-soname-info-for-core-libraries.patch create mode 100644 0002-v2.0.2-Use-Fedora-FindEXPAT.patch delete mode 100644 0003-Use-system-rply.patch create mode 100644 0003-v2.0.2-Use-Fedora-minizip.patch delete mode 100644 0004-Added-more-soname.patch create mode 100644 0004-Version-shared-objects.patch create mode 100644 0004-v2.0.2-Correct-dcmtk-includes.patch delete mode 100644 0008-More-sonames.patch delete mode 100644 0009-Bumped-up-version-to-1.14.patch delete mode 100644 0011-Do-not-use-bundled-minizip.patch delete mode 100644 0017-Add-sonames-to-vpgl-lib.patch delete mode 100644 0018-Added-sonames-to-vgui-vidl-vpdl-Qv-libs.patch delete mode 100644 0024-Added-missing-sonames-for-mvl2-and-vepl1.patch delete mode 100644 vxl-0.17.0-gcc5.diff delete mode 100644 vxl-1.17.0-gcc6.patch delete mode 100644 vxl_copyright.h diff --git a/0001-Added-include-path-for-geotiff.patch b/0001-Added-include-path-for-geotiff.patch deleted file mode 100644 index 20ea0f4..0000000 --- a/0001-Added-include-path-for-geotiff.patch +++ /dev/null @@ -1,26 +0,0 @@ -From ac852c19102585381f1762251716e62ebc86c0f7 Mon Sep 17 00:00:00 2001 -From: Mario Ceresa -Date: Wed, 10 Oct 2012 17:09:48 +0200 -Subject: [PATCH 01/23] Added include path for geotiff - -Signed-off-by: Mario Ceresa ---- - config/cmake/Modules/NewCMake/FindGEOTIFF.cmake | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/config/cmake/Modules/NewCMake/FindGEOTIFF.cmake b/config/cmake/Modules/NewCMake/FindGEOTIFF.cmake -index 9e5013f..624e331 100644 ---- a/config/cmake/Modules/NewCMake/FindGEOTIFF.cmake -+++ b/config/cmake/Modules/NewCMake/FindGEOTIFF.cmake -@@ -8,6 +8,8 @@ - # GEOTIFF_LIBRARY, where to find the GEOTIFF library. - - FIND_PATH(GEOTIFF_INCLUDE_DIR geotiff.h -+ /usr/local/include/libgeotiff -+ /usr/include/libgeotiff - /usr/local/include - /usr/include - ) --- -1.7.11.7 - diff --git a/0001-v2.0.2-unbundle-rply.patch b/0001-v2.0.2-unbundle-rply.patch new file mode 100644 index 0000000..dc93658 --- /dev/null +++ b/0001-v2.0.2-unbundle-rply.patch @@ -0,0 +1,3626 @@ +From 03d46e9ecaae8e18c892aecded6f918f6407344d Mon Sep 17 00:00:00 2001 +From: "Ankur Sinha (Ankur Sinha Gmail)" +Date: Thu, 15 Nov 2018 14:15:02 +0000 +Subject: [PATCH 1/4] v2.0.2: unbundle rply + +--- + contrib/brl/bbas/bmsh3d/algo/CMakeLists.txt | 5 +- + contrib/brl/bseg/boxm/algo/CMakeLists.txt | 3 +- + contrib/brl/bseg/boxm2/cpp/CMakeLists.txt | 6 +- + .../brl/bseg/boxm2/cpp/algo/CMakeLists.txt | 6 +- + v3p/CMakeLists.txt | 1 - + v3p/rply/CMakeLists.txt | 9 - + v3p/rply/LICENSE | 20 - + v3p/rply/etc/convert.c | 136 -- + v3p/rply/etc/dump.c | 44 - + v3p/rply/etc/input.ply | 16 - + v3p/rply/etc/sconvert.c | 66 - + v3p/rply/manual/manual.html | 993 ----------- + v3p/rply/manual/reference.css | 54 - + v3p/rply/manual/rply.png | Bin 6232 -> 0 bytes + v3p/rply/readme.txt | 24 - + v3p/rply/rply.c | 1570 ----------------- + v3p/rply/rply.h | 367 ---- + 17 files changed, 13 insertions(+), 3307 deletions(-) + delete mode 100644 v3p/rply/CMakeLists.txt + delete mode 100644 v3p/rply/LICENSE + delete mode 100644 v3p/rply/etc/convert.c + delete mode 100644 v3p/rply/etc/dump.c + delete mode 100644 v3p/rply/etc/input.ply + delete mode 100644 v3p/rply/etc/sconvert.c + delete mode 100644 v3p/rply/manual/manual.html + delete mode 100644 v3p/rply/manual/reference.css + delete mode 100644 v3p/rply/manual/rply.png + delete mode 100644 v3p/rply/readme.txt + delete mode 100644 v3p/rply/rply.c + delete mode 100644 v3p/rply/rply.h + +diff --git a/contrib/brl/bbas/bmsh3d/algo/CMakeLists.txt b/contrib/brl/bbas/bmsh3d/algo/CMakeLists.txt +index 5cf355e3fe3e15f6a8aa78be27469bf31e392716..662ec284e92840ebbcc0b3fc53eeab4561a7f3b8 100644 +--- a/contrib/brl/bbas/bmsh3d/algo/CMakeLists.txt ++++ b/contrib/brl/bbas/bmsh3d/algo/CMakeLists.txt +@@ -1,8 +1,9 @@ + # This is bbas/bmsh3d/algo/CMakeLists.txt + # Brown 3D Mesh Algorithm Library ++FIND_PACKAGE(rply REQUIRED) + + include_directories( ${BRL_INCLUDE_DIR} ) +-include_directories( ${VTHREEP_INCLUDE_DIR}/rply ) ++include_directories( ${RPLY_INCLUDE_DIR} ) + + set( bmsh3d_algo_sources + bmsh3d_fileio.cxx bmsh3d_fileio.h +@@ -13,7 +14,7 @@ set( bmsh3d_algo_sources + ) + + vxl_add_library(LIBRARY_NAME bmsh3d_algo LIBRARY_SOURCES ${bmsh3d_algo_sources}) +-target_link_libraries( bmsh3d_algo bmsh3d rply ${VXL_LIB_PREFIX}vgl ${VXL_LIB_PREFIX}vnl ${VXL_LIB_PREFIX}vul) ++target_link_libraries( bmsh3d_algo bmsh3d ${RPLY_LIBRARY} ${VXL_LIB_PREFIX}vgl ${VXL_LIB_PREFIX}vnl ${VXL_LIB_PREFIX}vul) + + if( BUILD_TESTING ) + add_subdirectory(tests) +diff --git a/contrib/brl/bseg/boxm/algo/CMakeLists.txt b/contrib/brl/bseg/boxm/algo/CMakeLists.txt +index cee22bd27162f42baca3ea8d7838a88b9ef8ef0b..4714624fa3f1b30ecc5b99278b8782402d18f64d 100644 +--- a/contrib/brl/bseg/boxm/algo/CMakeLists.txt ++++ b/contrib/brl/bseg/boxm/algo/CMakeLists.txt +@@ -1,6 +1,7 @@ + # brl/bseg/boxm/algo/CMakeLists.txt ++FIND_PACKAGE(rply REQUIRED) + include_directories( ${MUL_INCLUDE_DIR} ) +-include_directories( ${VTHREEP_INCLUDE_DIR}/rply ) ++include_directories( ${RPLY_INCLUDE_DIR} ) + set(boxm_algo_sources + boxm_compute_scene_statistics.h + boxm_crop_scene.h +diff --git a/contrib/brl/bseg/boxm2/cpp/CMakeLists.txt b/contrib/brl/bseg/boxm2/cpp/CMakeLists.txt +index 92b959f740c5de390f76aeda77f05c6f6dc7aa3c..fff9ae2d8404c5631564eddc30c48cae8a69ffc0 100644 +--- a/contrib/brl/bseg/boxm2/cpp/CMakeLists.txt ++++ b/contrib/brl/bseg/boxm2/cpp/CMakeLists.txt +@@ -1,12 +1,14 @@ ++FIND_PACKAGE(rply REQUIRED) ++ + include_directories( ${BRL_INCLUDE_DIR}/bseg ) +-include_directories( ${VTHREEP_INCLUDE_DIR}/rply ) ++include_directories( ${RPLY_INCLUDE_DIR} ) + set(boxm2_cpp_sources + + ) + aux_source_directory(Templates boxm2_cpp_sources) + vxl_add_library(LIBRARY_NAME boxm2_cpp LIBRARY_SOURCES ${boxm2_cpp_sources}) + +-target_link_libraries(boxm2_cpp boxm2 boxm2_basic boxm2_io boct brdb ${VXL_LIB_PREFIX}vbl_io expatpp ${VXL_LIB_PREFIX}vpgl ${VXL_LIB_PREFIX}vil_io ${VXL_LIB_PREFIX}vil ${VXL_LIB_PREFIX}vgl ${VXL_LIB_PREFIX}vgl_xio ${VXL_LIB_PREFIX}vbl ${VXL_LIB_PREFIX}vsl ${VXL_LIB_PREFIX}vcl rply) ++target_link_libraries(boxm2_cpp boxm2 boxm2_basic boxm2_io boct brdb ${VXL_LIB_PREFIX}vbl_io expatpp ${VXL_LIB_PREFIX}vpgl ${VXL_LIB_PREFIX}vil_io ${VXL_LIB_PREFIX}vil ${VXL_LIB_PREFIX}vgl ${VXL_LIB_PREFIX}vgl_xio ${VXL_LIB_PREFIX}vbl ${VXL_LIB_PREFIX}vsl ${VXL_LIB_PREFIX}vcl ${RPLY_LIBRARY} ) + + # cpp process APIs. + add_subdirectory(pro) +diff --git a/contrib/brl/bseg/boxm2/cpp/algo/CMakeLists.txt b/contrib/brl/bseg/boxm2/cpp/algo/CMakeLists.txt +index 1407ed9d31e842ba5826c06f38ac5c2516c22113..c3ed4ed27d4d08902f8b56d158bb89539df76a93 100644 +--- a/contrib/brl/bseg/boxm2/cpp/algo/CMakeLists.txt ++++ b/contrib/brl/bseg/boxm2/cpp/algo/CMakeLists.txt +@@ -1,6 +1,8 @@ ++FIND_PACKAGE(rply REQUIRED) ++ + include_directories( ${BRL_INCLUDE_DIR}/bseg ) + include_directories( ${MUL_INCLUDE_DIR} ) +-include_directories( ${VTHREEP_INCLUDE_DIR}/rply) ++include_directories( ${RPLY_INCLUDE_DIR} ) + + set(boxm2_cpp_algo_sources + boxm2_cast_ray_function.h +@@ -57,7 +59,7 @@ set(boxm2_cpp_algo_sources + aux_source_directory(Templates boxm2_cpp_algo_sources) + + vxl_add_library(LIBRARY_NAME boxm2_cpp_algo LIBRARY_SOURCES ${boxm2_cpp_algo_sources}) +-target_link_libraries(boxm2_cpp_algo boxm2_cpp brad boct brdb expatpp ${VXL_LIB_PREFIX}vpgl bvgl imesh imesh_algo bsta_algo bsta ${VXL_LIB_PREFIX}vil_algo ${VXL_LIB_PREFIX}vil ${VXL_LIB_PREFIX}vgl_xio ${VXL_LIB_PREFIX}vgl ${VXL_LIB_PREFIX}vnl_algo ${VXL_LIB_PREFIX}vnl ${VXL_LIB_PREFIX}vul ${VXL_LIB_PREFIX}vbl_io ${VXL_LIB_PREFIX}vbl ${VXL_LIB_PREFIX}vsl ${VXL_LIB_PREFIX}vcl bvpl rply) ++target_link_libraries(boxm2_cpp_algo boxm2_cpp brad boct brdb expatpp ${VXL_LIB_PREFIX}vpgl bvgl imesh imesh_algo bsta_algo bsta ${VXL_LIB_PREFIX}vil_algo ${VXL_LIB_PREFIX}vil ${VXL_LIB_PREFIX}vgl_xio ${VXL_LIB_PREFIX}vgl ${VXL_LIB_PREFIX}vnl_algo ${VXL_LIB_PREFIX}vnl ${VXL_LIB_PREFIX}vul ${VXL_LIB_PREFIX}vbl_io ${VXL_LIB_PREFIX}vbl ${VXL_LIB_PREFIX}vsl ${VXL_LIB_PREFIX}vcl bvpl ${RPLY_LIBRARY} ) + + if(BUILD_TESTING) + add_subdirectory(tests) +diff --git a/v3p/CMakeLists.txt b/v3p/CMakeLists.txt +index 251ef9a97923ff5d6e0063eb8251831c7dde6e57..ae9baedaa4425355b1ab57f68cf7e8f906345b98 100644 +--- a/v3p/CMakeLists.txt ++++ b/v3p/CMakeLists.txt +@@ -60,5 +60,4 @@ if(VXL_BUILD_CORE_IMAGING) + add_subdirectory(png) + add_subdirectory(dcmtk) + add_subdirectory(openjpeg2) +- add_subdirectory(rply) + endif() +diff --git a/v3p/rply/CMakeLists.txt b/v3p/rply/CMakeLists.txt +deleted file mode 100644 +index 9085a628a1c7a06c7f7bc1c0080b1a1f4beceeb7..0000000000000000000000000000000000000000 +--- a/v3p/rply/CMakeLists.txt ++++ /dev/null +@@ -1,9 +0,0 @@ +-# This is /v3p/rply/CMakeLists.txt +-# library for reading and writing .PLY file +- +-set(rply_sources +- rply.h +- rply.c +- ) +- +-vxl_add_library(LIBRARY_NAME rply LIBRARY_SOURCES ${rply_sources}) +diff --git a/v3p/rply/LICENSE b/v3p/rply/LICENSE +deleted file mode 100644 +index 02e7c5f385b5ca8c7e9df071455f3956122e9380..0000000000000000000000000000000000000000 +--- a/v3p/rply/LICENSE ++++ /dev/null +@@ -1,20 +0,0 @@ +-RPly 1.01 license +-Copyright 2003-2005 Diego Nehab. +- +-Permission is hereby granted, free of charge, to any person obtaining a +-copy of this software and associated documentation files (the "Software"), +-to deal in the Software without restriction, including without limitation +-the rights to use, copy, modify, merge, publish, distribute, sublicense, +-and/or sell copies of the Software, and to permit persons to whom the +-Software is furnished to do so, subject to the following conditions: +- +-The above copyright notice and this permission notice shall be included in +-all copies or substantial portions of the Software. +- +-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +-DEALINGS IN THE SOFTWARE. +diff --git a/v3p/rply/etc/convert.c b/v3p/rply/etc/convert.c +deleted file mode 100644 +index e90d4cd576f1b980ba45f7fd153b8542e7b0bca3..0000000000000000000000000000000000000000 +--- a/v3p/rply/etc/convert.c ++++ /dev/null +@@ -1,136 +0,0 @@ +-#include +-#include +-#include +-#include +-#include "rply.h" +- +-/* internal function prototypes */ +-static void error(const char *fmt, ...); +-static void help(void); +-static void parse_arguments(int argc, char **argv, +- e_ply_storage_mode *storage_mode, +- const char **iname, const char **oname); +-static void setup_callbacks(p_ply iply, p_ply oply); +- +-/* given a format mode, an input file name and an output file name, +- * convert input file to output in given format mode */ +-int main(int argc, char **argv) +-{ +- const char *value = NULL; +- e_ply_storage_mode storage_mode = PLY_LITTLE_ENDIAN; +- const char *iname = NULL, *oname = NULL; +- p_ply iply = NULL, oply = NULL; +- /* parse command line arguments */ +- parse_arguments(argc, argv, &storage_mode, &iname, &oname); +- /* open input file and make sure we parsed its header */ +- iply = ply_open(iname, NULL); +- if (!iply) error("Unable to open file '%s'", iname); +- if (!ply_read_header(iply)) error("Failed reading '%s' header", iname); +- /* create output file */ +- oply = ply_create(oname, storage_mode, NULL); +- if (!oply) error("Unable to create file '%s'", oname); +- /* create elements and properties in output file and +- * setup callbacks for them in input file */ +- setup_callbacks(iply, oply); +- /* pass comments and obj_infos from input to output */ +- value = NULL; +- while ((value = ply_get_next_comment(iply, value))) +- if (!ply_add_comment(oply, value)) +- error("Failed adding comments"); +- value = NULL; +- while ((value = ply_get_next_obj_info(iply, value))) +- if (!ply_add_obj_info(oply, value)) +- error("Failed adding comments"); +- /* write output header */ +- if (!ply_write_header(oply)) error("Failed writing '%s' header", oname); +- /* read input file generating callbacks that pass data to output file */ +- if (!ply_read(iply)) error("Conversion failed"); +- /* close up, we are done */ +- if (!ply_close(iply)) error("Error closing file '%s'", iname); +- if (!ply_close(oply)) error("Error closing file '%s'", oname); +- return 0; +-} +- +-/* prints an error message and exits */ +-static void error(const char *fmt, ...) +-{ +- va_list ap; +- va_start(ap, fmt); +- vfprintf(stderr, fmt, ap); +- va_end(ap); +- fprintf(stderr, "\n"); +- exit(1); +-} +- +-/* prints the help message and exits */ +-static void help(void) +-{ +- error("Usage:\n" +- " convert