From owner-svn-ports-all@FreeBSD.ORG Thu Apr 16 08:01:50 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7B29E5E2; Thu, 16 Apr 2015 08:01:50 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 662AFF01; Thu, 16 Apr 2015 08:01:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3G81oLS005981; Thu, 16 Apr 2015 08:01:50 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3G81nSZ005979; Thu, 16 Apr 2015 08:01:49 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201504160801.t3G81nSZ005979@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Thu, 16 Apr 2015 08:01:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r384091 - in head/graphics: opencv opencv-core opencv/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2015 08:01:50 -0000 Author: kwm Date: Thu Apr 16 08:01:48 2015 New Revision: 384091 URL: https://svnweb.freebsd.org/changeset/ports/384091 Log: Add patch from debian to fix the installed pkg-config files. This allows the gstreamer plugin to actualy link to the needed opencv libraries. PR: 196021 Approved by: maintainer timeout (4 months) Obtained from: debian Added: head/graphics/opencv/files/patch-pkg-config (contents, props changed) Modified: head/graphics/opencv-core/Makefile head/graphics/opencv/Makefile Modified: head/graphics/opencv-core/Makefile ============================================================================== --- head/graphics/opencv-core/Makefile Thu Apr 16 07:47:10 2015 (r384090) +++ head/graphics/opencv-core/Makefile Thu Apr 16 08:01:48 2015 (r384091) @@ -1,7 +1,7 @@ # Created by: Martin Matuska # $FreeBSD$ -PORTREVISION= 1 +PORTREVISION= 2 PKGNAMESUFFIX= -${OCV_SLAVE} COMMENT= OpenCV core libraries Modified: head/graphics/opencv/Makefile ============================================================================== --- head/graphics/opencv/Makefile Thu Apr 16 07:47:10 2015 (r384090) +++ head/graphics/opencv/Makefile Thu Apr 16 08:01:48 2015 (r384091) @@ -3,7 +3,7 @@ PORTNAME?= opencv PORTVERSION= 2.4.9 -PORTREVISION?= 3 +PORTREVISION?= 4 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}library/${PORTNAME}-unix/${PORTVERSION} Added: head/graphics/opencv/files/patch-pkg-config ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/opencv/files/patch-pkg-config Thu Apr 16 08:01:48 2015 (r384091) @@ -0,0 +1,50 @@ +Description: pkg-config is broken in OpenCV-2.4.x +Bug: http://code.opencv.org/issues/1925 +Bug-Debian: http://bugs.debian.org/721894, http://bugs.debian.org/678222 +Author: Ray Rashif +Last-Update: 2013-11-23 + +diff --git a/cmake/OpenCVGenPkgconfig.cmake b/cmake/OpenCVGenPkgconfig.cmake +index a36b70e..a3733bc 100644 +--- cmake/OpenCVGenPkgconfig.cmake ++++ cmake/OpenCVGenPkgconfig.cmake +@@ -10,7 +10,7 @@ + # ------------------------------------------------------------------------------------------- + set(prefix "${CMAKE_INSTALL_PREFIX}") + set(exec_prefix "\${prefix}") +-set(libdir "") #TODO: need link paths for OpenCV_EXTRA_COMPONENTS ++set(libdir "\${prefix}/${OPENCV_LIB_INSTALL_PATH}") + set(includedir "\${prefix}/${OPENCV_INCLUDE_INSTALL_PATH}") + + if(CMAKE_BUILD_TYPE MATCHES "Release") +@@ -35,10 +35,11 @@ ocv_list_reverse(OpenCV_LIB_COMPONENTS) + ocv_list_reverse(OpenCV_EXTRA_COMPONENTS) + + #build the list of components +-set(OpenCV_LIB_COMPONENTS_ "") ++set(OpenCV_LIB_COMPONENTS_ "-L\${libdir}") + foreach(CVLib ${OpenCV_LIB_COMPONENTS}) + get_target_property(libpath ${CVLib} LOCATION_${CMAKE_BUILD_TYPE}) + get_filename_component(libname "${libpath}" NAME) ++ get_filename_component(lname "${libpath}" NAME_WE) + + if(INSTALL_TO_MANGLED_PATHS) + set(libname "${libname}.${OPENCV_VERSION}") +@@ -52,6 +53,8 @@ foreach(CVLib ${OpenCV_LIB_COMPONENTS}) + endif() + + set(OpenCV_LIB_COMPONENTS_ "${OpenCV_LIB_COMPONENTS_} \${exec_prefix}/${installDir}/${libname}") ++ string(REPLACE "libopencv" "-lopencv" lname "${lname}") ++ set(OpenCV_LIB_COMPONENTS_ "${OpenCV_LIB_COMPONENTS_} ${lname}") + endforeach() + + # add extra dependencies required for OpenCV +@@ -67,6 +70,8 @@ if(OpenCV_EXTRA_COMPONENTS) + + set(OpenCV_LIB_COMPONENTS "${OpenCV_LIB_COMPONENTS} ${maybe_l_prefix}${extra_component}") + ++ ++ + endforeach() + endif() +