ports/145997: New port: math/ann A Library for Approximate Nearest Neighbor Searching

Tz-Huan Huang tzhuan at csie.org
Fri Apr 23 18:20:02 UTC 2010


>Number:         145997
>Category:       ports
>Synopsis:       New port: math/ann A Library for Approximate Nearest Neighbor Searching
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 23 18:20:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Tz-Huan Huang
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
National Taiwan University
>Environment:
FreeBSD tzhuan.csie.org 9.0-CURRENT FreeBSD 9.0-CURRENT #5 r203377M: Tue Feb 2 23:01:54 CST 2010 root at tzhuan.csie.org:/usr/obj/usr/src/sys/TZHUAN amd64
>Description:
ANN is a library written in C++, which supports data structures and algorithms
for both exact and approximate nearest neighbor searching in arbitrarily high
dimensions.

WWW:    http://www.cs.umd.edu/~mount/ANN/
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ann
#	ann/Makefile
#	ann/distinfo
#	ann/pkg-plist
#	ann/files
#	ann/files/patch-Makefile
#	ann/pkg-descr
#
echo c - ann
mkdir -p ann > /dev/null 2>&1
echo x - ann/Makefile
sed 's/^X//' >ann/Makefile << '08c06a31c264fe8966d75a5a4ccb565c'
X# New ports collection makefile for:	ann
X# Date created:		2010-04-23
X# Whom:			Tz-Huan Huang <tzhuan at csie.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=ann
XPORTVERSION=1.1.2
XCATEGORIES=math science
XMASTER_SITES=http://www.cs.umd.edu/~mount/ANN/Files/1.1.2/
XDISTNAME=ann_1.1.2
X
XMAINTAINER=tzhuan at csie.org
XCOMMENT=A Library for Approximate Nearest Neighbor Searching
X
XWRKSRC=${WRKDIR}/ann_1.1.2
XUSE_LDCONFIG=yes
XUSE_GMAKE=yes
X
Xpost-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/lib/libann.so.0 ${PREFIX}/lib
X	${INSTALL_PROGRAM} ${WRKSRC}/lib/libann.a ${PREFIX}/lib
X	${LN} -fs libann.so.0 ${PREFIX}/lib/libann.so
X	${MKDIR} ${PREFIX}/include/ANN
X	${INSTALL_DATA} ${WRKSRC}/include/ANN/* ${PREFIX}/include/ANN
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/ANNmanual.pdf ${DOCSDIR}
X
X.include <bsd.port.mk>
08c06a31c264fe8966d75a5a4ccb565c
echo x - ann/distinfo
sed 's/^X//' >ann/distinfo << '825bb5a423ad89793fe6a97fe1e22594'
XMD5 (ann_1.1.2.tar.gz) = 7ffaacc7ea79ca39d4958a6378071365
XSHA256 (ann_1.1.2.tar.gz) = eea03f2e224b66813226d775053316675375dcec45bd263674c052d9324a49a5
XSIZE (ann_1.1.2.tar.gz) = 590517
825bb5a423ad89793fe6a97fe1e22594
echo x - ann/pkg-plist
sed 's/^X//' >ann/pkg-plist << '133dd7f567c2e3bfab01fd8468a1a1ba'
Xinclude/ANN/ANN.h
Xinclude/ANN/ANNx.h
Xinclude/ANN/ANNperf.h
Xlib/libann.so.0
Xlib/libann.so
Xlib/libann.a
X%%DOCSDIR%%/ANNmanual.pdf
X at dirrm include/ANN
X at dirrm %%DOCSDIR%%
133dd7f567c2e3bfab01fd8468a1a1ba
echo c - ann/files
mkdir -p ann/files > /dev/null 2>&1
echo x - ann/files/patch-Makefile
sed 's/^X//' >ann/files/patch-Makefile << '54f7e78b68a6efda55a5de55aa713b68'
X--- Makefile.orig	2010-01-28 12:40:01.000000000 +0800
X+++ Makefile	2010-04-23 20:57:18.091096908 +0800
X@@ -1,115 +1,32 @@
X-#-----------------------------------------------------------------------------
X-# Top-level Makefile for ANN.
X-#
X-# ANN: Approximate Nearest Neighbors
X-# Version: 1.1 05/03/05
X-#-----------------------------------------------------------------------------
X-# Copyright (c) 1997-2005 University of Maryland and Sunil Arya and
X-# David Mount.  All Rights Reserved.
X-# 
X-# This software and related documentation is part of the Approximate
X-# Nearest Neighbor Library (ANN).  This software is provided under
X-# the provisions of the Lesser GNU Public License (LGPL).  See the
X-# file ../ReadMe.txt for further information.
X-# 
X-# The University of Maryland (U.M.) and the authors make no
X-# representations about the suitability or fitness of this software for
X-# any purpose.  It is provided "as is" without express or implied
X-# warranty.
X-#-----------------------------------------------------------------------------
X-# Revision 0.1  09/06/97
X-#	alpha release
X-# Revision 0.2  06/26/98
X-#	Minor changes to fix compilation errors on SGI systems.
X-# Revision 1.0  04/01/05
X-#	Initial release (finally!)
X-#	Added linux-g++ target
X-# Revision 1.1  05/03/05
X-#	Added macosx-g++ target
X-#-----------------------------------------------------------------------------
X-
X-#-----------------------------------------------------------------------------
X-# default: list the options
X-# The following legacy targets are also available.
X-#	make sunos4		for Sun with SunOS 4.x
X-#	make sunos4-g++		for Sun with SunOS 4.x and g++
X-#	make alpha-g++		for DEC Alpha and g++
X-# The following targets are used for internal development only
X-#	make authors-debug	author's debugging
X-#	make authors-perf	author's performance evaluations
X-#	make distribution	author's generation of distribution file
X-#-----------------------------------------------------------------------------
X-default:
X-	@echo "Enter one of the following:"
X-	@echo "  make linux-g++            for Linux and g++"
X-	@echo "  make macosx-g++           for Mac OS X and g++"
X-	@echo "  make sunos5               for Sun with SunOS 5.x"
X-	@echo "  make sunos5-sl            for Sun with SunOS 5.x, make shared libs"
X-	@echo "  make sunos5-g++           for Sun with SunOS 5.x and g++"
X-	@echo "  make sunos5-g++-sl        for Sun with SunOS 5.x, g++, make shared libs"
X-	@echo "  make clean                remove .o files"
X-	@echo "  make realclean            remove .o, library and executable files"
X-	@echo " "
X-	@echo "See file Makefile for other compilation options, such as disabling"
X-	@echo "performance measurement code."
X-
X-#-----------------------------------------------------------------------------
X-# main make entry point
X-#-----------------------------------------------------------------------------
X-alpha-g++ macosx-g++ linux-g++ sgi sunos4 sunos4-g++ sunos5 sunos5-g++ sunos5-g++-sl authors-debug authors-perf:
X-	cd src ; $(MAKE) $@
X-	cd test ; $(MAKE) $@
X-	cd sample ; $(MAKE) $@
X-	cd ann2fig ; $(MAKE) $@
X-
X-#-----------------------------------------------------------------------------
X-# Remove .o files and core files
X-#-----------------------------------------------------------------------------
X+CXXFLAGS+=-Iinclude -Isrc -fPIC
X+LDFLAGS+=
X+VPATH=src
X+SRCS=ANN.cpp \
X+	bd_fix_rad_search.cpp bd_pr_search.cpp bd_search.cpp bd_tree.cpp \
X+	brute.cpp perf.cpp kd_tree.cpp kd_util.cpp \
X+	kd_dump.cpp kd_fix_rad_search.cpp kd_pr_search.cpp kd_search.cpp kd_split.cpp 
X+OBJS=$(SRCS:.cpp=.o)
X+LIBDIR=lib
X+
X+ANN_SO=libann.so
X+ANN_A=libann.a
X+ANN_SONAME=$(ANN_SO).0
X+LIBANN_SO=$(LIBDIR)/$(ANN_SONAME)
X+LIBANN_A=$(LIBDIR)/$(ANN_A)
X+TARGETS=$(LIBANN_SO) $(LIBANN_A)
X+
X+all: $(TARGETS)
X+
X+install: all
X+
X+%.o: %.cpp
X+	$(CXX) $(CXXFLAGS) -c $< -o $@
X+
X+$(LIBANN_SO): $(OBJS)
X+	$(CXX) $^ -o $@ -shared -Wl,-soname,$(ANN_SONAME) $(LDFLAGS)
X+
X+$(LIBANN_A): $(OBJS)
X+	$(AR) rcs $@ $^
X+
X clean:
X-	cd src ; $(MAKE) clean
X-	cd test ; $(MAKE) clean
X-	cd sample ; $(MAKE) clean
X-	cd ann2fig ; $(MAKE) clean
X-	cd doc ; $(MAKE) clean
X-	cd MS_Win32; $(MAKE) clean
X-	cd validate ; $(MAKE) clean
X-
X-#-----------------------------------------------------------------------------
X-# Remove everthing that can be remade
X-#-----------------------------------------------------------------------------
X-realclean: 
X-	-rm -f lib/*
X-	-rm -f bin/*
X-	cd src ; $(MAKE) realclean
X-	cd test ; $(MAKE) realclean
X-	cd sample ; $(MAKE) realclean
X-	cd ann2fig ; $(MAKE) realclean
X-	cd doc ; $(MAKE) realclean
X-	cd MS_Win32; $(MAKE) realclean
X-	cd validate ; $(MAKE) realclean
X-
X-#-----------------------------------------------------------------------------
X-# Make distribution package (for use by authors only)
X-#-----------------------------------------------------------------------------
X-DISTR = ann_1.1.2
X-
X-distribution: realclean 
X-	cd .. ; mv -f $(DISTR) $(DISTR)-old; mkdir $(DISTR)
X-	cp Copyright.txt ../$(DISTR)
X-	cp License.txt ../$(DISTR)
X-	cp Make-config ../$(DISTR)
X-	cp Makefile ../$(DISTR)
X-	cp ReadMe.txt ../$(DISTR)
X-	cp -r MS_Win32 ../$(DISTR)
X-#	cd ..; mv -f $(DISTR)_MS_Win32_bin $(DISTR)_MS_Win32_bin-old
X-	cp -r MS_Win32_bin ../$(DISTR)_MS_Win32_bin
X-	cp -r bin ../$(DISTR)
X-	cp -r include ../$(DISTR)
X-	cp -r lib ../$(DISTR)
X-	cp -r src ../$(DISTR)
X-	cp -r test ../$(DISTR)
X-	cp -r sample ../$(DISTR)
X-	cp -r ann2fig ../$(DISTR)
X-	cd ../$(DISTR); mkdir doc
X-	cp doc/*.pdf ../$(DISTR)/doc
X-#	cd .. ; tar -cfv $(DISTR).tar $(DISTR) ; gzip $(DISTR).tar
X+	rm -f $(TARGETS) $(OBJS)
54f7e78b68a6efda55a5de55aa713b68
echo x - ann/pkg-descr
sed 's/^X//' >ann/pkg-descr << '6aaed74a5828cc7de52c17c90a0b4e51'
XANN is a library written in C++, which supports data structures and algorithms
Xfor both exact and approximate nearest neighbor searching in arbitrarily high
Xdimensions.
X
XWWW:	http://www.cs.umd.edu/~mount/ANN/
6aaed74a5828cc7de52c17c90a0b4e51
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list