1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/devel/mtbl/Makefile
Don Lewis 5f556d2ef2 Add new port devel/mtbl.
mtbl is a C library implementation of the Sorted String Table
(SSTable) data structure, based on the SSTable implementation in
the open source Google LevelDB library https://github.com/google/leveldb.
An SSTable is a file containing an immutable mapping of keys to
values. Keys are stored in sorted order, with an index at the end
of the file allowing keys to be located quickly.

mtbl is not a database library. It does not provide an updateable
key-value data store, but rather exposes primitives for creating,
searching and merging SSTable files. Unlike databases which use the
SSTable data structure internally as part of their data store,
management of SSTable files -- creation, merging, deletion, combining
of search results from multiple SSTables -- is left to the discretion
of the mtbl library user.

Differential Revision:	https://reviews.freebsd.org/D2206
Approved by:	mat (mentor)
Sponsored by:	Farsight Security, Inc.
2015-04-02 23:55:09 +00:00

34 lines
794 B
Makefile

# $FreeBSD$
PORTNAME= mtbl
PORTVERSION= 0.7.0
CATEGORIES= devel
MASTER_SITES= FARSIGHT LOCAL/truckman/farsight
MAINTAINER= truckman@FreeBSD.org
COMMENT= Immutable sorted string table library
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libsnappy.so:${PORTSDIR}/archivers/snappy
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= gmake libtool pathfix pkgconfig
INSTALL_TARGET= install-strip
.include <bsd.port.pre.mk>
# The version of binutils in base does not understand the crc32
# instructions used in this code on amd64. Use gcc from ports
# to get a more capable version of binutils.
.if (${OPSYS} == FreeBSD && ${OSVERSION} < 900000 && ${ARCH} == amd64)
USE_GCC= yes
.endif
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.post.mk>