aboutsummaryrefslogtreecommitdiffstats
path: root/databases/lmdb/Makefile
blob: 1c8723a3062a188249d380cfdef279eacda82edc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Created by: Xin Li <delphij@FreeBSD.org>
# $FreeBSD$

PORTNAME=   lmdb
PORTVERSION=    0.9.7
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

BROKEN=     fails to fetch

# 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}
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>