[139268] trunk/dports/graphics/opencv/Portfile
stromnov at macports.org
stromnov at macports.org
Mon Aug 10 05:31:35 PDT 2015
Revision: 139268
https://trac.macports.org/changeset/139268
Author: stromnov at macports.org
Date: 2015-08-10 05:31:35 -0700 (Mon, 10 Aug 2015)
Log Message:
-----------
opencv: add contrib variant (#48506)
Modified Paths:
--------------
trunk/dports/graphics/opencv/Portfile
Modified: trunk/dports/graphics/opencv/Portfile
===================================================================
--- trunk/dports/graphics/opencv/Portfile 2015-08-10 10:36:08 UTC (rev 139267)
+++ trunk/dports/graphics/opencv/Portfile 2015-08-10 12:31:35 UTC (rev 139268)
@@ -25,12 +25,19 @@
Robotics.
homepage http://opencv.org
-master_sites sourceforge:project/opencvlibrary/opencv-unix/${version}
+master_sites sourceforge:project/opencvlibrary/opencv-unix/${version}:opencv \
+ https://github.com/Itseez/opencv_contrib/archive:opencv_contrib
+distfiles ${distname}.zip:opencv
+
use_zip yes
-checksums rmd160 7b4dff26502e71e6570c2452c35fd03a1982bc7e \
- sha256 07094ea2f996f2622d572f0f3a162d698c8a547520341ca9109fbaf9363fb001
+checksums ${distname}${extract.suffix} \
+ rmd160 7b4dff26502e71e6570c2452c35fd03a1982bc7e \
+ sha256 07094ea2f996f2622d572f0f3a162d698c8a547520341ca9109fbaf9363fb001 \
+ ${version}.zip \
+ rmd160 b257895ab529db2354f17c87b9f02d53625bb5e2 \
+ sha256 77b28692b9e477a8554dd5b2180211dd86b6fd69d98e6896b6a7e1753e5f7e8f
depends_build-append \
port:pkgconfig
@@ -253,6 +260,11 @@
-DWITH_VTK=ON
}
+variant contrib description {Build OpenCV with extra modules.} {
+ distfiles-append ${version}.zip:opencv_contrib
+ configure.args-append -DOPENCV_EXTRA_MODULES_PATH=${workpath}/opencv_contrib-${version}/modules
+}
+
platform darwin {
post-patch {
if {${os.major} < 10} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150810/7e40ead9/attachment.html>
More information about the macports-changes
mailing list