blob: f86d869c9ff9685565c5d37c8d998fdac6ba7db8 (
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
35
36
37
38
39
40
41
42
|
# $NetBSD: Makefile,v 1.8 2008/06/14 14:48:01 obache Exp $
#
.include "Makefile.common"
CATEGORIES= databases
COMMENT= Quick Database Manager - library of routines for managing a db
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= yes
MAKE_FILE= LTmakefile
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-zlib
CONFIGURE_ARGS+= --enable-iconv
CONFIGURE_ARGS+= --enable-bzip
CONFIGURE_ARGS+= --enable-lzo
PKGCONFIG_OVERRIDE= qdbm.pc.in
TEST_TARGET= check
INSTALLATION_DIRS+= bin include lib
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../archivers/lzo/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
CONFIGURE_ARGS+= --without-pthread
.else
CONFIGURE_ARGS+= --enable-pthread
CFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LDFLAGS}
SUBST_CLASSES+= pthread
SUBST_STAGE.pthread= pre-configure
SUBST_FILES.pthread= configure
SUBST_SED.pthread= -e 's|-lpthread|${PTHREAD_LIBS}|'
.endif
.include "../../mk/bsd.pkg.mk"
|