blob: 9087fb8bfbf066915042eb4aa85c69e464763325 (
plain)
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
32
33
34
|
# $NetBSD: Makefile,v 1.15 2020/10/28 21:09:20 adam Exp $
.include "../../databases/openldap/Makefile.version"
# get the version from libraries/liblmdb/lmdb.h
PKGNAME= lmdb-0.9.27
CATEGORIES= databases
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Symas Lightning Memory-Mapped Database
USE_GCC_RUNTIME= yes
USE_TOOLS+= gmake
BUILD_DIRS= libraries/liblmdb
MAKE_FLAGS+= CC=${CC:Q}
MAKE_FLAGS+= XCFLAGS=${CFLAGS:Q}\ -D_SEM_SEMUN_UNDEFINED
INSTALL_MAKE_FLAGS+= prefix=${PREFIX}
INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= include
INSTALLATION_DIRS+= lib
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
TEST_TARGET= test
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
MAKE_FLAGS+= SOEXT=.dylib
MAKE_FLAGS+= SOLIBS=-install_name\ ${PREFIX}/lib/liblmdb.dylib
.endif
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|