1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/databases/lmdb/Makefile
Xin LI 7214e51437 LMDB is an ultra-fast, ultra-compact key-value data
store developed by Symas for the OpenLDAP Project.

PR:		ports/174007
2013-03-11 23:58:01 +00:00

30 lines
974 B
Makefile

# Created by: Xin Li <delphij@FreeBSD.org>
# $FreeBSD$
PORTNAME= lmdb
PORTVERSION= 0.9.6
CATEGORIES= databases
MASTER_SITES= https://gitorious.org/${GO_ACCOUNT}/${GO_PROJECT}/archive-tarball/${GO_TAGNAME}?dummy=
MAINTAINER= delphij@FreeBSD.org
COMMENT= OpenLDAP Lightning Memory-Mapped Database
# XXX FreeBSD does not implement O_DSYNC and fdatasync at this time.
CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync
WRKSRC= ${WRKDIR}/mdb-mdb/libraries/liblmdb
MAKE_ENV+= CC="${CC}"
MAKE_ENV+= XCFLAGS="${CFLAGS} ${PTHREAD_LIBS}" prefix="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}"
MAKE_ENV+= INSTALL_LIB="${INSTALL_LIB}" INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}"
GO_ACCOUNT= mdb
GO_PROJECT= mdb
GO_TAGNAME= ${PORTNAME:U}_${PORTVERSION:S/./_/g}
FETCH_ARGS?= -o - > ${DISTDIR}/${DISTFILES}
MAN1= mdb_stat.1 mdb_copy.1
PLIST_FILES= lib/liblmdb.a lib/liblmdb.so
PLIST_FILES+= bin/mdb_stat bin/mdb_copy
PLIST_FILES+= include/lmdb.h
.include <bsd.port.mk>