aboutsummaryrefslogtreecommitdiff
path: root/devel/libds
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-28 09:16:04 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-28 09:16:04 +0000
commit50fb5a0f3d7306ac0b80878ab4a49ea55ece6e28 (patch)
tree7960db4352705b5e146048e8b2ed17b958cf9db8 /devel/libds
parent3c9f052d51c702fea986b41cccfc50892eb1a6c6 (diff)
downloadports-50fb5a0f3d7306ac0b80878ab4a49ea55ece6e28.tar.gz
ports-50fb5a0f3d7306ac0b80878ab4a49ea55ece6e28.zip
Notes
Diffstat (limited to 'devel/libds')
-rw-r--r--devel/libds/Makefile48
-rw-r--r--devel/libds/distinfo1
-rw-r--r--devel/libds/pkg-descr14
-rw-r--r--devel/libds/pkg-plist14
4 files changed, 77 insertions, 0 deletions
diff --git a/devel/libds/Makefile b/devel/libds/Makefile
new file mode 100644
index 000000000000..4066daa6d9c6
--- /dev/null
+++ b/devel/libds/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: libds
+# Date created: 25 October 2002
+# Whom: Peter Bozarov (kingofgib@users.sourceforge.net)
+#
+# $FreeBSD$
+#
+
+PORTNAME= libds
+PORTVERSION= 1.0
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= libds
+DISTNAME= libds-2.1
+
+MAINTAINER= kingofgib@users.sourceforge.net
+COMMENT= ANSI Generic Data Structures Library
+
+INSTALLS_SHLIB= yes
+ALL_TARGET= gcc
+
+.include <bsd.port.pre.mk>
+
+MAN3= libds.3
+HTML= avltree.html heap.html parray.html set.html hashtbl.html \
+ index.html queue.html stack.html
+
+# Copy header file and libraries.
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/ds.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/libds.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/libds.so ${PREFIX}/lib/libds.so.1
+
+# Make symbolic link to the shared library
+# Install man pages.
+# Install HTML pages.
+post-install:
+ ${LN} -sf ${PREFIX}/lib/libds.so.1 ${PREFIX}/lib/libds.so
+.for i in ${MAN3}
+ ${INSTALL_MAN} ${WRKSRC}/${i} ${PREFIX}/man/man3/${i}
+.endfor
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/libds
+.for i in ${HTML}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/libds/${i}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/libds/distinfo b/devel/libds/distinfo
new file mode 100644
index 000000000000..b3bc6e315d0f
--- /dev/null
+++ b/devel/libds/distinfo
@@ -0,0 +1 @@
+MD5 (libds-2.1.tar.gz) = 91be12c3ee752ac3ae76ad2eef1b83c9
diff --git a/devel/libds/pkg-descr b/devel/libds/pkg-descr
new file mode 100644
index 000000000000..aae072360fd9
--- /dev/null
+++ b/devel/libds/pkg-descr
@@ -0,0 +1,14 @@
+LibDS is a small but powerful and easy to use library containing a few
+very useful data structures. Currently, the following data structures are
+supported:
+ - a balanced binary tree (an AVL tree);
+ - a binary HEAP;
+ - a QUEUE;
+ - a HASH table;
+ - a SET and a BAG;
+ - a variable length array that can grows dynamically as new elements are
+ added or deleted (PARRAY).
+ - a STACK;
+
+LibDS has been designed to be very easy to use, without sacrificing either
+flexibility or speed. The API is small, and clean.
diff --git a/devel/libds/pkg-plist b/devel/libds/pkg-plist
new file mode 100644
index 000000000000..a1ed200cd712
--- /dev/null
+++ b/devel/libds/pkg-plist
@@ -0,0 +1,14 @@
+include/ds.h
+lib/libds.a
+lib/libds.so.1
+lib/libds.so
+%%PORTDOCS%%share/doc/libds/avltree.html
+%%PORTDOCS%%share/doc/libds/hashtbl.html
+%%PORTDOCS%%share/doc/libds/heap.html
+%%PORTDOCS%%share/doc/libds/index.html
+%%PORTDOCS%%share/doc/libds/parray.html
+%%PORTDOCS%%share/doc/libds/queue.html
+%%PORTDOCS%%share/doc/libds/set.html
+%%PORTDOCS%%share/doc/libds/stack.html
+%%PORTDOCS%%@unexec rmdir %D/share/doc/libds 2>/dev/null || true
+