summaryrefslogtreecommitdiff
path: root/databases/db6/Makefile
diff options
context:
space:
mode:
authorryoon <ryoon>2015-01-01 18:52:52 +0000
committerryoon <ryoon>2015-01-01 18:52:52 +0000
commit882eff8e06f777e0d56dbc04a84e6a50b26bd908 (patch)
tree8f1be6c939b5ec53c0fc19d89902a8729357be96 /databases/db6/Makefile
parent01c2fc83527580b5b63a86b415aa4a4bc2274f94 (diff)
downloadpkgsrc-882eff8e06f777e0d56dbc04a84e6a50b26bd908.tar.gz
Import db6-6.1.19 as databases/db6.
Berkeley DB is an embeddable database system that supports keyed access to data. The software is distributed in source code form, and developers can compile and link the source code into a single library for inclusion directly in their applications. Developers may choose to store data in any of several different storage structures to satisfy the requirements of a particular application. In database terminology, these storage structures and the code that operates on them are called access methods. The library includes support for the following access methods: * B+tree: Stores keys in sorted order, using either a programmer-supplied ordering function or a default function that does lexicographical ordering of keys. Applications may perform equality or range searches. * Hashing: Stores records in a hash table for fast searches based on strict equality. Extended Linear Hashing modifies the hash function used by the table as new records are inserted, in order to keep buckets underfull in the steady state. * Fixed and Variable-Length Records: Stores fixed- or variable-length records in sequential order. Record numbers may be immutable or mutable, i.e., permitting new records to be inserted between existing records or requiring that new records be added only at the end of the database. This package privides Berkeley DB 6 released under GNU AGPL3.
Diffstat (limited to 'databases/db6/Makefile')
-rw-r--r--databases/db6/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/databases/db6/Makefile b/databases/db6/Makefile
new file mode 100644
index 00000000000..bfb491f5f86
--- /dev/null
+++ b/databases/db6/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1 2015/01/01 18:52:52 ryoon Exp $
+#
+# NOTE:
+# When updating this package, a change in the minor (6.n -> 6.(n+1))
+# usually incurs a shlib name change. Please make sure to update the
+# ABI depends in buildlink3.mk and bump PKGREVISIONs for all dependencies.
+# In particular, take care to include BDB_ACCEPTED=db6 packages.
+
+DISTNAME= db-6.1.19
+PKGNAME= ${DISTNAME:S/db/db6/}
+CATEGORIES= databases
+MASTER_SITES= http://download.oracle.com/berkeley-db/
+
+MAINTAINER= ryoon@NetBSD.org
+HOMEPAGE= http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html
+COMMENT= Berkeley DB version 6 from Oracle
+LICENSE= gnu-agpl-v3
+
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= pax
+GNU_CONFIGURE= yes
+CONFIGURE_DIRS= build_unix
+CONFIGURE_SCRIPT= ../dist/configure
+CONFIGURE_ARGS+= --enable-compat185
+CONFIGURE_ARGS+= --enable-cxx
+CONFIGURE_ARGS+= --includedir=${PREFIX}/include/db6
+CONFIGURE_ARGS+= --program-transform-name=s,db_,db6_,
+
+OPSYSVARS+= LIBSO_LIBS
+LIBSO_LIBS.SunOS+= -lnsl -lrt
+CONFIGURE_ENV+= LIBSO_LIBS=${LIBSO_LIBS:Q}
+
+CHECK_PORTABILITY_SKIP= test/xa/*/*.sh
+
+# DB5 only want pthreads because it's really after POSIX 1003.1
+# inter-process mutexes. In this case, we only care to use the native
+# threads.
+PTHREAD_OPTS+= native
+.include "../../mk/pthread.buildlink3.mk"
+
+.include "../../mk/bsd.prefs.mk"
+
+PLIST_VARS+= shlib
+
+.if ${OPSYS} != "MirBSD"
+PLIST.shlib= yes
+.endif
+
+post-install:
+ chown -R ${DOCOWN}:${DOCGRP} ${DESTDIR}${PREFIX}/share/doc/db6
+
+.include "../../mk/bsd.pkg.mk"