[64069] trunk/dports/graphics/opencv/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Feb 21 07:13:12 PST 2010


Revision: 64069
          http://trac.macports.org/changeset/64069
Author:   ryandesign at macports.org
Date:     2010-02-21 07:13:09 -0800 (Sun, 21 Feb 2010)
Log Message:
-----------
opencv:

 * update to 2.0.0
 * update homepage
 * remove unnecessary configure env and cxxflags
 * add pkgconfig and ffmpeg dependencies
 * ensure python stuff doesn't get built
 * ensure 32-bit-only system libs like quicktime and carbon don't get used when building 64-bit
 * install cvconfig.h which is needed by frei0r-plugins

See #21014 (maintainer timeout)

Modified Paths:
--------------
    trunk/dports/graphics/opencv/Portfile

Modified: trunk/dports/graphics/opencv/Portfile
===================================================================
--- trunk/dports/graphics/opencv/Portfile	2010-02-21 14:53:57 UTC (rev 64068)
+++ trunk/dports/graphics/opencv/Portfile	2010-02-21 15:13:09 UTC (rev 64069)
@@ -3,8 +3,7 @@
 PortSystem			1.0
 
 name				opencv
-version				1.0.0
-revision            1
+version                         2.0.0
 categories			graphics science
 platforms			darwin
 maintainers			gmail.com:stante
@@ -17,13 +16,38 @@
 					Understanding, Structure From Motion (SFM), and Mobile \
 					Robotics.
 
-homepage			http://www.intel.com/technology/computing/opencv/
+homepage                        http://opencv.willowgarage.com/wiki/
 master_sites		sourceforge:opencvlibrary
-checksums			md5 146a05005f2d2c16c4ee10ebd7f1dd58
+use_bzip2                       yes
+distname                        OpenCV-${version}
 
-depends_lib			port:gtk2 port:zlib port:jpeg \
-					port:libpng port:tiff
+checksums                       md5     ed27520514baacc5edad7b06ad24130e \
+                                sha1    2090c2aaff77c3b0cc669c2ee81bea389db0a366 \
+                                rmd160  f46b993ded3d579dc52175131e5485476ac1f569
 
-configure.env		CPATH="${prefix}/include"    \
-					LIBRARY_PATH="${prefix}/lib"
-configure.cxxflags-append	"-I${prefix}/include -L${prefix}/lib"
+depends_build-append            port:pkgconfig
+
+depends_lib-append              port:gtk2 port:zlib port:jpeg \
+                                port:libpng port:tiff port:ffmpeg
+
+# ffmpeg is not universal.
+# If universal support is to be added to opencv, careful consideration has
+# to be given to the 64-bit issues with QuickTime and Carbon.
+universal_variant               no
+
+configure.args                  --without-python
+
+switch ${build_arch} {
+    ppc64 -
+    x86_64 {
+        configure.args-append   --without-quicktime \
+                                --without-carbon
+    }
+}
+
+# For some reason the highgui module forgets to link against libavutil
+configure.ldflags-append        -lavutil
+
+post-destroot {
+    xinstall -m 644 ${worksrcpath}/cvconfig.h ${destroot}${prefix}/include/${name}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100221/497c93f7/attachment.html>


More information about the macports-changes mailing list