[62653] trunk/dports/science

mmoll at macports.org mmoll at macports.org
Wed Jan 13 06:11:08 PST 2010


Revision: 62653
          http://trac.macports.org/changeset/62653
Author:   mmoll at macports.org
Date:     2010-01-13 06:11:06 -0800 (Wed, 13 Jan 2010)
Log Message:
-----------
new port: science/flann, a library for computing approximate nearest neighbors

Added Paths:
-----------
    trunk/dports/science/flann/
    trunk/dports/science/flann/Portfile
    trunk/dports/science/flann/files/
    trunk/dports/science/flann/files/patch-CMakeLists.txt.diff
    trunk/dports/science/flann/files/patch-cpp-CMakeLists.txt.diff

Added: trunk/dports/science/flann/Portfile
===================================================================
--- trunk/dports/science/flann/Portfile	                        (rev 0)
+++ trunk/dports/science/flann/Portfile	2010-01-13 14:11:06 UTC (rev 62653)
@@ -0,0 +1,32 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup cmake 1.0
+name                flann
+version             1.2
+categories          science devel
+maintainers         mmoll
+description         Fast Library for Approximate Nearest Neighbors
+long_description    FLANN is a library for performing fast approximate \
+		    nearest neighbor searches in high dimensional spaces. \
+		    It contains a collection of algorithms we found to \
+		    work best for nearest neighbor search and a system \
+		    for automatically choosing the best algorithm and \
+		    optimum parameters depending on the dataset.
+homepage            http://people.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN
+platforms           darwin
+license		    BSD
+master_sites        http://people.cs.ubc.ca/~mariusm/uploads/FLANN/
+distname	    ${name}-${version}-src
+use_zip		    yes
+worksrcdir	    ${distname}/src
+#configure.args-append src/CMakeLists.txt
+checksums           md5     03ffd00523fd629e259febcc762d4668 \
+                    sha1    6d82bbdb28b2d04a9808f071c1efeac3b1224380 \
+                    rmd160  fc05574746727b220f1da83924680e033ff48264
+
+patchfiles          patch-CMakeLists.txt.diff patch-cpp-CMakeLists.txt.diff
+
+livecheck.type  regex
+livecheck.url   ${homepage}
+livecheck.regex Version (\[0-9.\]+)


Property changes on: trunk/dports/science/flann/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/flann/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/science/flann/files/patch-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/science/flann/files/patch-CMakeLists.txt.diff	2010-01-13 14:11:06 UTC (rev 62653)
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2010-01-08 12:32:40.000000000 -0600
++++ CMakeLists.txt	2010-01-08 12:42:06.000000000 -0600
+@@ -2,8 +2,4 @@
+ 
+ PROJECT( flann )
+ 
+-set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}/../build)
+-
+ ADD_SUBDIRECTORY( cpp )
+-ADD_SUBDIRECTORY( matlab )
+-ADD_SUBDIRECTORY( python )

Added: trunk/dports/science/flann/files/patch-cpp-CMakeLists.txt.diff
===================================================================
--- trunk/dports/science/flann/files/patch-cpp-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/science/flann/files/patch-cpp-CMakeLists.txt.diff	2010-01-13 14:11:06 UTC (rev 62653)
@@ -0,0 +1,22 @@
+--- cpp/CMakeLists.txt.orig	2010-01-08 12:51:36.000000000 -0600
++++ cpp/CMakeLists.txt	2010-01-08 12:55:27.000000000 -0600
+@@ -6,6 +6,7 @@
+ SET(SOURCES flann.cpp util/Random.cpp nn/Testing.cpp algorithms/NNIndex.cpp algorithms/dist.cpp util/Logger.cpp)
+ 
+ ADD_LIBRARY(flann SHARED ${SOURCES})
++SET_TARGET_PROPERTIES(flann PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
+ ADD_LIBRARY(flann_s STATIC ${SOURCES})
+ 
+ IF(WIN32)
+@@ -17,11 +18,6 @@
+     TARGETS flann
+     RUNTIME DESTINATION python/pyflann/bindings
+ )
+-ELSE(WIN32)
+-INSTALL (
+-    TARGETS flann
+-    LIBRARY DESTINATION python/pyflann/bindings
+-)
+ ENDIF(WIN32)
+ 
+ INSTALL (
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100113/0a1064a9/attachment.html>


More information about the macports-changes mailing list