summaryrefslogtreecommitdiff
path: root/databases/kyotocabinet/options.mk
diff options
context:
space:
mode:
authorobache <obache>2014-11-21 11:29:52 +0000
committerobache <obache>2014-11-21 11:29:52 +0000
commit2b5620daef073128c6a33cec140ac41d3f9ff057 (patch)
treeed4f11276d5c7913df718a062d5d3fbf2cd01543 /databases/kyotocabinet/options.mk
parentba51018e9345db378ec669bc9857805977c9974a (diff)
downloadpkgsrc-2b5620daef073128c6a33cec140ac41d3f9ff057.tar.gz
Import kyotocabinet-1.2.76 as databases/kyotocabinet.
Kyoto 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. Each key must be unique within a database. There is neither concept of data tables nor data types. Records are organized in hash table or B+ tree.
Diffstat (limited to 'databases/kyotocabinet/options.mk')
-rw-r--r--databases/kyotocabinet/options.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/databases/kyotocabinet/options.mk b/databases/kyotocabinet/options.mk
new file mode 100644
index 00000000000..80796755cf5
--- /dev/null
+++ b/databases/kyotocabinet/options.mk
@@ -0,0 +1,32 @@
+# $NetBSD: options.mk,v 1.1 2014/11/21 11:29:52 obache Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.kyotocabinet
+PKG_SUPPORTED_OPTIONS= zlib
+PKG_OPTIONS_OPTIONAL_GROUPS= codec
+PKG_OPTIONS_GROUP.codec= lzma lzo
+PKG_SUGGESTED_OPTIONS= zlib
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mzlib)
+.include "../../devel/zlib/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-zlib
+CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
+.else
+CONFIGURE_ARGS+= --disable-zlib
+.endif
+
+.if !empty(PKG_OPTIONS:Mlzma)
+.include "../../archivers/lzmalib/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-lzma
+.else
+CONFIGURE_ARGS+= --disable-lzma
+.endif
+
+.if !empty(PKG_OPTIONS:Mlzo)
+.include "../../archivers/lzo/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-lzo
+.else
+CONFIGURE_ARGS+= --disable-lzo
+.endif