summaryrefslogtreecommitdiff
path: root/databases/tokyocabinet/Makefile
diff options
context:
space:
mode:
authorobache <obache>2008-09-04 12:10:28 +0000
committerobache <obache>2008-09-04 12:10:28 +0000
commit56cccfd95768c31f088da5363365fc8547c8b691 (patch)
treef843564c9a79913f3d601f6c973be220bd064548 /databases/tokyocabinet/Makefile
parentf14de094c9af0cf8cd88a2096b4f4fff7ab0377e (diff)
downloadpkgsrc-56cccfd95768c31f088da5363365fc8547c8b691.tar.gz
Import tokyocabinet-1.3.7 as databases/tokyocabinet.
Tokyo Cabinet is a library of routines for managing a database. The database is a simple data file containing records, each is a pair of a key and a value. Every key and value is serial bytes with variable length. Both binary data and character string can be used as a key and a value. There is neither concept of data tables nor data types. Records are organized in hash table, B+ tree, or fixed-length array.
Diffstat (limited to 'databases/tokyocabinet/Makefile')
-rw-r--r--databases/tokyocabinet/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/databases/tokyocabinet/Makefile b/databases/tokyocabinet/Makefile
new file mode 100644
index 00000000000..e2daeb2bc3f
--- /dev/null
+++ b/databases/tokyocabinet/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/09/04 12:10:28 obache Exp $
+#
+
+DISTNAME= tokyocabinet-1.3.7
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tokyocabinet/}
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://tokyocabinet.sourceforge.net/
+COMMENT= Modern implementation of DBM
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake pkg-config
+
+PKGCONFIG_OVERRIDE+= tokyocabinet.pc.in
+
+CONFIGURE_ARGS+= --enable-zlib
+CONFIGURE_ARGS+= --enable-bzip
+CONFIGURE_ARGS+= --enable-exlzma
+CONFIGURE_ARGS+= --enable-exlzo
+
+TEST_TARGET= check
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../archivers/lzmalib/buildlink3.mk"
+.include "../../archivers/lzo/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+PTHREAD_AUTO_VARS= yes
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
+CONFIGURE_ARGS+= --disable-pthread
+.else
+CONFIGURE_ARGS+= --enable-pthread
+SUBST_CLASSES+= pthread
+SUBST_STAGE.pthread= pre-configure
+SUBST_FILES.pthread= configure
+SUBST_SED.pthread= -e 's|-lpthread|${PTHREAD_LIBS}|'
+.endif
+.include "../../mk/bsd.pkg.mk"