aboutsummaryrefslogtreecommitdiff
path: root/devel/spdict
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2007-08-02 15:04:29 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2007-08-02 15:04:29 +0000
commitd9f7aa19f9705823f43abb7bdf96bb1cc90dc145 (patch)
treeab98f155501d22c8330aa18965314454ddc4f62a /devel/spdict
parent8478dff0b27784c0ab26c1d08807e9658ae3ea53 (diff)
Notes
Diffstat (limited to 'devel/spdict')
-rw-r--r--devel/spdict/Makefile27
-rw-r--r--devel/spdict/distinfo3
-rw-r--r--devel/spdict/files/patch-Makefile22
-rw-r--r--devel/spdict/pkg-descr6
-rw-r--r--devel/spdict/pkg-plist10
5 files changed, 68 insertions, 0 deletions
diff --git a/devel/spdict/Makefile b/devel/spdict/Makefile
new file mode 100644
index 000000000000..0b5654fce992
--- /dev/null
+++ b/devel/spdict/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: spdict
+# Date created: 2 Aug 2007
+# Whom: vanilla@
+#
+# $FreeBSD$
+#
+
+PORTNAME= spdict
+PORTVERSION= 0.2
+CATEGORIES= devel
+MASTER_SITES= http://spdict.googlecode.com/files/
+DISTNAME= ${PORTNAME}-${PORTVERSION}.src
+
+MAINTAINER= vanilla@FreeBSD.org
+COMMENT= A library of dictionary algorithms
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_LDCONFIG= yes
+USE_GMAKE= yes
+
+do-install:
+ @${MKDIR} ${PREFIX}/include/spdict
+ @${INSTALL} ${WRKSRC}/*.hpp ${PREFIX}/include/spdict
+ @${INSTALL} ${WRKSRC}/libspdict.so ${PREFIX}/lib/libspdict.so.1
+ @${LN} -s ${PREFIX}/lib/libspdict.so.1 ${PREFIX}/lib/libspdict.so
+
+.include <bsd.port.mk>
diff --git a/devel/spdict/distinfo b/devel/spdict/distinfo
new file mode 100644
index 000000000000..555316379979
--- /dev/null
+++ b/devel/spdict/distinfo
@@ -0,0 +1,3 @@
+MD5 (spdict-0.2.src.tar.gz) = 8db18e1ff321e69eb90ca55d3c7f3979
+SHA256 (spdict-0.2.src.tar.gz) = d248d3fa35a12fe96d4cbe58ee68e6348076a701e689662642fa34c0d7e834d6
+SIZE (spdict-0.2.src.tar.gz) = 27497
diff --git a/devel/spdict/files/patch-Makefile b/devel/spdict/files/patch-Makefile
new file mode 100644
index 000000000000..0367146d8434
--- /dev/null
+++ b/devel/spdict/files/patch-Makefile
@@ -0,0 +1,22 @@
+--- Makefile.orig Thu Aug 2 22:36:24 2007
++++ Makefile Thu Aug 2 22:39:43 2007
+@@ -3,8 +3,8 @@
+
+ CC = gcc
+ AR = ar cru
+-CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g
+-SOFLAGS = -shared -fPIC
++CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC
++SOFLAGS = -shared
+ LDFLAGS = -lpthread
+
+ LINKER = $(CC)
+@@ -29,7 +29,7 @@
+ all: $(TARGET)
+
+ libspdict.so: $(LIBOBJS)
+- $(LINKER) $(SOFLAGS) $^ -o $@
++ $(LINKER) $(SOFLAGS) $^ -o $@ -lstdc++
+
+ testdict: testdict.o
+ $(LINKER) $(LDFLAGS) $^ -L. -lspdict -o $@
diff --git a/devel/spdict/pkg-descr b/devel/spdict/pkg-descr
new file mode 100644
index 000000000000..f4e670c7fcfe
--- /dev/null
+++ b/devel/spdict/pkg-descr
@@ -0,0 +1,6 @@
+spdict is a library of dictionary algorithms written in C++.
+
+Initial release with support for sorted array, binary search tree,
+red-black tree, skip list and balanced tree algorithms.
+
+WWW: http://code.google.com/p/spdict/
diff --git a/devel/spdict/pkg-plist b/devel/spdict/pkg-plist
new file mode 100644
index 000000000000..7e79e6f445c5
--- /dev/null
+++ b/devel/spdict/pkg-plist
@@ -0,0 +1,10 @@
+include/spdict/sparrayimpl.hpp
+include/spdict/spbstreeimpl.hpp
+include/spdict/spbtreeimpl.hpp
+include/spdict/spcache.hpp
+include/spdict/spdictionary.hpp
+include/spdict/sprbtreeimpl.hpp
+include/spdict/spslistimpl.hpp
+lib/libspdict.so
+lib/libspdict.so.1
+@dirrm include/spdict