Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/digikam digikam: fix build with latest opencv...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2144a37b432d
branches: trunk
changeset: 432666:2144a37b432d
user: markd <markd%pkgsrc.org@localhost>
date: Sun May 24 06:09:39 2020 +0000
description:
digikam: fix build with latest opencv. add dependency on x265.
diffstat:
graphics/digikam/Makefile | 5 +-
graphics/digikam/PLIST | 3 +-
graphics/digikam/distinfo | 4 +-
graphics/digikam/patches/patch-core_libs_facesengine_detection_opencvfacedetector.cpp | 15 ++++++
graphics/digikam/patches/patch-core_libs_facesengine_recognition_dlib-dnn_dnnface_dnn__base_cv__image.h | 24 ++++++++++
5 files changed, 47 insertions(+), 4 deletions(-)
diffs (99 lines):
diff -r 45cd702fabae -r 2144a37b432d graphics/digikam/Makefile
--- a/graphics/digikam/Makefile Sun May 24 05:35:52 2020 +0000
+++ b/graphics/digikam/Makefile Sun May 24 06:09:39 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.156 2020/05/21 20:53:42 ryoon Exp $
+# $NetBSD: Makefile,v 1.157 2020/05/24 06:09:39 markd Exp $
DISTNAME= digikam-6.4.0
-PKGREVISION= 8
+PKGREVISION= 9
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_KDE:=digikam/6.4.0/}
@@ -41,6 +41,7 @@
.include "../../misc/libkvkontakte/buildlink3.mk"
.include "../../misc/marble/buildlink3.mk"
.include "../../multimedia/ffmpeg4/buildlink3.mk"
+.include "../../multimedia/x265/buildlink3.mk"
.include "../../sysutils/kfilemetadata5/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/libxslt/buildlink3.mk"
diff -r 45cd702fabae -r 2144a37b432d graphics/digikam/PLIST
--- a/graphics/digikam/PLIST Sun May 24 05:35:52 2020 +0000
+++ b/graphics/digikam/PLIST Sun May 24 06:09:39 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.32 2020/02/02 03:11:08 markd Exp $
+@comment $NetBSD: PLIST,v 1.33 2020/05/24 06:09:39 markd Exp $
bin/cleanup_digikamdb
bin/digikam
bin/digitaglinktree
@@ -114,6 +114,7 @@
qt5/plugins/digikam/bqm/Bqm_Convert16To8_Plugin.so
qt5/plugins/digikam/bqm/Bqm_Convert8To16_Plugin.so
qt5/plugins/digikam/bqm/Bqm_ConvertToDNG_Plugin.so
+qt5/plugins/digikam/bqm/Bqm_ConvertToHEIF_Plugin.so
qt5/plugins/digikam/bqm/Bqm_ConvertToJP2lugin_Plugin.so
qt5/plugins/digikam/bqm/Bqm_ConvertToJPEG_Plugin.so
qt5/plugins/digikam/bqm/Bqm_ConvertToPGF_Plugin.so
diff -r 45cd702fabae -r 2144a37b432d graphics/digikam/distinfo
--- a/graphics/digikam/distinfo Sun May 24 05:35:52 2020 +0000
+++ b/graphics/digikam/distinfo Sun May 24 06:09:39 2020 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.49 2019/11/20 14:35:43 mef Exp $
+$NetBSD: distinfo,v 1.50 2020/05/24 06:09:39 markd Exp $
SHA1 (digikam-6.4.0-03/digikam-6.4.0.tar.xz) = 6f067b31a2109f82b2e78c89fc84bd03eab30674
RMD160 (digikam-6.4.0-03/digikam-6.4.0.tar.xz) = 818826ba0fd64785cb25297a1f4c11e0747e0eb2
SHA512 (digikam-6.4.0-03/digikam-6.4.0.tar.xz) = b3b5e9903538d110613aa872c9215f5e7c19f7520a2b9060c24e686f20f72075378b447239dd3e17cb8860cdd35c699399994199b848757f0497ad25a7805e42
Size (digikam-6.4.0-03/digikam-6.4.0.tar.xz) = 340146992 bytes
+SHA1 (patch-core_libs_facesengine_detection_opencvfacedetector.cpp) = e5c05583c31c4d0bfc9a2b7548a7131709a50f96
+SHA1 (patch-core_libs_facesengine_recognition_dlib-dnn_dnnface_dnn__base_cv__image.h) = e3164ad2cc91232abc36b66e56806ad4a0715ee6
SHA1 (patch-core_libs_kmemoryinfo_libstatgrab_kmemoryinfo_backend.cpp) = 2dda961ce33d535cef998a490eeb1969419cbc17
diff -r 45cd702fabae -r 2144a37b432d graphics/digikam/patches/patch-core_libs_facesengine_detection_opencvfacedetector.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/digikam/patches/patch-core_libs_facesengine_detection_opencvfacedetector.cpp Sun May 24 06:09:39 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-core_libs_facesengine_detection_opencvfacedetector.cpp,v 1.1 2020/05/24 06:09:39 markd Exp $
+
+Build with recent opencv. From ArchLinux.
+
+--- core/libs/facesengine/detection/opencvfacedetector.cpp.orig 2019-11-03 09:04:00.000000000 +0000
++++ core/libs/facesengine/detection/opencvfacedetector.cpp
+@@ -166,7 +166,7 @@ public:
+ * of the region of interest of this cascade (still relative to whole image).
+ * For frontal face cascades, returns the given parameter unchanged.
+ */
+- cv::Rect faceROI(const CvRect& faceRect) const
++ cv::Rect faceROI(const cv::Rect faceRect) const
+ {
+ return cv::Rect(lround(faceRect.x + roi.x() * faceRect.width),
+ lround(faceRect.y + roi.y() * faceRect.height),
diff -r 45cd702fabae -r 2144a37b432d graphics/digikam/patches/patch-core_libs_facesengine_recognition_dlib-dnn_dnnface_dnn__base_cv__image.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/digikam/patches/patch-core_libs_facesengine_recognition_dlib-dnn_dnnface_dnn__base_cv__image.h Sun May 24 06:09:39 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-core_libs_facesengine_recognition_dlib-dnn_dnnface_dnn__base_cv__image.h,v 1.1 2020/05/24 06:09:39 markd Exp $
+
+Build with recent opencv. From ArchLinux.
+
+--- core/libs/facesengine/recognition/dlib-dnn/dnnface/dnn_base/cv_image.h.orig 2019-11-03 09:04:00.000000000 +0000
++++ core/libs/facesengine/recognition/dlib-dnn/dnnface/dnn_base/cv_image.h
+@@ -52,7 +52,7 @@ public:
+ << "\n\t img.channels(): " << img.channels()
+ << "\n\t img.pixel_traits<pixel_type>::num: " << pixel_traits<pixel_type>::num
+ );
+- IplImage temp = img;
++ IplImage temp = cvIplImage(img);
+ init(&temp);
+ }
+
+@@ -125,7 +125,7 @@ public:
+
+ cv_image& operator=( const cv::Mat img)
+ {
+- IplImage temp = img;
++ IplImage temp = cvIplImage(img);
+ init(&temp);
+ return *this;
+ }
Home |
Main Index |
Thread Index |
Old Index