Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+6 -4
View File
@@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.108 2015/04/25 14:23:14 tnn Exp $
# $NetBSD: Makefile,v 1.111 2016/08/03 10:22:54 adam Exp $
#
PKGNAME= kipi-plugins-4.4.0
PKGNAME= kipi-plugins-4.13.0
PKGREVISION= 2
DISTNAME= digikam-4.4.0
DISTNAME= digikam-4.13.0
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_KDE:=digikam/}
EXTRACT_SUFX= .tar.bz2
@@ -20,15 +20,17 @@ DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= c c++
USE_TOOLS+= msgfmt pkg-config bison
CMAKE_ARGS+= -DENABLE_OPENCV3:BOOL=ON
WRKSRC= ${WRKDIR}/${DISTNAME}/extra/kipi-plugins
post-patch:
${ECHO} "FIND_PACKAGE(Msgfmt REQUIRED)" >> ${WRKSRC}/CMakeLists.txt
${ECHO} "FIND_PACKAGE(Gettext REQUIRED)" >> ${WRKSRC}/CMakeLists.txt
${ECHO} "set_property(GLOBAL PROPERTY ALLOW_DUPLICATE_CUSTOM_TARGETS 1)" >> ${WRKSRC}/CMakeLists.txt
${ECHO} "ADD_SUBDIRECTORY(po)" >> ${WRKSRC}/CMakeLists.txt
ln -s ../../po ${WRKSRC}/po
rm ${WRKSRC}/po/*/digikam.po ${WRKSRC}/po/*/libkgeomap.po ${WRKSRC}/po/*/libkipi.po
rm ${WRKSRC}/po/*/digikam.po ${WRKSRC}/po/*/libkipi.po
SUBST_CLASSES+= xdg
SUBST_SED.xdg= -e "s,/usr/bin/env xdg-open,${PREFIX}/bin/xdg-open,"
File diff suppressed because it is too large Load Diff
+11 -4
View File
@@ -1,5 +1,12 @@
$NetBSD: distinfo,v 1.33 2014/11/15 20:59:33 markd Exp $
$NetBSD: distinfo,v 1.35 2015/12/12 19:32:45 markd Exp $
SHA1 (digikam-4.4.0.tar.bz2) = 1feb43120addda314e09761440ec2058e430171c
RMD160 (digikam-4.4.0.tar.bz2) = 540f243361aba3c95b675c05f84d8d60efab1948
Size (digikam-4.4.0.tar.bz2) = 68871203 bytes
SHA1 (digikam-4.13.0.tar.bz2) = d696ac88dcb3bcbd3a5da83b0fbe5e7315a43f92
RMD160 (digikam-4.13.0.tar.bz2) = 11d6aa15a94cd38acca79f2a31f65393a01a2b0b
SHA512 (digikam-4.13.0.tar.bz2) = 0cadb55f568a34d07f008791ca351428f4cd9e7060ba79aa8acc25e5e38f0bbcd586df764dacbcb9d1dadb56d2fb9160760cc89aeab4d7cef9bdbd26f691752b
Size (digikam-4.13.0.tar.bz2) = 69554099 bytes
SHA1 (patch-CMakeLists.txt) = 84a60e41594a93a619994157529da2656e17e38a
SHA1 (patch-README) = 2b01709a03ffa0d74fb20a5b9d6aced552df2c9b
SHA1 (patch-removeredeyes_CMakeLists.txt) = b2224f70410e6c767258b751e05bedab4515cbfa
SHA1 (patch-removeredeyes_detection_locators_haarclassifier_haarclassifierlocator.cpp) = 7084638db7858c144710e3c18eadef0fcf022d77
SHA1 (patch-removeredeyes_plugin_libopencv.h) = 6460c0f62d095372588b1397b337157defb82fe7
SHA1 (patch-removeredeyes_test_CMakeLists.txt) = b5ff51e037754a133450f599603811cdd10660a4
@@ -0,0 +1,49 @@
$NetBSD: patch-CMakeLists.txt,v 1.1 2015/12/12 19:32:45 markd Exp $
opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
--- CMakeLists.txt.orig 2015-10-16 21:39:14.000000000 +0000
+++ CMakeLists.txt
@@ -1,4 +1,3 @@
-cmake_minimum_required(VERSION 2.8.9)
#
# Copyright (c) 2010-2015, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
@@ -11,16 +10,18 @@ project(kipi-plugins)
message(STATUS "----------------------------------------------------------------------------------")
message(STATUS "Starting CMake configuration for: kipi-plugins")
+option(ENABLE_OPENCV3 "Build kipi-plugins with OpenCV3 instead OpenCV2 (default=OFF)" OFF)
+
# =======================================================
# Information to update before to release this package.
# kipi-plugins version
set(KIPIPLUGINS_MAJOR_VERSION "4")
-set(KIPIPLUGINS_MINOR_VERSION "13")
+set(KIPIPLUGINS_MINOR_VERSION "14")
set(KIPIPLUGINS_PATCH_VERSION "0")
# kipi-plugins release date
-set(KIPIPLUGINS_RELEASE_DATE "2015-08-30")
+set(KIPIPLUGINS_RELEASE_DATE "2015-09-27")
# Suffix to add at end of version string. Usual values are:
# "-git" : alpha code unstable from git. Do not use in production
@@ -165,8 +166,14 @@ if(KIPI_FOUND)
include(MacroUtils)
include(MacroOpenCV)
- set(OPENCV_MIN_VERSION "2.4.9")
- DETECT_OPENCV(${OPENCV_MIN_VERSION} core highgui objdetect contrib legacy imgproc)
+
+ if (ENABLE_OPENCV3)
+ set(OPENCV_MIN_VERSION "3.0.0")
+ DETECT_OPENCV(${OPENCV_MIN_VERSION} core face highgui objdetect imgproc)
+ else()
+ set(OPENCV_MIN_VERSION "2.4.9")
+ DETECT_OPENCV(${OPENCV_MIN_VERSION} core highgui objdetect contrib legacy imgproc)
+ endif()
include(MacroOptionalDependPackage)
@@ -0,0 +1,19 @@
$NetBSD: patch-README,v 1.1 2015/12/12 19:32:45 markd Exp $
opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
--- README.orig 2015-09-03 21:22:45.000000000 +0000
+++ README
@@ -140,6 +140,12 @@ http://bugs.kde.org/buglist.cgi?product=
-- INSTALL ------------------------------------------------------------
+CMake compilation options to custom digiKam:
+
+Use CMake "-DENABLE_OPENCV3=on" flag to compile kipi-plugins source code using OpenCV3 instead OpenCV2 (disabled by default).
+ OpenCV3 support needs extra contrib modules package, especially 'face'
+ and 'legacy' components.
+
In order to compile, especially when QT3/Qt4 are installed at the same time,
just use something like that:
@@ -0,0 +1,13 @@
$NetBSD: patch-removeredeyes_CMakeLists.txt,v 1.1 2015/12/12 19:32:45 markd Exp $
opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
--- removeredeyes/CMakeLists.txt.orig 2015-09-03 21:22:45.000000000 +0000
+++ removeredeyes/CMakeLists.txt
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2010-2014, Gilles Caulier, <caulier dot gilles at gmail dot com>
+# Copyright (c) 2010-2015, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
@@ -0,0 +1,22 @@
$NetBSD: patch-removeredeyes_detection_locators_haarclassifier_haarclassifierlocator.cpp,v 1.1 2015/12/12 19:32:45 markd Exp $
opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
--- removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp.orig 2015-09-03 21:22:45.000000000 +0000
+++ removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp
@@ -90,6 +90,15 @@ const QString HaarClassifierLocator::Pri
// --------------------------------------------------------
+#if !(OPENCV_TEST_VERSION(2,5,0))
+
+static void cvFillImage(CvArr* const mat, double color)
+{
+ cvSet(mat, cvColorToScalar(color, cvGetElemType(mat)), 0);
+}
+
+#endif
+
int HaarClassifierLocator::findPossibleEyes(double csf, int ngf, const char* classifierFile)
{
// eyes sequence will reside in the storage
@@ -0,0 +1,32 @@
$NetBSD: patch-removeredeyes_plugin_libopencv.h,v 1.1 2015/12/12 19:32:45 markd Exp $
opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
--- removeredeyes/plugin/libopencv.h.orig 2015-09-03 21:22:45.000000000 +0000
+++ removeredeyes/plugin/libopencv.h
@@ -7,7 +7,7 @@
* @date 2010-06-16
* @brief Wrapper for OpenCV header files
*
- * @author Copyright (C) 2012-2014 by Gilles Caulier
+ * @author Copyright (C) 2012-2015 by Gilles Caulier
* <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
*
* This program is free software; you can redistribute it
@@ -53,12 +53,13 @@
#define OPENCV_MAKE_VERSION(major,minor,patch) (((major) << 16) | ((minor) << 8) | (patch))
#define OPENCV_VERSION OPENCV_MAKE_VERSION(CV_MAJOR_VERSION,CV_MINOR_VERSION,CV_SUBMINOR_VERSION)
-#define OPENCV_TEST_VERSION(major,minor,patch) ( OPENCV_VERSION >= OPENCV_MAKE_VERSION(major,minor,patch) )
+#define OPENCV_TEST_VERSION(major,minor,patch) ( OPENCV_VERSION < OPENCV_MAKE_VERSION(major,minor,patch) )
-#if OPENCV_TEST_VERSION(2,3,0)
+#include <opencv2/core/core_c.h>
+
+#if OPENCV_TEST_VERSION(2,5,0)
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui_c.h>
-#include <opencv2/core/core_c.h>
#include <opencv2/legacy/compat.hpp>
#include <opencv/cvaux.h>
#else
@@ -0,0 +1,19 @@
$NetBSD: patch-removeredeyes_test_CMakeLists.txt,v 1.1 2015/12/12 19:32:45 markd Exp $
opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
--- removeredeyes/test/CMakeLists.txt.orig 2015-09-03 21:22:45.000000000 +0000
+++ removeredeyes/test/CMakeLists.txt
@@ -1,10 +1,10 @@
#
-# Copyright (c) 2010-2014, Gilles Caulier, <caulier dot gilles at gmail dot com>
+# Copyright (c) 2010-2015, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-if(NOT WIN32)
+if(NOT WIN32 AND (${OpenCV_VERSION} VERSION_LESS 3.0.0))
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../plugin
${CMAKE_CURRENT_SOURCE_DIR}/../libcvblobs