aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2006-01-06 04:07:07 +0800
committerehaupt <ehaupt@FreeBSD.org>2006-01-06 04:07:07 +0800
commit494aa48a1230a4b9a3d81520e5ac4c3900a24959 (patch)
tree869ae0daa0f6dfe5f00313db205008b05f4d14e0
parent819c489fe467a1cb1d6131a2b9ad23930f71707d (diff)
downloadfreebsd-ports-gnome-494aa48a1230a4b9a3d81520e5ac4c3900a24959.tar.gz
freebsd-ports-gnome-494aa48a1230a4b9a3d81520e5ac4c3900a24959.tar.zst
freebsd-ports-gnome-494aa48a1230a4b9a3d81520e5ac4c3900a24959.zip
Add pbl, a highly portable database library.
PBL (Peter Graf's Program Base Library) is a library with highly portable database functions that can be used in a C or C++ project. The code of the PBL library includes: - PBL BASE - some base functions (pbl_*) - PBL HASH - a memory hash table implementation (pblHt*) - PBL KEYFILE - a key file implementation (pblKf*) - PBL ISAM - an ISAM file implementation (pblIsam*) The spamprobe project (mail/spamprobe) can be used with PBL databases. PR: ports/91344 Submitted by: Johan van Selst <johans@stack.nl>
-rw-r--r--databases/Makefile1
-rw-r--r--databases/pbl/Makefile39
-rw-r--r--databases/pbl/distinfo3
-rw-r--r--databases/pbl/pkg-descr13
4 files changed, 56 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 0f5af104c03f..49c4b9b4fd94 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -250,6 +250,7 @@
SUBDIR += p5-postgresql-plperl
SUBDIR += p5-qdbm
SUBDIR += p5-sqlrelay
+ SUBDIR += pbl
SUBDIR += pear-DB
SUBDIR += pear-DB_DataObject
SUBDIR += pear-DB_DataObject_FormBuilder
diff --git a/databases/pbl/Makefile b/databases/pbl/Makefile
new file mode 100644
index 000000000000..c57d8fdd418d
--- /dev/null
+++ b/databases/pbl/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: pbl
+# Date created: 3. Jan 2006
+# Whom: johans
+#
+# $FreeBSD$
+
+PORTNAME= pbl
+PORTVERSION= 1.03
+CATEGORIES= databases
+MASTER_SITES= http://mission.base.com/peter/source/ \
+ ftp://ftp.stack.nl/pub/users/johans/pbl/
+DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/}
+
+MAINTAINER= johans@stack.nl
+COMMENT= A highly portable database library
+
+USE_REINPLACE= yes
+
+MAKEFILE= makefile
+
+PLIST_FILES= lib/libpbl.a include/pbl.h bin/pblkfblockprint
+PORTDOCS= *
+
+post-patch:
+ @${REINPLACE_CMD} -E '/^(CC|CFLAGS)/d; s/-O2//' ${WRKSRC}/${MAKEFILE}
+ @${REINPLACE_CMD} -e 's/malloc\.h/stdlib.h/' ${WRKSRC}/*.c
+ @${REINPLACE_CMD} -e 's/sys\/dir\.h/dirent.h/' ${WRKSRC}/pbl.h
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/libpbl.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/pbl.h ${PREFIX}/include
+ ${INSTALL_PROGRAM} ${WRKSRC}/pblkfblockprint ${PREFIX}/bin
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/databases/pbl/distinfo b/databases/pbl/distinfo
new file mode 100644
index 000000000000..383950aaf418
--- /dev/null
+++ b/databases/pbl/distinfo
@@ -0,0 +1,3 @@
+MD5 (pbl_1_03.tar.gz) = 452b1f802dfb2da7ceaaf647eb8564c8
+SHA256 (pbl_1_03.tar.gz) = dc14cdf46cacf3d634c49c1487dde8e4469269f87eaa9e6205f6ada2f6cee87e
+SIZE (pbl_1_03.tar.gz) = 114672
diff --git a/databases/pbl/pkg-descr b/databases/pbl/pkg-descr
new file mode 100644
index 000000000000..71b9fa09c2db
--- /dev/null
+++ b/databases/pbl/pkg-descr
@@ -0,0 +1,13 @@
+PBL (Peter Graf's Program Base Library) is a library with highly portable
+database functions that can be used in a C or C++ project.
+
+The code of the PBL library includes:
+
+ - PBL BASE - some base functions (pbl_*)
+ - PBL HASH - a memory hash table implementation (pblHt*)
+ - PBL KEYFILE - a key file implementation (pblKf*)
+ - PBL ISAM - an ISAM file implementation (pblIsam*)
+
+The spamprobe project (mail/spamprobe) can be used with PBL databases.
+
+WWW: http://mission.base.com/peter/source/