[90785] trunk/dports/science/flann/Portfile

mmoll at macports.org mmoll at macports.org
Wed Mar 14 11:17:10 PDT 2012


Revision: 90785
          https://trac.macports.org/changeset/90785
Author:   mmoll at macports.org
Date:     2012-03-14 11:17:09 -0700 (Wed, 14 Mar 2012)
Log Message:
-----------
science/flann: enable tbb support, allow user to disable cuda support (see #32940)

Modified Paths:
--------------
    trunk/dports/science/flann/Portfile

Modified: trunk/dports/science/flann/Portfile
===================================================================
--- trunk/dports/science/flann/Portfile	2012-03-14 16:19:31 UTC (rev 90784)
+++ trunk/dports/science/flann/Portfile	2012-03-14 18:17:09 UTC (rev 90785)
@@ -4,7 +4,7 @@
 PortGroup cmake 1.0
 name                flann
 version             1.7.1
-revision            1
+revision            2
 categories          science devel
 maintainers         mmoll
 description         Fast Library for Approximate Nearest Neighbors
@@ -24,12 +24,12 @@
 checksums           md5     1832b560cce9cde1c18ad1c7e907ae76 \
                     sha1    4f3cef9b4f171b1ee4a98f4f684c350c3022e9b2 \
                     rmd160  c48f6de9d3c1c87a446a4f3f0353ff02f4fe6506
-depends_lib         port:hdf5-18
+depends_lib         port:hdf5-18 port:tbb
 patchfiles          patch-src-python-CMakeLists.txt.diff
 patch.dir           ${worksrcpath}/${worksrcdir}
 
 # MPI support is automatically disabled if hdf5-18 is installed without the +openmpi variant
-configure.args-append ${distname} -DBUILD_MATLAB_BINDINGS=OFF -DUSE_MPI=ON \
+configure.args-append ${distname} -DBUILD_MATLAB_BINDINGS=OFF -DUSE_MPI=ON -DBUILD_CUDA_LIB=OFF \
                     -DMPIEXEC=${prefix}/lib/openmpi/bin/mpiexec \
                     -DMPI_COMPILER=${prefix}/lib/openmpi/bin/mpic++
 
@@ -66,6 +66,14 @@
     }
 }
 
+variant cuda {
+    configure.args-delete -DBUILD_CUDA_LIB=OFF
+    configure.args-append -DBUILD_CUDA_LIB=ON
+}
+# CUDA is enabled by default (compilation won't fail if CUDA is not installed),
+# but people with broken CUDA installs can disable the CUDA bindings.
+default_variants +cuda
+
 livecheck.type      regex
 livecheck.url       ${homepage}
 livecheck.regex     Version (\[0-9.\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120314/15787b20/attachment-0001.html>


More information about the macports-changes mailing list