Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136885444
D4015.id9799.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D4015.id9799.diff
View Options
Index: devel/libdistance/Makefile
===================================================================
--- /dev/null
+++ devel/libdistance/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+PORTNAME= libdistance
+PORTVERSION= 0.2.2
+CATEGORIES= devel
+MASTER_SITES= http://monkey.org/~jose/software/libdistance/
+
+MAINTAINER= jonathan@FreeBSD.org
+COMMENT= Compute the distance between two pieces of data
+
+LICENSE= BSD3CLAUSE
+
+BUILD_DEPENDS= swig2.0:${PORTSDIR}/devel/swig20
+
+USES+= fakeroot pkgconfig tcl
+USE_LDCONFIG= yes
+
+MAKE_ENV= SWIG=swig2.0
+CFLAGS+= -fPIC
+
+.include <bsd.port.mk>
Index: devel/libdistance/distinfo
===================================================================
--- /dev/null
+++ devel/libdistance/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libdistance-0.2.2.tar.gz) = 65364e07c9fe78ef34fc0e563aff2317ab0aba7549da07adea929426a708e6ad
+SIZE (libdistance-0.2.2.tar.gz) = 31629
Index: devel/libdistance/files/patch-Makefile
===================================================================
--- /dev/null
+++ devel/libdistance/files/patch-Makefile
@@ -0,0 +1,13 @@
+--- Makefile.orig 2014-10-10 13:11:38 UTC
++++ Makefile
+@@ -7,6 +7,10 @@ MAN= distance.3
+ CFLAGS+= -g -Wall -Wunused
+ LDADD+= -g
+
++LIBDIR= ${PREFIX}/lib
++INCLUDEDIR= ${PREFIX}/include
++MANDIR= ${PREFIX}/man/man
++
+ SUBDIR+= test swig
+
+ CLEANFILES+= distance.cat3
Index: devel/libdistance/files/patch-swig_tcl_Makefile
===================================================================
--- /dev/null
+++ devel/libdistance/files/patch-swig_tcl_Makefile
@@ -0,0 +1,31 @@
+--- swig/tcl/Makefile.orig 2014-10-10 13:11:38 UTC
++++ swig/tcl/Makefile
+@@ -1,15 +1,18 @@
+ # $Id: Makefile,v 1.2 2004/11/30 00:26:59 jose Exp $
+
+-all: distance.so
++LIB= distance
++SHLIB_MAJOR= 1
+
+-distance_wrap.o: ../distance.i
+- swig -tcl -namespace -module distance -o distance_wrap.c \
+- -v ../distance.i
+- gcc -c -I../.. -I/usr/local/include/tcl8.4 -fpic distance_wrap.c
++SRCS= distance_wrap.c # swig-generated source file
++CLEANFILES+= $(SRCS)
+
+-distance.so: distance_wrap.o
+- gcc -shared distance_wrap.o ../../libdistance.a \
+- -o distance.so
++CFLAGS= -I ../.. `pkg-config --cflags tcl` -fPIC
++SWIG?= swig
+
+-clean:
+- rm -f *.o distance_wrap.c *.so *.core *_wrap.c distance.py
++LIBDIR= ${PREFIX}/lib
++
++distance_wrap.c: ../distance.i
++ ${SWIG} -tcl -namespace -module distance -o distance_wrap.c \
++ -v ../distance.i
++
++.include <bsd.lib.mk>
Index: devel/libdistance/files/patch-test_Makefile
===================================================================
--- /dev/null
+++ devel/libdistance/files/patch-test_Makefile
@@ -0,0 +1,18 @@
+--- test/Makefile.orig 2014-10-10 13:11:38 UTC
++++ test/Makefile
+@@ -1,10 +1,13 @@
+ # $Id: Makefile,v 1.3 2004/05/20 21:52:01 jose Exp $
+
+-PROG= test
++PROG= test-libdistance
++SRCS= test.c
+ CFLAGS+= -I.. -g
+ LDADD= -L.. -ldistance -lm
+-NOMAN= Yes
++MAN=
+
+ CLEANFILES+= test
+
++BINDIR= ${PREFIX}/tests
++
+ .include <bsd.prog.mk>
Index: devel/libdistance/pkg-descr
===================================================================
--- /dev/null
+++ devel/libdistance/pkg-descr
@@ -0,0 +1,7 @@
+The distance library is used to compare pieces of data for similarity.
+Specifically, it contains a number of methods to find the "edit distance"
+between inputs, or the number of differences between them. These differences
+are calculated using various mechanisms. The inputs to these functions can be
+character strings or arbitrary data.
+
+WWW: http://monkey.org/~jose/software/libdistance
Index: devel/libdistance/pkg-plist
===================================================================
--- /dev/null
+++ devel/libdistance/pkg-plist
@@ -0,0 +1,6 @@
+lib/libdistance.a
+lib/libdistance.so
+lib/libdistance.so.1
+lib/libdistance_p.a
+man/man3/distance.3.gz
+tests/test-libdistance
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 21, 10:15 AM (11 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25752150
Default Alt Text
D4015.id9799.diff (3 KB)
Attached To
Mode
D4015: Add new port: devel/libdistance.
Attached
Detach File
Event Timeline
Log In to Comment